Blender V5.0
idprop_py_api.hh File Reference
#include <Python.h>

Go to the source code of this file.

Classes

struct  BPy_IDProperty
struct  BPy_IDArray
struct  BPy_IDGroup_Iter
struct  BPy_IDGroup_View

Macros

#define BPy_IDArray_Check(v)
#define BPy_IDArray_CheckExact(v)
#define BPy_IDGroup_Check(v)
#define BPy_IDGroup_CheckExact(v)
#define BPy_IDGroup_ViewKeys_Check(v)
#define BPy_IDGroup_ViewKeys_CheckExact(v)
#define BPy_IDGroup_ViewValues_Check(v)
#define BPy_IDGroup_ViewValues_CheckExact(v)
#define BPy_IDGroup_ViewItems_Check(v)
#define BPy_IDGroup_ViewItems_CheckExact(v)
#define BPy_IDGroup_IterKeys_Check(v)
#define BPy_IDGroup_IterKeys_CheckExact(v)
#define BPy_IDGroup_IterValues_Check(v)
#define BPy_IDGroup_IterValues_CheckExact(v)
#define BPy_IDGroup_IterItems_Check(v)
#define BPy_IDGroup_IterItems_CheckExact(v)

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

Macro Definition Documentation

◆ BPy_IDArray_Check

#define BPy_IDArray_Check ( v)
Value:
(PyObject_TypeCheck(v, &BPy_IDArray_Type))
ATTR_WARN_UNUSED_RESULT const BMVert * v
PyTypeObject BPy_IDArray_Type

Definition at line 28 of file idprop_py_api.hh.

◆ BPy_IDArray_CheckExact

#define BPy_IDArray_CheckExact ( v)
Value:
(Py_TYPE(v) == &BPy_IDArray_Type)

Definition at line 29 of file idprop_py_api.hh.

◆ BPy_IDGroup_Check

#define BPy_IDGroup_Check ( v)
Value:
(PyObject_TypeCheck(v, &BPy_IDGroup_Type))
PyTypeObject BPy_IDGroup_Type

Definition at line 30 of file idprop_py_api.hh.

Referenced by BPy_IDGroup_update().

◆ BPy_IDGroup_CheckExact

#define BPy_IDGroup_CheckExact ( v)
Value:
(Py_TYPE(v) == &BPy_IDGroup_Type)

Definition at line 31 of file idprop_py_api.hh.

◆ BPy_IDGroup_IterItems_Check

#define BPy_IDGroup_IterItems_Check ( v)
Value:
(PyObject_TypeCheck(v, &BPy_IDGroup_IterItems_Type))
PyTypeObject BPy_IDGroup_IterItems_Type

Definition at line 44 of file idprop_py_api.hh.

◆ BPy_IDGroup_IterItems_CheckExact

#define BPy_IDGroup_IterItems_CheckExact ( v)
Value:

Definition at line 45 of file idprop_py_api.hh.

◆ BPy_IDGroup_IterKeys_Check

#define BPy_IDGroup_IterKeys_Check ( v)
Value:
(PyObject_TypeCheck(v, &BPy_IDGroup_IterKeys_Type))
PyTypeObject BPy_IDGroup_IterKeys_Type

Definition at line 40 of file idprop_py_api.hh.

◆ BPy_IDGroup_IterKeys_CheckExact

#define BPy_IDGroup_IterKeys_CheckExact ( v)
Value:

Definition at line 41 of file idprop_py_api.hh.

◆ BPy_IDGroup_IterValues_Check

#define BPy_IDGroup_IterValues_Check ( v)
Value:
(PyObject_TypeCheck(v, &BPy_IDGroup_IterValues_Type))
PyTypeObject BPy_IDGroup_IterValues_Type

Definition at line 42 of file idprop_py_api.hh.

◆ BPy_IDGroup_IterValues_CheckExact

#define BPy_IDGroup_IterValues_CheckExact ( v)
Value:

Definition at line 43 of file idprop_py_api.hh.

◆ BPy_IDGroup_ViewItems_Check

