Blender V5.3
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
13namespace blender {
14
15struct StructRNA;
16
17[[nodiscard]] PyObject *BPY_rna_props();
23
24[[nodiscard]] PyObject *BPy_PointerProperty(PyObject *self, PyObject *args, PyObject *kw);
25[[nodiscard]] PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw);
26[[nodiscard]] StructRNA *pointer_type_from_py(PyObject *value, const char *error_prefix);
27
29 PyObject_HEAD
34 void *fn;
35 PyObject *kw;
36};
37
38extern PyTypeObject bpy_prop_deferred_Type;
39#define BPy_PropDeferred_CheckTypeExact(v) (Py_TYPE(v) == &bpy_prop_deferred_Type)
40
41#define PYRNA_STACK_ARRAY RNA_STACK_ARRAY
42
43} // namespace blender
BMesh Iterators.
StructRNA * pointer_type_from_py(PyObject *value, const char *error_prefix)
PyObject * BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw)
PyObject * BPy_PointerProperty(PyObject *self, PyObject *args, PyObject *kw)
void BPY_rna_props_clear_all()
PyTypeObject bpy_prop_deferred_Type
Definition bpy_props.cc:334
PyObject * BPY_rna_props()
PyObject_HEAD void * fn
Definition bpy_props.hh:34