Blender V4.3
bpy_props.hh 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 BPY_rna_props_clear_all ()
 
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 33 of file bpy_props.hh.

Referenced by deferred_register_prop(), and pyrna_struct_meta_idprop_setattro().

◆ PYRNA_STACK_ARRAY

Function Documentation

◆ BPy_CollectionProperty()

◆ BPy_PointerProperty()

◆ BPY_rna_props()

◆ BPY_rna_props_clear_all()

void BPY_rna_props_clear_all ( )

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 4882 of file bpy_props.cc.

References BLI_listbase_clear(), g_bpy_prop_store_list, 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 )

Definition at line 4358 of file bpy_props.cc.

References PyC_ExceptionBuffer(), and srna_from_self().

Referenced by BPy_CollectionProperty(), and BPy_PointerProperty().

Variable Documentation

◆ bpy_prop_deferred_Type

PyTypeObject bpy_prop_deferred_Type
extern

Definition at line 288 of file bpy_props.cc.

Referenced by bpy_prop_deferred_data_CreatePyObject(), and BPY_rna_props().