Blender V4.3
py_capi_rna.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
10#pragma once
11
12#include "BLI_sys_types.h"
13
14struct EnumPropertyItem;
15
20char *pyrna_enum_repr(const EnumPropertyItem *item);
21
26 const char *identifier,
27 int *r_value,
28 const char *error_prefix);
29
38unsigned int *pyrna_enum_bitmap_from_set(const EnumPropertyItem *items,
39 PyObject *value,
40 int type_size,
41 bool type_convert_sign,
42 int bitmap_size,
43 const char *error_prefix);
44
49 PyObject *value,
50 int *r_value,
51 const char *error_prefix);
52
53PyObject *pyrna_enum_bitfield_as_set(const EnumPropertyItem *items, int value);
54
66 PyObject *value_orig;
67
68 int value;
69 bool is_set;
70};
74int pyrna_enum_value_parse_string(PyObject *o, void *p);
78int pyrna_enum_bitfield_parse_set(PyObject *o, void *p);
int pyrna_enum_value_from_id(const EnumPropertyItem *item, const char *identifier, int *r_value, const char *error_prefix)
int pyrna_enum_bitfield_parse_set(PyObject *o, void *p)
int pyrna_enum_bitfield_from_set(const EnumPropertyItem *items, PyObject *value, int *r_value, const char *error_prefix)
PyObject * pyrna_enum_bitfield_as_set(const EnumPropertyItem *items, int value)
char * pyrna_enum_repr(const EnumPropertyItem *item)
unsigned int * pyrna_enum_bitmap_from_set(const EnumPropertyItem *items, PyObject *value, int type_size, bool type_convert_sign, int bitmap_size, const char *error_prefix)
int pyrna_enum_value_parse_string(PyObject *o, void *p)
const EnumPropertyItem * items