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

Go to the source code of this file.

Classes

struct  BPy_PropDeferred

Macros

#define BPy_PropDeferred_CheckTypeExact(v)
#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)
Value:
(Py_TYPE(v) == &bpy_prop_deferred_Type)
ATTR_WARN_UNUSED_RESULT const BMVert * v
PyTypeObject bpy_prop_deferred_Type
Definition bpy_props.cc:309

Definition at line 37 of file bpy_props.hh.

Referenced by deferred_register_prop(), and pyrna_struct_meta_idprop_setattro().

◆ PYRNA_STACK_ARRAY

#define PYRNA_STACK_ARRAY   RNA_STACK_ARRAY

Function Documentation

◆ BPy_CollectionProperty()

◆ BPy_PointerProperty()

◆ BPY_rna_props()

PyObject * BPY_rna_props ( )
nodiscard

◆ 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 5760 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 )
nodiscard

Definition at line 5223 of file bpy_props.cc.

References Py_DECREF(), 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 309 of file bpy_props.cc.

Referenced by bpy_prop_deferred_data_CreatePyObject(), and BPY_rna_props().