|
Blender
V2.59
|
Go to the source code of this file.
Classes | |
| struct | BPy_IDProperty |
| struct | BPy_IDArray |
| struct | BPy_IDGroup_Iter |
Defines | |
| #define | IDPROP_ITER_KEYS 0 |
| #define | IDPROP_ITER_ITEMS 1 |
Typedefs | |
| typedef struct BPy_IDProperty | BPy_IDProperty |
| typedef struct BPy_IDArray | BPy_IDArray |
| typedef struct BPy_IDGroup_Iter | BPy_IDGroup_Iter |
Functions | |
| PyObject * | BPy_Wrap_IDProperty (struct ID *id, struct IDProperty *prop, struct IDProperty *parent) |
| 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) |
| int | BPy_Wrap_SetMapItem (struct IDProperty *prop, PyObject *key, PyObject *val) |
| PyObject * | BPy_IDGroup_WrapData (struct ID *id, struct IDProperty *prop) |
| const char * | BPy_IDProperty_Map_ValidateAndCreate (const char *name, struct IDProperty *group, PyObject *ob) |
| void | IDProp_Init_Types (void) |
Definition in file IDProp.h.
| #define IDPROP_ITER_ITEMS 1 |
Definition at line 71 of file IDProp.h.
Referenced by BPy_Group_Iter_Next(), and BPy_IDGroup_IterItems().
| #define IDPROP_ITER_KEYS 0 |
Definition at line 70 of file IDProp.h.
Referenced by BPy_IDGroup_iter().
| typedef struct BPy_IDArray BPy_IDArray |
| typedef struct BPy_IDGroup_Iter BPy_IDGroup_Iter |
| typedef struct BPy_IDProperty BPy_IDProperty |
| PyObject* BPy_IDGroup_WrapData | ( | struct ID * | id, |
| struct IDProperty * | prop | ||
| ) |
Definition at line 65 of file IDProp.c.
References BPy_IDArray_Type, BPy_IDGroup_Type, BPy_IDGroup_WrapData(), IDProperty::data, i, BPy_IDProperty::id, IDP_ARRAY, IDP_Array, IDP_DOUBLE, IDP_FLOAT, IDP_GROUP, IDP_IDPARRAY, IDP_IDPArray, IDP_INT, IDP_STRING, IDProperty::len, NULL, BPy_IDProperty::prop, PyC_UnicodeFromByte(), IDProperty::type, and IDPropertyData::val.
Referenced by BPy_Group_Iter_Next(), BPy_IDGroup_Get(), BPy_IDGroup_Map_GetItem(), BPy_IDGroup_WrapData(), BPy_Wrap_GetItems(), BPy_Wrap_GetValues(), pyrna_struct_get(), and pyrna_struct_subscript().
| const char* BPy_IDProperty_Map_ValidateAndCreate | ( | const char * | name, |
| struct IDProperty * | group, | ||
| PyObject * | ob | ||
| ) |
Definition at line 307 of file IDProp.c.
References IDPropertyTemplate::array, BPy_IDProperty_Map_ValidateAndCreate(), IDPropertyTemplate::d, error(), i, IDPropertyTemplate::i, IDP_AppendArray(), IDP_ARRAY, IDP_Array, IDP_DOUBLE, IDP_FreeProperty(), IDP_GROUP, IDP_IDPARRAY, IDP_INT, IDP_New(), IDP_NewIDPArray(), IDP_ReplaceInGroup(), idp_sequence_type(), IDP_STRING, IDPropertyTemplate::len, MEM_freeN(), IDProperty::name, NULL, PyC_UnicodeAsByte(), IDPropertyTemplate::str, IDPropertyTemplate::type, IDProperty::type, and simple_enum_gen::val.
Referenced by BPy_IDProperty_Map_ValidateAndCreate(), and BPy_Wrap_SetMapItem().
| PyObject* BPy_Wrap_GetItems | ( | struct ID * | id, |
| struct IDProperty * | prop | ||
| ) |
Definition at line 688 of file IDProp.c.
References BPy_IDGroup_CorrectListLen(), BPy_IDGroup_WrapData(), BPy_Wrap_GetItems(), IDProperty::data, ListBase::first, IDPropertyData::group, i, IDProperty::len, IDProperty::name, and IDProperty::next.
Referenced by BPy_IDGroup_GetItems(), BPy_Wrap_GetItems(), and pyrna_struct_items().
| PyObject* BPy_Wrap_GetKeys | ( | struct IDProperty * | prop | ) |
Definition at line 646 of file IDProp.c.
References BPy_IDGroup_CorrectListLen(), BPy_Wrap_GetKeys(), IDProperty::data, ListBase::first, IDPropertyData::group, i, IDProperty::len, IDProperty::name, and IDProperty::next.
Referenced by BPy_IDGroup_GetKeys(), BPy_Wrap_GetKeys(), and pyrna_struct_keys().
| PyObject* BPy_Wrap_GetValues | ( | struct ID * | id, |
| struct IDProperty * | prop | ||
| ) |
Definition at line 668 of file IDProp.c.
References BPy_IDGroup_CorrectListLen(), BPy_IDGroup_WrapData(), BPy_Wrap_GetValues(), IDProperty::data, ListBase::first, IDPropertyData::group, i, IDProperty::len, and IDProperty::next.
Referenced by BPy_IDGroup_GetValues(), BPy_Wrap_GetValues(), and pyrna_struct_values().
| PyObject* BPy_Wrap_IDProperty | ( | struct ID * | id, |
| struct IDProperty * | prop, | ||
| struct IDProperty * | parent | ||
| ) |
Definition at line 885 of file IDProp.c.
References BPy_IDProperty::id, BPy_IDProperty::parent, and BPy_IDProperty::prop.
| int BPy_Wrap_SetMapItem | ( | struct IDProperty * | prop, |
| PyObject * | key, | ||
| PyObject * | val | ||
| ) |
Definition at line 430 of file IDProp.c.
References BPy_IDProperty_Map_ValidateAndCreate(), err, IDP_FreeProperty(), IDP_GetPropertyFromGroup(), IDP_GROUP, IDP_RemFromGroup(), MEM_freeN(), NULL, and IDProperty::type.
Referenced by BPy_IDGroup_Map_SetItem(), and pyrna_struct_ass_subscript().
| void IDProp_Init_Types | ( | void | ) |
Definition at line 1353 of file IDProp.c.
Referenced by BPy_init_modules().