Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | BPy_IDProperty |
struct | BPy_IDArray |
struct | BPy_IDGroup_Iter |
struct | BPy_IDGroup_View |
Typedefs | |
typedef struct BPy_IDProperty | BPy_IDProperty |
typedef struct BPy_IDArray | BPy_IDArray |
typedef struct BPy_IDGroup_Iter | BPy_IDGroup_Iter |
typedef struct BPy_IDGroup_View | BPy_IDGroup_View |
Functions | |
PyObject * | BPy_Wrap_GetKeys (struct IDProperty *prop) |
PyObject * | BPy_Wrap_GetValues (struct ID *id, struct IDProperty *prop) |
PyObject * | BPy_Wrap_GetItems (struct ID *id, struct IDProperty *prop) |
PyObject * | BPy_Wrap_GetKeys_View_WithID (struct ID *id, struct IDProperty *prop) |
PyObject * | BPy_Wrap_GetValues_View_WithID (struct ID *id, struct IDProperty *prop) |
PyObject * | BPy_Wrap_GetItems_View_WithID (struct ID *id, struct IDProperty *prop) |
int | BPy_Wrap_SetMapItem (struct IDProperty *prop, PyObject *key, PyObject *val) |
PyObject * | BPy_IDGroup_MapDataToPy (struct IDProperty *prop) |
PyObject * | BPy_IDGroup_WrapData (struct ID *id, struct IDProperty *prop, struct IDProperty *parent) |
bool | BPy_IDProperty_Map_ValidateAndCreate (PyObject *key, struct IDProperty *group, PyObject *ob) |
void | IDProp_Init_Types (void) |
PyObject * | BPyInit_idprop (void) |
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 24 of file idprop_py_api.h.
#define BPy_IDArray_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDArray_Type) |
Definition at line 25 of file idprop_py_api.h.
#define BPy_IDGroup_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_Type)) |
Definition at line 26 of file idprop_py_api.h.
#define BPy_IDGroup_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_Type) |
Definition at line 27 of file idprop_py_api.h.
#define BPy_IDGroup_IterItems_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_IterItems_Type)) |
Definition at line 40 of file idprop_py_api.h.
#define BPy_IDGroup_IterItems_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_IterItems_Type) |
Definition at line 41 of file idprop_py_api.h.
#define BPy_IDGroup_IterKeys_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_IterKeys_Type)) |
Definition at line 36 of file idprop_py_api.h.
#define BPy_IDGroup_IterKeys_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_IterKeys_Type) |
Definition at line 37 of file idprop_py_api.h.
#define BPy_IDGroup_IterValues_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_IterValues_Type)) |
Definition at line 38 of file idprop_py_api.h.
#define BPy_IDGroup_IterValues_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_IterValues_Type) |
Definition at line 39 of file idprop_py_api.h.
#define BPy_IDGroup_ViewItems_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_ViewItems_Type)) |
Definition at line 33 of file idprop_py_api.h.
#define BPy_IDGroup_ViewItems_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_ViewItems_Type) |
Definition at line 34 of file idprop_py_api.h.
#define BPy_IDGroup_ViewKeys_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_ViewKeys_Type)) |
Definition at line 29 of file idprop_py_api.h.
#define BPy_IDGroup_ViewKeys_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_ViewKeys_Type) |
Definition at line 30 of file idprop_py_api.h.
#define BPy_IDGroup_ViewValues_Check | ( | v | ) | (PyObject_TypeCheck(v, &BPy_IDGroup_ViewValues_Type)) |
Definition at line 31 of file idprop_py_api.h.
#define BPy_IDGroup_ViewValues_CheckExact | ( | v | ) | (Py_TYPE(v) == &BPy_IDGroup_ViewValues_Type) |
Definition at line 32 of file idprop_py_api.h.
typedef struct BPy_IDArray BPy_IDArray |
typedef struct BPy_IDGroup_Iter BPy_IDGroup_Iter |
typedef struct BPy_IDGroup_View BPy_IDGroup_View |
Use to implement IDPropertyGroup.keys/values/items
typedef struct BPy_IDProperty BPy_IDProperty |
PyObject* BPy_IDGroup_MapDataToPy | ( | struct IDProperty * | prop | ) |
For simple, non nested types this is the same as BPy_IDGroup_WrapData.
Definition at line 771 of file idprop_py_api.c.
References IDProperty::data, ListBase::first, IDPropertyData::group, IDP_Array, IDP_ARRAY, IDP_DOUBLE, IDP_FLOAT, IDP_GROUP, IDP_ID, IDP_IDPArray, IDP_IDPARRAY, IDP_INT, IDP_STRING, 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, NULL, IDProperty::subtype, IDProperty::type, UNLIKELY, and blender::bke::image::partial_update::wrap().
Referenced by BPy_IDArray_to_list(), BPy_IDGroup_pop(), BPy_IDGroup_to_dict(), and pyrna_struct_pop().
PyObject* BPy_IDGroup_WrapData | ( | struct ID * | id, |
struct IDProperty * | prop, | ||
struct IDProperty * | parent | ||
) |
Definition at line 147 of file idprop_py_api.c.
References IDP_ARRAY, IDP_DOUBLE, IDP_FLOAT, IDP_GROUP, IDP_ID, IDP_IDPARRAY, IDP_INT, IDP_STRING, idprop_py_from_idp_array(), 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, |
struct IDProperty * | group, | ||
PyObject * | ob | ||
) |
Definition at line 675 of file idprop_py_api.c.
References IDProperty::flag, IDP_AppendArray(), IDP_FreePropertyContent(), idp_from_PyObject(), IDP_GetPropertyFromGroup(), IDP_IDPARRAY, IDP_ReplaceInGroup_ex(), MEM_freeN, IDProperty::name, IDProperty::next, NULL, IDProperty::prev, IDProperty::subtype, IDProperty::type, and IDProperty::ui_data.
Referenced by BPy_Wrap_SetMapItem(), idp_from_PyMapping(), and idp_from_PySequence_Fast().
PyObject* BPy_Wrap_GetItems | ( | struct ID * | id, |
struct IDProperty * | prop | ||
) |
Definition at line 1352 of file idprop_py_api.c.
References BPy_IDGroup_CorrectListLen(), BPy_IDGroup_WrapData(), IDProperty::data, ListBase::first, IDPropertyData::group, IDProperty::len, IDProperty::name, IDProperty::next, and PyTuple_SET_ITEMS.
PyObject* BPy_Wrap_GetItems_View_WithID | ( | struct ID * | id, |
struct IDProperty * | prop | ||
) |
Definition at line 1391 of file idprop_py_api.c.
References BPy_IDGroup_ViewItems_CreatePyObject(), idprop_py_from_idp_group(), NULL, and ret.
Referenced by pyrna_struct_items().
PyObject* BPy_Wrap_GetKeys | ( | struct IDProperty * | prop | ) |
Definition at line 1307 of file idprop_py_api.c.
References BPy_IDGroup_CorrectListLen(), IDProperty::data, ListBase::first, IDPropertyData::group, len, IDProperty::len, IDProperty::name, and IDProperty::next.
PyObject* BPy_Wrap_GetKeys_View_WithID | ( | struct ID * | id, |
struct IDProperty * | prop | ||
) |
Definition at line 1375 of file idprop_py_api.c.
References BPy_IDGroup_ViewKeys_CreatePyObject(), idprop_py_from_idp_group(), NULL, and ret.
Referenced by pyrna_struct_keys().
PyObject* BPy_Wrap_GetValues | ( | struct ID * | id, |
struct IDProperty * | prop | ||
) |
Definition at line 1332 of file idprop_py_api.c.
References BPy_IDGroup_CorrectListLen(), BPy_IDGroup_WrapData(), IDProperty::data, ListBase::first, IDPropertyData::group, IDProperty::len, and IDProperty::next.
PyObject* BPy_Wrap_GetValues_View_WithID | ( | struct ID * | id, |
struct IDProperty * | prop | ||
) |
Definition at line 1383 of file idprop_py_api.c.
References BPy_IDGroup_ViewValues_CreatePyObject(), idprop_py_from_idp_group(), NULL, and ret.
Referenced by pyrna_struct_values().
int BPy_Wrap_SetMapItem | ( | struct IDProperty * | prop, |
PyObject * | key, | ||
PyObject * | val | ||
) |
Definition at line 716 of file idprop_py_api.c.
References BPy_IDProperty_Map_ValidateAndCreate(), IDP_FreeFromGroup(), IDP_GetPropertyFromGroup(), IDP_GROUP, NULL, and IDProperty::type.
Referenced by BPy_IDGroup_Map_SetItem(), and pyrna_struct_ass_subscript().
PyObject* BPyInit_idprop | ( | void | ) |
Definition at line 2177 of file idprop_py_api.c.
References BPyInit_idprop_types(), IDProp_module_def, and mod().
Definition at line 2058 of file idprop_py_api.c.
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 1971 of file idprop_py_api.c.
Referenced by BPyInit_idprop_types(), IDProp_Init_Types(), and idprop_py_from_idp_array().
|
extern |
Definition at line 972 of file idprop_py_api.c.
Referenced by BPy_IDGroup_IterItems_CreatePyObject(), BPyInit_idprop_types(), IDGroup_Iter_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 970 of file idprop_py_api.c.
Referenced by BPy_IDGroup_IterKeys_CreatePyObject(), BPyInit_idprop_types(), IDGroup_Iter_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 971 of file idprop_py_api.c.
Referenced by BPy_IDGroup_IterValues_CreatePyObject(), BPyInit_idprop_types(), IDGroup_Iter_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 1560 of file idprop_py_api.c.
Referenced by BPyInit_idprop_types(), IDProp_Init_Types(), idprop_py_from_idp_group(), and pyrna_struct_id_properties_ensure().
|
extern |
Definition at line 1201 of file idprop_py_api.c.
Referenced by BPy_IDGroup_ViewItems_CreatePyObject(), BPyInit_idprop_types(), IDGroup_View_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 1199 of file idprop_py_api.c.
Referenced by BPy_IDGroup_ViewKeys_CreatePyObject(), BPyInit_idprop_types(), IDGroup_View_init_type(), and IDProp_Init_Types().
|
extern |
Definition at line 1200 of file idprop_py_api.c.
Referenced by BPy_IDGroup_ViewValues_CreatePyObject(), BPyInit_idprop_types(), IDGroup_View_init_type(), and IDProp_Init_Types().