Blender  V3.3
Classes | Macros | Functions | Variables
bpy_props.h File Reference

Go to the source code of this file.

Classes

struct  BPy_PropDeferred
 

Macros

#define BPy_PropDeferred_CheckTypeExact(v)   (Py_TYPE(v) == &bpy_prop_deferred_Type)
 
#define PYRNA_STACK_ARRAY   RNA_STACK_ARRAY
 

Functions

PyObject * BPY_rna_props (void)
 
void BPY_rna_props_clear_all (void)
 
PyObject * BPy_PointerProperty (PyObject *self, PyObject *args, PyObject *kw)
 
PyObject * BPy_CollectionProperty (PyObject *self, PyObject *args, PyObject *kw)
 
StructRNApointer_type_from_py (PyObject *value, const char *error_prefix)
 

Variables

PyTypeObject bpy_prop_deferred_Type
 

Macro Definition Documentation

◆ BPy_PropDeferred_CheckTypeExact

#define BPy_PropDeferred_CheckTypeExact (   v)    (Py_TYPE(v) == &bpy_prop_deferred_Type)

Definition at line 35 of file bpy_props.h.

◆ PYRNA_STACK_ARRAY

#define PYRNA_STACK_ARRAY   RNA_STACK_ARRAY

Definition at line 37 of file bpy_props.h.

Function Documentation

◆ BPy_CollectionProperty()

PyObject* BPy_CollectionProperty ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)

◆ BPy_PointerProperty()

PyObject* BPy_PointerProperty ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)

◆ BPY_rna_props()

PyObject* BPY_rna_props ( void  )

◆ BPY_rna_props_clear_all()

void BPY_rna_props_clear_all ( void  )

Run this on exit, clearing all Python callback users and disable the RNA callback, as it would be called after Python has already finished.

Definition at line 4676 of file bpy_props.c.

References BLI_listbase_clear(), g_bpy_prop_store_list, NULL, props_clear(), and RNA_def_property_free_pointers_set_py_data_callback().

Referenced by BPY_python_end().

◆ pointer_type_from_py()

StructRNA* pointer_type_from_py ( PyObject *  value,
const char *  error_prefix 
)

Variable Documentation

◆ bpy_prop_deferred_Type

PyTypeObject bpy_prop_deferred_Type
extern

Definition at line 281 of file bpy_props.c.

Referenced by bpy_prop_deferred_data_CreatePyObject(), and BPY_rna_props().