|
| 1 | +#if WITH_EDITOR |
| 2 | +#include "UnrealEnginePythonPrivatePCH.h" |
| 3 | + |
| 4 | +#include "UEPySObjectPropertyEntryBox.h" |
| 5 | + |
| 6 | +#define sw_object_property_entry_box StaticCastSharedRef<SObjectPropertyEntryBox>(self->s_compound_widget.s_widget.s_widget) |
| 7 | + |
| 8 | + |
| 9 | +static PyMethodDef ue_PySObjectPropertyEntryBox_methods[] = { |
| 10 | + { NULL } /* Sentinel */ |
| 11 | +}; |
| 12 | + |
| 13 | +PyTypeObject ue_PySObjectPropertyEntryBoxType = { |
| 14 | + PyVarObject_HEAD_INIT(NULL, 0) |
| 15 | + "unreal_engine.SObjectPropertyEntryBox", /* tp_name */ |
| 16 | + sizeof(ue_PySObjectPropertyEntryBox), /* tp_basicsize */ |
| 17 | + 0, /* tp_itemsize */ |
| 18 | + 0, /* tp_dealloc */ |
| 19 | + 0, /* tp_print */ |
| 20 | + 0, /* tp_getattr */ |
| 21 | + 0, /* tp_setattr */ |
| 22 | + 0, /* tp_reserved */ |
| 23 | + 0, /* tp_repr */ |
| 24 | + 0, /* tp_as_number */ |
| 25 | + 0, /* tp_as_sequence */ |
| 26 | + 0, /* tp_as_mapping */ |
| 27 | + 0, /* tp_hash */ |
| 28 | + 0, /* tp_call */ |
| 29 | + 0, /* tp_str */ |
| 30 | + 0, /* tp_getattro */ |
| 31 | + 0, /* tp_setattro */ |
| 32 | + 0, /* tp_as_buffer */ |
| 33 | + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ |
| 34 | + "Unreal Engine SObjectPropertyEntryBox", /* tp_doc */ |
| 35 | + 0, /* tp_traverse */ |
| 36 | + 0, /* tp_clear */ |
| 37 | + 0, /* tp_richcompare */ |
| 38 | + 0, /* tp_weaklistoffset */ |
| 39 | + 0, /* tp_iter */ |
| 40 | + 0, /* tp_iternext */ |
| 41 | + ue_PySObjectPropertyEntryBox_methods, /* tp_methods */ |
| 42 | +}; |
| 43 | + |
| 44 | +static int ue_py_sobject_property_entry_box_init(ue_PySObjectPropertyEntryBox *self, PyObject *args, PyObject *kwargs) { |
| 45 | + ue_py_slate_setup_farguments(SObjectPropertyEntryBox); |
| 46 | + |
| 47 | + ue_py_snew(SObjectPropertyEntryBox, s_compound_widget.s_widget); |
| 48 | + return 0; |
| 49 | +} |
| 50 | + |
| 51 | +void ue_python_init_sobject_property_entry_box(PyObject *ue_module) { |
| 52 | + |
| 53 | + ue_PySObjectPropertyEntryBoxType.tp_init = (initproc)ue_py_sobject_property_entry_box_init; |
| 54 | + |
| 55 | + ue_PySObjectPropertyEntryBoxType.tp_base = &ue_PySCompoundWidgetType; |
| 56 | + |
| 57 | + if (PyType_Ready(&ue_PySObjectPropertyEntryBoxType) < 0) |
| 58 | + return; |
| 59 | + |
| 60 | + Py_INCREF(&ue_PySObjectPropertyEntryBoxType); |
| 61 | + PyModule_AddObject(ue_module, "SObjectPropertyEntryBox", (PyObject *)&ue_PySObjectPropertyEntryBoxType); |
| 62 | +} |
| 63 | +#endif |
0 commit comments