|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | BPy_IDProperty |
| struct | BPy_IDArray |
| struct | BPy_IDGroup_Iter |
| struct | BPy_IDGroup_View |
Functions | |
| PyObject * | BPy_Wrap_GetKeys (IDProperty *prop) |
| PyObject * | BPy_Wrap_GetValues (ID *id, IDProperty *prop) |
| PyObject * | BPy_Wrap_GetItems (ID *id, IDProperty *prop) |
| PyObject * | BPy_Wrap_GetKeys_View_WithID (ID *id, IDProperty *prop) |
| PyObject * | BPy_Wrap_GetValues_View_WithID (ID *id, IDProperty *prop) |
| PyObject * | BPy_Wrap_GetItems_View_WithID (ID *id, IDProperty *prop) |
| int | BPy_Wrap_SetMapItem (IDProperty *prop, PyObject *key, PyObject *val) |
| PyObject * | BPy_IDGroup_MapDataToPy (IDProperty *prop) |
| PyObject * | BPy_IDGroup_WrapData (ID *id, IDProperty *prop, IDProperty *parent) |
| bool | BPy_IDProperty_Map_ValidateAndCreate (PyObject *key, IDProperty *group, PyObject *ob) |
| void | IDProp_Init_Types () |
| PyObject * | BPyInit_idprop () |
Variables | |
| PyTypeObject | BPy_IDArray_Type |
| PyTypeObject | BPy_IDGroup_Type |
| PyTypeObject | BPy_IDGroup_ViewKeys_Type |
| PyTypeObject | BPy_IDGroup_ViewValues_Type |
| PyTypeObject | BPy_IDGroup_ViewItems_Type |
| PyTypeObject | BPy_IDGroup_IterKeys_Type |
| PyTypeObject | BPy_IDGroup_IterValues_Type |
| PyTypeObject | BPy_IDGroup_IterItems_Type |
| #define BPy_IDArray_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDArray_Type)) |
Definition at line 26 of file idprop_py_api.hh.
| #define BPy_IDArray_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDArray_Type) |
Definition at line 27 of file idprop_py_api.hh.
| #define BPy_IDGroup_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_Type)) |
Definition at line 28 of file idprop_py_api.hh.
Referenced by BPy_IDGroup_update().
| #define BPy_IDGroup_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_Type) |
Definition at line 29 of file idprop_py_api.hh.
| #define BPy_IDGroup_IterItems_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_IterItems_Type)) |
Definition at line 42 of file idprop_py_api.hh.
| #define BPy_IDGroup_IterItems_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_IterItems_Type) |
Definition at line 43 of file idprop_py_api.hh.
| #define BPy_IDGroup_IterKeys_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_IterKeys_Type)) |
Definition at line 38 of file idprop_py_api.hh.
| #define BPy_IDGroup_IterKeys_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_IterKeys_Type) |
Definition at line 39 of file idprop_py_api.hh.
| #define BPy_IDGroup_IterValues_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_IterValues_Type)) |
Definition at line 40 of file idprop_py_api.hh.
| #define BPy_IDGroup_IterValues_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_IterValues_Type) |
Definition at line 41 of file idprop_py_api.hh.
| #define BPy_IDGroup_ViewItems_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_ViewItems_Type)) |
Definition at line 35 of file idprop_py_api.hh.
| #define BPy_IDGroup_ViewItems_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_ViewItems_Type) |
Definition at line 36 of file idprop_py_api.hh.
| #define BPy_IDGroup_ViewKeys_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_ViewKeys_Type)) |
Definition at line 31 of file idprop_py_api.hh.
| #define BPy_IDGroup_ViewKeys_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_ViewKeys_Type) |
Definition at line 32 of file idprop_py_api.hh.
| #define BPy_IDGroup_ViewValues_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_ViewValues_Type)) |
Definition at line 33 of file idprop_py_api.hh.
| #define BPy_IDGroup_ViewValues_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_ViewValues_Type) |
Definition at line 34 of file idprop_py_api.hh.
| PyObject * BPy_IDGroup_MapDataToPy | ( | IDProperty * | prop | ) |
For simple, non nested types this is the same as BPy_IDGroup_WrapData.
Definition at line 1174 of file idprop_py_api.cc.
References BPy_IDGroup_MapDataToPy(), IDProperty::data, ListBase::first, IDPropertyData::group, IDP_ARRAY, IDP_Array, IDP_BOOLEAN, IDP_DOUBLE, IDP_FLOAT, IDP_GROUP, IDP_ID, IDP_IDPARRAY, IDP_IDPArray, IDP_INT, IDP_STRING, idprop_py_from_idp_bool(), idprop_py_from_idp_double(), idprop_py_from_idp_float(), idprop_py_from_idp_id(), idprop_py_from_idp_int(), idprop_py_from_idp_string(), IDProperty::len, IDProperty::name, IDProperty::next, IDProperty::subtype, IDProperty::type, UNLIKELY, and wrap().
Referenced by BPy_IDArray_to_list(), BPy_IDGroup_MapDataToPy(), BPy_IDGroup_pop(), BPy_IDGroup_to_dict(), and pyrna_struct_pop().
| PyObject * BPy_IDGroup_WrapData | ( | ID * | id, |
| IDProperty * | prop, | ||
| IDProperty * | parent ) |
Definition at line 156 of file idprop_py_api.cc.
References IDP_ARRAY, IDP_BOOLEAN, IDP_DOUBLE, IDP_FLOAT, IDP_GROUP, IDP_ID, IDP_IDPARRAY, IDP_INT, IDP_STRING, idprop_py_from_idp_array(), idprop_py_from_idp_bool(), idprop_py_from_idp_double(), idprop_py_from_idp_float(), idprop_py_from_idp_group(), idprop_py_from_idp_id(), idprop_py_from_idp_idparray(), idprop_py_from_idp_int(), idprop_py_from_idp_string(), and IDProperty::type.
Referenced by BPy_Group_IterItems_next(), BPy_Group_IterValues_next(), BPy_IDGroup_get(), BPy_IDGroup_Map_GetItem(), BPy_Wrap_GetItems(), BPy_Wrap_GetValues(), idprop_py_from_idp_idparray(), pyrna_struct_get(), and pyrna_struct_subscript().
| bool BPy_IDProperty_Map_ValidateAndCreate | ( | PyObject * | key, |
| IDProperty * | group, | ||
| PyObject * | ob ) |
Definition at line 1048 of file idprop_py_api.cc.
References BLI_assert, ELEM, IDProperty::flag, IDP_AppendArray(), IDP_FLAG_OVERRIDABLE_LIBRARY, IDP_FLAG_STATIC_TYPE, idp_from_PyObject(), IDP_GetPropertyFromGroup(), IDP_IDPARRAY, IDP_ReplaceInGroup_ex(), idp_try_read_name(), IDP_TryConvertUIData(), IDP_type_str(), IDP_ui_data_type(), MEM_freeN(), and IDProperty::ui_data.
Referenced by BPy_Wrap_SetMapItem(), idp_from_PyMapping(), and idp_from_PySequence_Fast().
| PyObject * BPy_Wrap_GetItems | ( | ID * | id, |
| IDProperty * | prop ) |
Definition at line 1785 of file idprop_py_api.cc.
References BPy_IDGroup_CorrectListLen(), BPy_IDGroup_WrapData(), BPy_Wrap_GetItems(), IDProperty::data, ListBase::first, IDPropertyData::group, IDProperty::len, IDProperty::name, IDProperty::next, and PyTuple_SET_ITEMS.
Referenced by BPy_Wrap_GetItems().
| PyObject * BPy_Wrap_GetItems_View_WithID | ( | ID * | id, |
| IDProperty * | prop ) |
Definition at line 1826 of file idprop_py_api.cc.
References BPy_IDGroup_ViewItems_CreatePyObject(), idprop_py_from_idp_group(), ret, and self.
Referenced by pyrna_struct_items().
| PyObject * BPy_Wrap_GetKeys | ( | IDProperty * | prop | ) |
Definition at line 1736 of file idprop_py_api.cc.
References BPy_IDGroup_CorrectListLen(), BPy_Wrap_GetKeys(), IDProperty::data, ListBase::first, IDPropertyData::group, IDProperty::len, IDProperty::name, and IDProperty::next.
Referenced by BPy_Wrap_GetKeys().
| PyObject * BPy_Wrap_GetKeys_View_WithID | ( | ID * | id, |
| IDProperty * | prop ) |
Definition at line 1810 of file idprop_py_api.cc.
References BPy_IDGroup_ViewKeys_CreatePyObject(), idprop_py_from_idp_group(), ret, and self.
Referenced by pyrna_struct_keys().
| PyObject * BPy_Wrap_GetValues | ( | ID * | id, |
| IDProperty * | prop ) |
Definition at line 1763 of file idprop_py_api.cc.
References BPy_IDGroup_CorrectListLen(), BPy_IDGroup_WrapData(), BPy_Wrap_GetValues(), IDProperty::data, ListBase::first, IDPropertyData::group, IDProperty::len, and IDProperty::next.
Referenced by BPy_Wrap_GetValues().
| PyObject * BPy_Wrap_GetValues_View_WithID | ( | ID * | id, |
| IDProperty * | prop ) |
Definition at line 1818 of file idprop_py_api.cc.
References BPy_IDGroup_ViewValues_CreatePyObject(), idprop_py_from_idp_group(), ret, and self.
Referenced by pyrna_struct_values().
| int BPy_Wrap_SetMapItem | ( | IDProperty * | prop, |
| PyObject * | key, | ||
| PyObject * | val ) |
Definition at line 1119 of file idprop_py_api.cc.
References BPy_IDProperty_Map_ValidateAndCreate(), IDP_FreeFromGroup(), IDP_GetPropertyFromGroup(), IDP_GROUP, and IDProperty::type.
Referenced by BPy_IDGroup_Map_SetItem(), and pyrna_struct_ass_subscript().
| PyObject * BPyInit_idprop | ( | ) |
Definition at line 2649 of file idprop_py_api.cc.
References BPyInit_idprop_types(), IDProp_module_def, and mod().
| void IDProp_Init_Types | ( | ) |
Definition at line 2527 of file idprop_py_api.cc.
References BPy_IDArray_Type, BPy_IDGroup_IterItems_Type, BPy_IDGroup_IterKeys_Type, BPy_IDGroup_IterValues_Type, BPy_IDGroup_Type, BPy_IDGroup_ViewItems_Type, BPy_IDGroup_ViewKeys_Type, BPy_IDGroup_ViewValues_Type, IDGroup_Iter_init_type(), and IDGroup_View_init_type().
Referenced by BPy_init_modules(), and BPyInit_idprop_types().
|
extern |
Definition at line 2468 of file idprop_py_api.cc.
Referenced by BPyInit_idprop_types(), IDProp_Init_Types(), and idprop_py_from_idp_array().
|
extern |
Definition at line 1389 of file idprop_py_api.cc.
Referenced by BPy_IDGroup_IterItems_CreatePyObject(), BPyInit_idprop_types(), IDGroup_Iter_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 1387 of file idprop_py_api.cc.
Referenced by BPy_IDGroup_IterKeys_CreatePyObject(), BPyInit_idprop_types(), IDGroup_Iter_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 1388 of file idprop_py_api.cc.
Referenced by BPy_IDGroup_IterValues_CreatePyObject(), BPyInit_idprop_types(), IDGroup_Iter_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 2019 of file idprop_py_api.cc.
Referenced by BPyInit_idprop_types(), IDProp_Init_Types(), idprop_py_from_idp_group(), and pyrna_struct_id_properties_ensure().
|
extern |
Definition at line 1628 of file idprop_py_api.cc.
Referenced by BPy_IDGroup_ViewItems_CreatePyObject(), BPyInit_idprop_types(), IDGroup_View_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 1626 of file idprop_py_api.cc.
Referenced by BPy_IDGroup_ViewKeys_CreatePyObject(), BPyInit_idprop_types(), IDGroup_View_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 1627 of file idprop_py_api.cc.
Referenced by BPy_IDGroup_ViewValues_CreatePyObject(), BPyInit_idprop_types(), IDGroup_View_init_type(), and IDProp_Init_Types().