Blender V2.61 - r43446
Classes | Defines | Functions | Variables

bpy_rna.h File Reference

Go to the source code of this file.

Classes

struct  BPy_DummyPointerRNA
struct  BPy_StructRNA
struct  BPy_PropertyRNA
struct  BPy_PropertyArrayRNA
struct  BPy_PropertyCollectionIterRNA
struct  BPy_FunctionRNA

Defines

#define USE_PYRNA_ITER
#define BPy_StructRNA_Check(v)   (PyObject_TypeCheck(v, &pyrna_struct_Type))
#define BPy_StructRNA_CheckExact(v)   (Py_TYPE(v) == &pyrna_struct_Type)
#define BPy_PropertyRNA_Check(v)   (PyObject_TypeCheck(v, &pyrna_prop_Type))
#define BPy_PropertyRNA_CheckExact(v)   (Py_TYPE(v) == &pyrna_prop_Type)
#define PYRNA_STRUCT_CHECK_OBJ(obj)   if(pyrna_struct_validity_check(obj) == -1) { return NULL; }
#define PYRNA_STRUCT_CHECK_INT(obj)   if(pyrna_struct_validity_check(obj) == -1) { return -1; }
#define PYRNA_PROP_CHECK_OBJ(obj)   if(pyrna_prop_validity_check(obj) == -1) { return NULL; }
#define PYRNA_PROP_CHECK_INT(obj)   if(pyrna_prop_validity_check(obj) == -1) { return -1; }
#define PYRNA_STRUCT_IS_VALID(pysrna)   (((BPy_StructRNA *)(pysrna))->ptr.type != NULL)
#define PYRNA_PROP_IS_VALID(pysrna)   (((BPy_PropertyRNA *)(pysrna))->ptr.type != NULL)
#define BPy_BaseTypeRNA   BPy_PropertyRNA

Functions

StructRNAsrna_from_self (PyObject *self, const char *error_prefix)
StructRNApyrna_struct_as_srna (PyObject *self, int parent, const char *error_prefix)
void BPY_rna_init (void)
PyObject * BPY_rna_module (void)
void BPY_update_rna_module (void)
PyObject * BPY_rna_types (void)
PyObject * pyrna_struct_CreatePyObject (PointerRNA *ptr)
PyObject * pyrna_prop_CreatePyObject (PointerRNA *ptr, PropertyRNA *prop)
int pyrna_pydict_to_props (PointerRNA *ptr, PyObject *kw, int all_args, const char *error_prefix)
PyObject * pyrna_prop_to_py (PointerRNA *ptr, PropertyRNA *prop)
PyObject * pyrna_enum_bitfield_to_py (struct EnumPropertyItem *items, int value)
int pyrna_set_to_enum_bitfield (EnumPropertyItem *items, PyObject *value, int *r_value, const char *error_prefix)
int pyrna_enum_value_from_id (EnumPropertyItem *item, const char *identifier, int *value, const char *error_prefix)
int pyrna_deferred_register_class (struct StructRNA *srna, PyObject *py_class)
void pyrna_alloc_types (void)
void pyrna_free_types (void)
int pyrna_py_to_array (PointerRNA *ptr, PropertyRNA *prop, char *param_data, PyObject *py, const char *error_prefix)
int pyrna_py_to_array_index (PointerRNA *ptr, PropertyRNA *prop, int arraydim, int arrayoffset, int index, PyObject *py, const char *error_prefix)
PyObject * pyrna_array_index (PointerRNA *ptr, PropertyRNA *prop, int index)
PyObject * pyrna_py_from_array (PointerRNA *ptr, PropertyRNA *prop)
PyObject * pyrna_py_from_array_index (BPy_PropertyArrayRNA *self, PointerRNA *ptr, PropertyRNA *prop, int index)
PyObject * pyrna_math_object_from_array (PointerRNA *ptr, PropertyRNA *prop)
int pyrna_array_contains_py (PointerRNA *ptr, PropertyRNA *prop, PyObject *value)
int pyrna_write_check (void)
void pyrna_write_set (int val)
int pyrna_struct_validity_check (BPy_StructRNA *pysrna)
int pyrna_prop_validity_check (BPy_PropertyRNA *self)

