| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cbb70bd commit 1a1425f
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,73 @@ | |||
| 1 | + #if WITH_EDITOR | ||
| 2 | + | ||
| 3 | + #include "UnrealEnginePythonPrivatePCH.h" | ||
| 4 | + | ||
| 5 | + #include "UEPySGraphEditor.h" | ||
| 6 | + | ||
| 7 | + | ||
| 8 | + | ||
| 9 | + #define GET_s_graph_editor SGraphEditor *s_graph_editor = (SGraphEditor*) self->s_compound_widget.s_widget.s_widget | ||
| 10 | + | ||
| 11 | + | ||
| 12 | + static PyObject *ue_PySGraphEditor_str(ue_PySGraphEditor *self) | ||
| 13 | + { | ||
| 14 | + return PyUnicode_FromFormat("<unreal_engine.SGraphEditor '%p'>", | ||
| 15 | + self->s_compound_widget.s_widget.s_widget); | ||
| 16 | + } | ||
| 17 | + | ||
| 18 | + static PyMethodDef ue_PySGraphEditor_methods[] = { | ||
| 19 | + { NULL } /* Sentinel */ | ||
| 20 | + }; | ||
| 21 | + | ||
| 22 | + PyTypeObject ue_PySGraphEditorType = { | ||
| 23 | + PyVarObject_HEAD_INIT(NULL, 0) | ||
| 24 | + "unreal_engine.SGraphEditor", /* tp_name */ | ||
| 25 | + sizeof(ue_PySGraphEditor), /* tp_basicsize */ | ||
| 26 | + 0, /* tp_itemsize */ | ||
| 27 | + 0, /* tp_dealloc */ | ||
| 28 | + 0, /* tp_print */ | ||
| 29 | + 0, /* tp_getattr */ | ||
| 30 | + 0, /* tp_setattr */ | ||
| 31 | + 0, /* tp_reserved */ | ||
| 32 | + 0, /* tp_repr */ | ||
| 33 | + 0, /* tp_as_number */ | ||
| 34 | + 0, /* tp_as_sequence */ | ||
| 35 | + 0, /* tp_as_mapping */ | ||
| 36 | + 0, /* tp_hash */ | ||
| 37 | + 0, /* tp_call */ | ||
| 38 | + (reprfunc)ue_PySGraphEditor_str, /* tp_str */ | ||
| 39 | + 0, /* tp_getattro */ | ||
| 40 | + 0, /* tp_setattro */ | ||
| 41 | + 0, /* tp_as_buffer */ | ||
| 42 | + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ | ||
| 43 | + "Unreal Engine SGraphEditor", /* tp_doc */ | ||
| 44 | + 0, /* tp_traverse */ | ||
| 45 | + 0, /* tp_clear */ | ||
| 46 | + 0, /* tp_richcompare */ | ||
| 47 | + 0, /* tp_weaklistoffset */ | ||
| 48 | + 0, /* tp_iter */ | ||
| 49 | + 0, /* tp_iternext */ | ||
| 50 | + ue_PySGraphEditor_methods, /* tp_methods */ | ||
| 51 | + }; | ||
| 52 | + | ||
| 53 | + static int ue_py_sgraph_editor_init(ue_PySGraphEditor *self, PyObject *args, PyObject *kwargs) { | ||
| 54 | + ue_py_snew(SGraphEditor, s_compound_widget.s_widget); | ||
| 55 | + return 0; | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + void ue_python_init_sgraph_editor(PyObject *ue_module) { | ||
| 59 | + ue_PySGraphEditorType.tp_new = PyType_GenericNew; | ||
| 60 | + | ||
| 61 | + ue_PySGraphEditorType.tp_init = (initproc)ue_py_sgraph_editor_init; | ||
| 62 | + | ||
| 63 | + ue_PySGraphEditorType.tp_base = &ue_PySCompoundWidgetType; | ||
| 64 | + | ||
| 65 | + if (PyType_Ready(&ue_PySGraphEditorType) < 0) | ||
| 66 | + return; | ||
| 67 | + | ||
| 68 | + Py_INCREF(&ue_PySGraphEditorType); | ||
| 69 | + PyModule_AddObject(ue_module, "SGraphEditor", (PyObject *)&ue_PySGraphEditorType); | ||
| 70 | + } | ||
| 71 | + | ||
| 72 | + | ||
| 73 | + #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,20 @@ | |||
| 1 | + #pragma once | ||
| 2 | + | ||
| 3 | + #include "UnrealEnginePython.h" | ||
| 4 | + | ||
| 5 | + #if WITH_EDITOR | ||
| 6 | + | ||
| 7 | + #include "UEPySCompoundWidget.h" | ||
| 8 | + | ||
| 9 | + #include "Editor/UnrealEd/Public/GraphEditor.h" | ||
| 10 | + | ||
| 11 | + extern PyTypeObject ue_PySGraphEditorType; | ||
| 12 | + | ||
| 13 | + typedef struct { | ||
| 14 | + ue_PySCompoundWidget s_compound_widget; | ||
| 15 | + /* Type-specific fields go here. */ | ||
| 16 | + } ue_PySGraphEditor; | ||
| 17 | + | ||
| 18 | + void ue_python_init_sgraph_editor(PyObject *); | ||
| 19 | + | ||
| 20 | + #endif | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -186,6 +186,7 @@ void ue_python_init_slate(PyObject *module) { | |||
| 186 | 186 | ue_python_init_ssplitter(module); | |
| 187 | 187 | ue_python_init_sheader_row(module); | |
| 188 | 188 | ue_python_init_spython_shelf(module); | |
| 189 | + ue_python_init_sgraph_editor(module); | ||
| 189 | 190 | ||
| 190 | 191 | ue_python_init_ftab_spawner_entry(module); | |
| 191 | 192 | ue_python_init_fmenu_builder(module); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,6 +38,7 @@ | |||
| 38 | 38 | #include "UEPySSplitter.h" | |
| 39 | 39 | #include "UEPySHeaderRow.h" | |
| 40 | 40 | #include "UEPySPythonShelf.h" | |
| 41 | + #include "UEPySGraphEditor.h" | ||
| 41 | 42 | ||
| 42 | 43 | #include "UEPyFTabSpawnerEntry.h" | |
| 43 | 44 | #include "UEPyFMenuBuilder.h" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments