Blender V5.0
bpy_props.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <Python.h>
12
13struct StructRNA;
14
15[[nodiscard]] PyObject *BPY_rna_props();
21
22[[nodiscard]] PyObject *BPy_PointerProperty(PyObject *self, PyObject *args, PyObject *kw);
23[[nodiscard]] PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw);
24[[nodiscard]] StructRNA *pointer_type_from_py(PyObject *value, const char *error_prefix);
25
27 PyObject_HEAD
32 void *fn;
33 PyObject *kw;
34};
35
36extern PyTypeObject bpy_prop_deferred_Type;
37#define BPy_PropDeferred_CheckTypeExact(v) (Py_TYPE(v) == &bpy_prop_deferred_Type)
38
39#define PYRNA_STACK_ARRAY RNA_STACK_ARRAY
PyObject * self
PyTypeObject bpy_prop_deferred_Type
Definition bpy_props.cc:309
PyObject * BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw)
PyObject * BPy_PointerProperty(PyObject *self, PyObject *args, PyObject *kw)
PyObject * BPY_rna_props()
void BPY_rna_props_clear_all()
StructRNA * pointer_type_from_py(PyObject *value, const char *error_prefix)
PyObject * kw
Definition bpy_props.hh:33
PyObject_HEAD void * fn
Definition bpy_props.hh:32