Blender  V2.93
bpy_props.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
21 #pragma once
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 PyObject *BPY_rna_props(void);
28 void BPY_rna_props_clear_all(void);
29 
30 PyObject *BPy_PointerProperty(PyObject *self, PyObject *args, PyObject *kw);
31 PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw);
32 StructRNA *pointer_type_from_py(PyObject *value, const char *error_prefix);
33 
34 typedef struct {
35  PyObject_HEAD
36  /* This isn't GC tracked, it's a function from `bpy.props` so it's not going away. */
37  void *fn;
38  PyObject *kw;
40 
41 extern PyTypeObject bpy_prop_deferred_Type;
42 #define BPy_PropDeferred_CheckTypeExact(v) (Py_TYPE(v) == &bpy_prop_deferred_Type)
43 
44 #define PYRNA_STACK_ARRAY RNA_STACK_ARRAY
45 
46 #ifdef __cplusplus
47 }
48 #endif
void BPY_rna_props_clear_all(void)
Definition: bpy_props.c:3967
PyObject * BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw)
Definition: bpy_props.c:3693
PyObject * BPY_rna_props(void)
Definition: bpy_props.c:3927
StructRNA * pointer_type_from_py(PyObject *value, const char *error_prefix)
Definition: bpy_props.c:3548
PyObject * BPy_PointerProperty(PyObject *self, PyObject *args, PyObject *kw)
Definition: bpy_props.c:3587
PyTypeObject bpy_prop_deferred_Type
Definition: bpy_props.c:392
PyObject * kw
Definition: bpy_props.h:38
PyObject_HEAD void * fn
Definition: bpy_props.h:37