#define BPy_IDGroup_ViewItems_Check ( v)
Value:
(PyObject_TypeCheck(v, &BPy_IDGroup_ViewItems_Type))
PyTypeObject BPy_IDGroup_ViewItems_Type

Definition at line 37 of file idprop_py_api.hh.

◆ BPy_IDGroup_ViewItems_CheckExact

#define BPy_IDGroup_ViewItems_CheckExact ( v)
Value:

Definition at line 38 of file idprop_py_api.hh.

◆ BPy_IDGroup_ViewKeys_Check

#define BPy_IDGroup_ViewKeys_Check ( v)
Value:
(PyObject_TypeCheck(v, &BPy_IDGroup_ViewKeys_Type))
PyTypeObject BPy_IDGroup_ViewKeys_Type

Definition at line 33 of file idprop_py_api.hh.

◆ BPy_IDGroup_ViewKeys_CheckExact

#define BPy_IDGroup_ViewKeys_CheckExact ( v)
Value:

Definition at line 34 of file idprop_py_api.hh.

◆ BPy_IDGroup_ViewValues_Check

#define BPy_IDGroup_ViewValues_Check ( v)
Value:
(PyObject_TypeCheck(v, &BPy_IDGroup_ViewValues_Type))
PyTypeObject BPy_IDGroup_ViewValues_Type

Definition at line 35 of file idprop_py_api.hh.

◆ BPy_IDGroup_ViewValues_CheckExact

#define BPy_IDGroup_ViewValues_CheckExact ( v)
Value:

Definition at line 36 of file idprop_py_api.hh.

Function Documentation

◆ BPy_IDGroup_MapDataToPy()

◆ BPy_IDGroup_WrapData()

◆ BPy_IDProperty_Map_ValidateAndCreate()

bool BPy_IDProperty_Map_ValidateAndCreate ( PyObject * key,
IDProperty * group,
PyObject * ob )
nodiscard

◆ BPy_Wrap_GetItems()

◆ BPy_Wrap_GetItems_View_WithID()

PyObject * BPy_Wrap_GetItems_View_WithID ( ID * id,
IDProperty * prop )
nodiscard

◆ BPy_Wrap_GetKeys()

◆ BPy_Wrap_GetKeys_View_WithID()

PyObject * BPy_Wrap_GetKeys_View_WithID ( ID * id,
IDProperty * prop )
nodiscard

◆ BPy_Wrap_GetValues()

◆ BPy_Wrap_GetValues_View_WithID()

PyObject * BPy_Wrap_GetValues_View_WithID ( ID * id,
IDProperty * prop )
nodiscard

◆ BPy_Wrap_SetMapItem()

int BPy_Wrap_SetMapItem ( IDProperty * prop,
PyObject * key,
PyObject * val )
nodiscard

◆ BPyInit_idprop()

PyObject * BPyInit_idprop ( )
nodiscard

Definition at line 2679 of file idprop_py_api.cc.

References BPyInit_idprop_types(), IDProp_module_def, and mod.

◆ IDProp_Init_Types()

Variable Documentation

◆ BPy_IDArray_Type

PyTypeObject BPy_IDArray_Type
extern

◆ BPy_IDGroup_IterItems_Type

PyTypeObject BPy_IDGroup_IterItems_Type
extern

◆ BPy_IDGroup_IterKeys_Type

PyTypeObject BPy_IDGroup_IterKeys_Type
extern

◆ BPy_IDGroup_IterValues_Type

PyTypeObject BPy_IDGroup_IterValues_Type
extern

◆ BPy_IDGroup_Type

PyTypeObject BPy_IDGroup_Type
extern

◆ BPy_IDGroup_ViewItems_Type

PyTypeObject BPy_IDGroup_ViewItems_Type
extern

◆ BPy_IDGroup_ViewKeys_Type

PyTypeObject BPy_IDGroup_ViewKeys_Type
extern

◆ BPy_IDGroup_ViewValues_Type

PyTypeObject BPy_IDGroup_ViewValues_Type
extern