Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_rna.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 6,398 Lines • ▼ Show 20 Lines | PyTypeObject pyrna_struct_meta_idprop_Type = { | ||||
| PyVarObject_HEAD_INIT(NULL, 0) "bpy_struct_meta_idprop", /* tp_name */ | PyVarObject_HEAD_INIT(NULL, 0) "bpy_struct_meta_idprop", /* tp_name */ | ||||
| /* NOTE! would be PyTypeObject, but subtypes of Type must be PyHeapTypeObject's */ | /* NOTE! would be PyTypeObject, but subtypes of Type must be PyHeapTypeObject's */ | ||||
| sizeof(PyHeapTypeObject), /* tp_basicsize */ | sizeof(PyHeapTypeObject), /* tp_basicsize */ | ||||
| 0, /* tp_itemsize */ | 0, /* tp_itemsize */ | ||||
| /* methods */ | /* methods */ | ||||
| NULL, /* tp_dealloc */ | NULL, /* tp_dealloc */ | ||||
| #if PY_VERSION_HEX >= 0x03080000 | |||||
| 0, /* tp_vectorcall_offset */ | 0, /* tp_vectorcall_offset */ | ||||
| #else | |||||
| (printfunc)NULL, /* printfunc tp_print */ | |||||
| #endif | |||||
| NULL, /* getattrfunc tp_getattr; */ | NULL, /* getattrfunc tp_getattr; */ | ||||
| NULL, /* setattrfunc tp_setattr; */ | NULL, /* setattrfunc tp_setattr; */ | ||||
| NULL, | NULL, | ||||
| /* tp_compare */ /* deprecated in Python 3.0! */ | /* tp_compare */ /* deprecated in Python 3.0! */ | ||||
| NULL, /* tp_repr */ | NULL, /* tp_repr */ | ||||
| /* Method suites for standard classes */ | /* Method suites for standard classes */ | ||||
| NULL, /* PyNumberMethods *tp_as_number; */ | NULL, /* PyNumberMethods *tp_as_number; */ | ||||
| Show All 35 Lines | PyTypeObject pyrna_struct_meta_idprop_Type = { | ||||
| /*** Attribute descriptor and subclassing stuff ***/ | /*** Attribute descriptor and subclassing stuff ***/ | ||||
| NULL, /* struct PyMethodDef *tp_methods; */ | NULL, /* struct PyMethodDef *tp_methods; */ | ||||
| NULL, /* struct PyMemberDef *tp_members; */ | NULL, /* struct PyMemberDef *tp_members; */ | ||||
| NULL, /* struct PyGetSetDef *tp_getset; */ | NULL, /* struct PyGetSetDef *tp_getset; */ | ||||
| #if defined(_MSC_VER) | #if defined(_MSC_VER) | ||||
| NULL, /* defer assignment */ | NULL, /* defer assignment */ | ||||
| #else | #else | ||||
| &PyType_Type, /* struct _typeobject *tp_base; */ | &PyType_Type, /* struct _typeobject *tp_base; */ | ||||
| #endif | #endif | ||||
| NULL, /* PyObject *tp_dict; */ | NULL, /* PyObject *tp_dict; */ | ||||
| NULL, /* descrgetfunc tp_descr_get; */ | NULL, /* descrgetfunc tp_descr_get; */ | ||||
| NULL, /* descrsetfunc tp_descr_set; */ | NULL, /* descrsetfunc tp_descr_set; */ | ||||
| 0, /* long tp_dictoffset; */ | 0, /* long tp_dictoffset; */ | ||||
| NULL, /* initproc tp_init; */ | NULL, /* initproc tp_init; */ | ||||
| NULL, /* allocfunc tp_alloc; */ | NULL, /* allocfunc tp_alloc; */ | ||||
| NULL, /* newfunc tp_new; */ | NULL, /* newfunc tp_new; */ | ||||
| Show All 12 Lines | |||||
| /*-----------------------BPy_StructRNA method def------------------------------*/ | /*-----------------------BPy_StructRNA method def------------------------------*/ | ||||
| PyTypeObject pyrna_struct_Type = { | PyTypeObject pyrna_struct_Type = { | ||||
| PyVarObject_HEAD_INIT(NULL, 0) "bpy_struct", /* tp_name */ | PyVarObject_HEAD_INIT(NULL, 0) "bpy_struct", /* tp_name */ | ||||
| sizeof(BPy_StructRNA), /* tp_basicsize */ | sizeof(BPy_StructRNA), /* tp_basicsize */ | ||||
| 0, /* tp_itemsize */ | 0, /* tp_itemsize */ | ||||
| /* methods */ | /* methods */ | ||||
| (destructor)pyrna_struct_dealloc, /* tp_dealloc */ | (destructor)pyrna_struct_dealloc, /* tp_dealloc */ | ||||
| #if PY_VERSION_HEX >= 0x03080000 | |||||
| 0, /* tp_vectorcall_offset */ | 0, /* tp_vectorcall_offset */ | ||||
| #else | |||||
| (printfunc)NULL, /* printfunc tp_print */ | |||||
| #endif | |||||
| NULL, /* getattrfunc tp_getattr; */ | NULL, /* getattrfunc tp_getattr; */ | ||||
| NULL, /* setattrfunc tp_setattr; */ | NULL, /* setattrfunc tp_setattr; */ | ||||
| NULL, | NULL, | ||||
| /* tp_compare */ /* DEPRECATED in Python 3.0! */ | /* tp_compare */ /* DEPRECATED in Python 3.0! */ | ||||
| (reprfunc)pyrna_struct_repr, /* tp_repr */ | (reprfunc)pyrna_struct_repr, /* tp_repr */ | ||||
| /* Method suites for standard classes */ | /* Method suites for standard classes */ | ||||
| NULL, /* PyNumberMethods *tp_as_number; */ | NULL, /* PyNumberMethods *tp_as_number; */ | ||||
| &pyrna_struct_as_sequence, /* PySequenceMethods *tp_as_sequence; */ | &pyrna_struct_as_sequence, /* PySequenceMethods *tp_as_sequence; */ | ||||
| Show All 17 Lines | |||||
| /*** Assigned meaning in release 2.0 ***/ | /*** Assigned meaning in release 2.0 ***/ | ||||
| /* call function for all accessible objects */ | /* call function for all accessible objects */ | ||||
| #ifdef USE_PYRNA_STRUCT_REFERENCE | #ifdef USE_PYRNA_STRUCT_REFERENCE | ||||
| (traverseproc)pyrna_struct_traverse, /* traverseproc tp_traverse; */ | (traverseproc)pyrna_struct_traverse, /* traverseproc tp_traverse; */ | ||||
| /* delete references to contained objects */ | /* delete references to contained objects */ | ||||
| (inquiry)pyrna_struct_clear, /* inquiry tp_clear; */ | (inquiry)pyrna_struct_clear, /* inquiry tp_clear; */ | ||||
| #else | #else | ||||
| NULL, /* traverseproc tp_traverse; */ | NULL, /* traverseproc tp_traverse; */ | ||||
| /* delete references to contained objects */ | /* delete references to contained objects */ | ||||
| NULL, /* inquiry tp_clear; */ | NULL, /* inquiry tp_clear; */ | ||||
| #endif /* !USE_PYRNA_STRUCT_REFERENCE */ | #endif /* !USE_PYRNA_STRUCT_REFERENCE */ | ||||
| /*** Assigned meaning in release 2.1 ***/ | /*** Assigned meaning in release 2.1 ***/ | ||||
| /*** rich comparisons ***/ | /*** rich comparisons ***/ | ||||
| (richcmpfunc)pyrna_struct_richcmp, /* richcmpfunc tp_richcompare; */ | (richcmpfunc)pyrna_struct_richcmp, /* richcmpfunc tp_richcompare; */ | ||||
| Show All 36 Lines | |||||
| /*-----------------------BPy_PropertyRNA method def------------------------------*/ | /*-----------------------BPy_PropertyRNA method def------------------------------*/ | ||||
| PyTypeObject pyrna_prop_Type = { | PyTypeObject pyrna_prop_Type = { | ||||
| PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop", /* tp_name */ | PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop", /* tp_name */ | ||||
| sizeof(BPy_PropertyRNA), /* tp_basicsize */ | sizeof(BPy_PropertyRNA), /* tp_basicsize */ | ||||
| 0, /* tp_itemsize */ | 0, /* tp_itemsize */ | ||||
| /* methods */ | /* methods */ | ||||
| (destructor)pyrna_prop_dealloc, /* tp_dealloc */ | (destructor)pyrna_prop_dealloc, /* tp_dealloc */ | ||||
| #if PY_VERSION_HEX >= 0x03080000 | |||||
| 0, /* tp_vectorcall_offset */ | 0, /* tp_vectorcall_offset */ | ||||
| #else | |||||
| (printfunc)NULL, /* printfunc tp_print */ | |||||
| #endif | |||||
| NULL, /* getattrfunc tp_getattr; */ | NULL, /* getattrfunc tp_getattr; */ | ||||
| NULL, /* setattrfunc tp_setattr; */ | NULL, /* setattrfunc tp_setattr; */ | ||||
| NULL, | NULL, | ||||
| /* tp_compare */ /* DEPRECATED in Python 3.0! */ | /* tp_compare */ /* DEPRECATED in Python 3.0! */ | ||||
| (reprfunc)pyrna_prop_repr, /* tp_repr */ | (reprfunc)pyrna_prop_repr, /* tp_repr */ | ||||
| /* Method suites for standard classes */ | /* Method suites for standard classes */ | ||||
| NULL, /* PyNumberMethods *tp_as_number; */ | NULL, /* PyNumberMethods *tp_as_number; */ | ||||
| NULL, /* PySequenceMethods *tp_as_sequence; */ | NULL, /* PySequenceMethods *tp_as_sequence; */ | ||||
| ▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| PyTypeObject pyrna_prop_array_Type = { | PyTypeObject pyrna_prop_array_Type = { | ||||
| PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop_array", /* tp_name */ | PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop_array", /* tp_name */ | ||||
| sizeof(BPy_PropertyArrayRNA), /* tp_basicsize */ | sizeof(BPy_PropertyArrayRNA), /* tp_basicsize */ | ||||
| 0, /* tp_itemsize */ | 0, /* tp_itemsize */ | ||||
| /* methods */ | /* methods */ | ||||
| (destructor)pyrna_prop_array_dealloc, /* tp_dealloc */ | (destructor)pyrna_prop_array_dealloc, /* tp_dealloc */ | ||||
| #if PY_VERSION_HEX >= 0x03080000 | |||||
| 0, /* tp_vectorcall_offset */ | 0, /* tp_vectorcall_offset */ | ||||
| #else | |||||
| (printfunc)NULL, /* printfunc tp_print */ | |||||
| #endif | |||||
| NULL, /* getattrfunc tp_getattr; */ | NULL, /* getattrfunc tp_getattr; */ | ||||
| NULL, /* setattrfunc tp_setattr; */ | NULL, /* setattrfunc tp_setattr; */ | ||||
| NULL, | NULL, | ||||
| /* tp_compare */ /* DEPRECATED in Python 3.0! */ | /* tp_compare */ /* DEPRECATED in Python 3.0! */ | ||||
| (reprfunc)pyrna_prop_array_repr, /* tp_repr */ | (reprfunc)pyrna_prop_array_repr, /* tp_repr */ | ||||
| /* Method suites for standard classes */ | /* Method suites for standard classes */ | ||||
| &pyrna_prop_array_as_number, /* PyNumberMethods *tp_as_number; */ | &pyrna_prop_array_as_number, /* PyNumberMethods *tp_as_number; */ | ||||
| &pyrna_prop_array_as_sequence, /* PySequenceMethods *tp_as_sequence; */ | &pyrna_prop_array_as_sequence, /* PySequenceMethods *tp_as_sequence; */ | ||||
| ▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| PyTypeObject pyrna_prop_collection_Type = { | PyTypeObject pyrna_prop_collection_Type = { | ||||
| PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop_collection", /* tp_name */ | PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop_collection", /* tp_name */ | ||||
| sizeof(BPy_PropertyRNA), /* tp_basicsize */ | sizeof(BPy_PropertyRNA), /* tp_basicsize */ | ||||
| 0, /* tp_itemsize */ | 0, /* tp_itemsize */ | ||||
| /* methods */ | /* methods */ | ||||
| (destructor)pyrna_prop_dealloc, /* tp_dealloc */ | (destructor)pyrna_prop_dealloc, /* tp_dealloc */ | ||||
| #if PY_VERSION_HEX >= 0x03080000 | |||||
| 0, /* tp_vectorcall_offset */ | 0, /* tp_vectorcall_offset */ | ||||
| #else | |||||
| (printfunc)NULL, /* printfunc tp_print */ | |||||
| #endif | |||||
| NULL, /* getattrfunc tp_getattr; */ | NULL, /* getattrfunc tp_getattr; */ | ||||
| NULL, /* setattrfunc tp_setattr; */ | NULL, /* setattrfunc tp_setattr; */ | ||||
| NULL, | NULL, | ||||
| /* tp_compare */ /* DEPRECATED in Python 3.0! */ | /* tp_compare */ /* DEPRECATED in Python 3.0! */ | ||||
| NULL, | NULL, | ||||
| /* subclassed */ /* tp_repr */ | /* subclassed */ /* tp_repr */ | ||||
| /* Method suites for standard classes */ | /* Method suites for standard classes */ | ||||
| &pyrna_prop_collection_as_number, /* PyNumberMethods *tp_as_number; */ | &pyrna_prop_collection_as_number, /* PyNumberMethods *tp_as_number; */ | ||||
| ▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
| /* only for add/remove/move methods */ | /* only for add/remove/move methods */ | ||||
| static PyTypeObject pyrna_prop_collection_idprop_Type = { | static PyTypeObject pyrna_prop_collection_idprop_Type = { | ||||
| PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop_collection_idprop", /* tp_name */ | PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop_collection_idprop", /* tp_name */ | ||||
| sizeof(BPy_PropertyRNA), /* tp_basicsize */ | sizeof(BPy_PropertyRNA), /* tp_basicsize */ | ||||
| 0, /* tp_itemsize */ | 0, /* tp_itemsize */ | ||||
| /* methods */ | /* methods */ | ||||
| (destructor)pyrna_prop_dealloc, /* tp_dealloc */ | (destructor)pyrna_prop_dealloc, /* tp_dealloc */ | ||||
| #if PY_VERSION_HEX >= 0x03080000 | |||||
| 0, /* tp_vectorcall_offset */ | 0, /* tp_vectorcall_offset */ | ||||
| #else | |||||
| (printfunc)NULL, /* printfunc tp_print */ | |||||
| #endif | |||||
| NULL, /* getattrfunc tp_getattr; */ | NULL, /* getattrfunc tp_getattr; */ | ||||
| NULL, /* setattrfunc tp_setattr; */ | NULL, /* setattrfunc tp_setattr; */ | ||||
| NULL, | NULL, | ||||
| /* tp_compare */ /* DEPRECATED in Python 3.0! */ | /* tp_compare */ /* DEPRECATED in Python 3.0! */ | ||||
| NULL, | NULL, | ||||
| /* subclassed */ /* tp_repr */ | /* subclassed */ /* tp_repr */ | ||||
| /* Method suites for standard classes */ | /* Method suites for standard classes */ | ||||
| NULL, /* PyNumberMethods *tp_as_number; */ | NULL, /* PyNumberMethods *tp_as_number; */ | ||||
| ▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
| /*-----------------------BPy_PropertyRNA method def------------------------------*/ | /*-----------------------BPy_PropertyRNA method def------------------------------*/ | ||||
| PyTypeObject pyrna_func_Type = { | PyTypeObject pyrna_func_Type = { | ||||
| PyVarObject_HEAD_INIT(NULL, 0) "bpy_func", /* tp_name */ | PyVarObject_HEAD_INIT(NULL, 0) "bpy_func", /* tp_name */ | ||||
| sizeof(BPy_FunctionRNA), /* tp_basicsize */ | sizeof(BPy_FunctionRNA), /* tp_basicsize */ | ||||
| 0, /* tp_itemsize */ | 0, /* tp_itemsize */ | ||||
| /* methods */ | /* methods */ | ||||
| NULL, /* tp_dealloc */ | NULL, /* tp_dealloc */ | ||||
| #if PY_VERSION_HEX >= 0x03080000 | |||||
| 0, /* tp_vectorcall_offset */ | 0, /* tp_vectorcall_offset */ | ||||
| #else | |||||
| (printfunc)NULL, /* printfunc tp_print */ | |||||
| #endif | |||||
| NULL, /* getattrfunc tp_getattr; */ | NULL, /* getattrfunc tp_getattr; */ | ||||
| NULL, /* setattrfunc tp_setattr; */ | NULL, /* setattrfunc tp_setattr; */ | ||||
| NULL, | NULL, | ||||
| /* tp_compare */ /* DEPRECATED in Python 3.0! */ | /* tp_compare */ /* DEPRECATED in Python 3.0! */ | ||||
| (reprfunc)pyrna_func_repr, /* tp_repr */ | (reprfunc)pyrna_func_repr, /* tp_repr */ | ||||
| /* Method suites for standard classes */ | /* Method suites for standard classes */ | ||||
| ▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
| static PyObject *pyrna_prop_collection_iter_next(BPy_PropertyCollectionIterRNA *self); | static PyObject *pyrna_prop_collection_iter_next(BPy_PropertyCollectionIterRNA *self); | ||||
| static PyTypeObject pyrna_prop_collection_iter_Type = { | static PyTypeObject pyrna_prop_collection_iter_Type = { | ||||
| PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop_collection_iter", /* tp_name */ | PyVarObject_HEAD_INIT(NULL, 0) "bpy_prop_collection_iter", /* tp_name */ | ||||
| sizeof(BPy_PropertyCollectionIterRNA), /* tp_basicsize */ | sizeof(BPy_PropertyCollectionIterRNA), /* tp_basicsize */ | ||||
| 0, /* tp_itemsize */ | 0, /* tp_itemsize */ | ||||
| /* methods */ | /* methods */ | ||||
| (destructor)pyrna_prop_collection_iter_dealloc, /* tp_dealloc */ | (destructor)pyrna_prop_collection_iter_dealloc, /* tp_dealloc */ | ||||
| # if PY_VERSION_HEX >= 0x03080000 | |||||
| 0, /* tp_vectorcall_offset */ | 0, /* tp_vectorcall_offset */ | ||||
| # else | |||||
| (printfunc)NULL, /* printfunc tp_print */ | |||||
| # endif | |||||
| NULL, /* getattrfunc tp_getattr; */ | NULL, /* getattrfunc tp_getattr; */ | ||||
| NULL, /* setattrfunc tp_setattr; */ | NULL, /* setattrfunc tp_setattr; */ | ||||
| NULL, | NULL, | ||||
| /* tp_compare */ /* DEPRECATED in Python 3.0! */ | /* tp_compare */ /* DEPRECATED in Python 3.0! */ | ||||
| NULL, | NULL, | ||||
| /* subclassed */ /* tp_repr */ | /* subclassed */ /* tp_repr */ | ||||
| /* Method suites for standard classes */ | /* Method suites for standard classes */ | ||||
| NULL, /* PyNumberMethods *tp_as_number; */ | NULL, /* PyNumberMethods *tp_as_number; */ | ||||
| ▲ Show 20 Lines • Show All 2,093 Lines • Show Last 20 Lines | |||||