Variables

PyTypeObject pyrna_struct_meta_idprop_Type
PyTypeObject pyrna_struct_Type
PyTypeObject pyrna_prop_Type
PyTypeObject pyrna_prop_array_Type
PyTypeObject pyrna_prop_collection_Type
PyTypeObject pyrna_func_Type
PyMethodDef meth_bpy_register_class
PyMethodDef meth_bpy_unregister_class

Detailed Description

Definition in file bpy_rna.h.


Define Documentation

#define BPy_BaseTypeRNA   BPy_PropertyRNA

Definition at line 164 of file bpy_rna.h.

Referenced by BPY_rna_types().

#define BPy_PropertyRNA_Check (   v)    (PyObject_TypeCheck(v, &pyrna_prop_Type))

Definition at line 83 of file bpy_rna.h.

Referenced by pyrna_prop_richcmp().

#define BPy_PropertyRNA_CheckExact (   v)    (Py_TYPE(v) == &pyrna_prop_Type)

Definition at line 84 of file bpy_rna.h.

Referenced by pyrna_prop_dir().

#define BPy_StructRNA_Check (   v)    (PyObject_TypeCheck(v, &pyrna_struct_Type))
#define BPy_StructRNA_CheckExact (   v)    (Py_TYPE(v) == &pyrna_struct_Type)

Definition at line 82 of file bpy_rna.h.

Referenced by pyrna_struct_dir().

#define PYRNA_PROP_CHECK_INT (   obj)    if(pyrna_prop_validity_check(obj) == -1) { return -1; }
#define PYRNA_PROP_CHECK_OBJ (   obj)    if(pyrna_prop_validity_check(obj) == -1) { return NULL; }
#define PYRNA_PROP_IS_VALID (   pysrna)    (((BPy_PropertyRNA *)(pysrna))->ptr.type != NULL)

Definition at line 93 of file bpy_rna.h.

#define PYRNA_STRUCT_CHECK_INT (   obj)    if(pyrna_struct_validity_check(obj) == -1) { return -1; }
#define PYRNA_STRUCT_CHECK_OBJ (   obj)    if(pyrna_struct_validity_check(obj) == -1) { return NULL; }
#define PYRNA_STRUCT_IS_VALID (   pysrna)    (((BPy_StructRNA *)(pysrna))->ptr.type != NULL)

Definition at line 92 of file bpy_rna.h.

Referenced by pyrna_struct_repr(), and pyrna_struct_str().

#define USE_PYRNA_ITER

Definition at line 68 of file bpy_rna.h.


Function Documentation

void BPY_rna_init ( void  )

Definition at line 6175 of file bpy_rna.c.

References Mathutils_RegisterCallback().

Referenced by BPy_init_modules().

PyObject* BPY_rna_module ( void  )
PyObject* BPY_rna_types ( void  )
void BPY_update_rna_module ( void  )

Definition at line 6233 of file bpy_rna.c.

References PointerRNA::data, G, and RNA_main_pointer_create().

void pyrna_alloc_types ( void  )
int pyrna_array_contains_py ( PointerRNA ptr,
PropertyRNA prop,
PyObject *  value 
)
PyObject* pyrna_array_index ( PointerRNA ptr,
PropertyRNA prop,
int  index 
)
int pyrna_deferred_register_class ( struct StructRNA srna,
PyObject *  py_class 
)
PyObject* pyrna_enum_bitfield_to_py ( struct EnumPropertyItem items,
int  value 
)

Definition at line 1231 of file bpy_rna.c.

References NULL, RNA_enum_bitflag_identifiers(), and RNA_ENUM_BITFLAG_SIZE.

Referenced by pyop_call().

int pyrna_enum_value_from_id ( EnumPropertyItem item,
const char *  identifier,
int *  value,
const char *  error_prefix 
)
void pyrna_free_types ( void  )
PyObject* pyrna_math_object_from_array ( PointerRNA ptr,
PropertyRNA prop 
)
PyObject* pyrna_prop_CreatePyObject ( PointerRNA ptr,
PropertyRNA prop 
)
PyObject* pyrna_prop_to_py ( PointerRNA ptr,
PropertyRNA prop 
)
int pyrna_prop_validity_check ( BPy_PropertyRNA self)

Definition at line 109 of file bpy_rna.c.

References RNA_property_identifier().

PyObject* pyrna_py_from_array ( PointerRNA ptr,
PropertyRNA prop 
)

Definition at line 700 of file bpy_rna_array.c.

References pyrna_math_object_from_array(), and pyrna_prop_CreatePyObject().

Referenced by pyrna_prop_to_py().

PyObject* pyrna_py_from_array_index ( BPy_PropertyArrayRNA self,
PointerRNA ptr,
PropertyRNA prop,
int  index 
)
int pyrna_py_to_array ( PointerRNA ptr,
PropertyRNA prop,
char *  param_data,
PyObject *  py,
const char *  error_prefix 
)
int pyrna_py_to_array_index ( PointerRNA ptr,
PropertyRNA prop,
int  arraydim,
int  arrayoffset,
int  index,
PyObject *  py,
const char *  error_prefix 
)
int pyrna_pydict_to_props ( PointerRNA ptr,
PyObject *  kw,
int  all_args,
const char *  error_prefix 
)
int pyrna_set_to_enum_bitfield ( EnumPropertyItem items,
PyObject *  value,
int *  r_value,
const char *  error_prefix 
)

Definition at line 1159 of file bpy_rna.c.

References hash, NULL, and pyrna_enum_value_from_id().

Referenced by pyrna_prop_to_enum_bitfield().

StructRNA* pyrna_struct_as_srna ( PyObject *  self,
int  parent,
const char *  error_prefix 
)
PyObject* pyrna_struct_CreatePyObject ( PointerRNA ptr)
int pyrna_struct_validity_check ( BPy_StructRNA pysrna)

Definition at line 98 of file bpy_rna.c.

References BPy_StructRNA::ptr, and PointerRNA::type.

int pyrna_write_check ( void  )

Definition at line 342 of file bpy_rna.c.

References rna_disallow_writes.

Referenced by bpy_prop_update_cb(), pyop_call(), and pyrna_struct_meta_idprop_setattro().

void pyrna_write_set ( int  val)

Definition at line 347 of file bpy_rna.c.

References simple_enum_gen::val.

Referenced by bpy_prop_update_cb().

StructRNA* srna_from_self ( PyObject *  self,
const char *  error_prefix 
)

Variable Documentation

Definition at line 7150 of file bpy_rna.c.

Referenced by BPy_init_modules().

Definition at line 7277 of file bpy_rna.c.

Referenced by BPy_init_modules().

PyTypeObject pyrna_func_Type

Definition at line 5634 of file bpy_rna.c.

Referenced by pyrna_func_to_py().

PyTypeObject pyrna_prop_array_Type

Definition at line 5381 of file bpy_rna.c.

Definition at line 5464 of file bpy_rna.c.

Referenced by pyrna_prop_CreatePyObject(), and pyrna_py_to_prop().

PyTypeObject pyrna_prop_Type

Definition at line 5297 of file bpy_rna.c.

Referenced by pyrna_prop_CreatePyObject(), and pyrna_prop_new().

Definition at line 5126 of file bpy_rna.c.

Referenced by BPy_init_modules().

PyTypeObject pyrna_struct_Type

Definition at line 5208 of file bpy_rna.c.

Referenced by pyrna_struct_new().