Blender  V3.3
py_capi_rna.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
8 #pragma once
9 
10 #include "BLI_sys_types.h"
11 
12 struct EnumPropertyItem;
13 
18 char *pyrna_enum_repr(const struct EnumPropertyItem *item);
19 
24  const char *identifier,
25  int *value,
26  const char *error_prefix);
27 
36 unsigned int *pyrna_enum_bitmap_from_set(const struct EnumPropertyItem *items,
37  PyObject *value,
38  int type_size,
39  bool type_convert_sign,
40  int bitmap_size,
41  const char *error_prefix);
42 
47  PyObject *value,
48  int *r_value,
49  const char *error_prefix);
50 
51 PyObject *pyrna_enum_bitfield_as_set(const struct EnumPropertyItem *items, int value);
52 
58  const struct EnumPropertyItem *items;
64  PyObject *value_orig;
65 
66  int value;
67  bool is_set;
68 };
72 int pyrna_enum_value_parse_string(PyObject *o, void *p);
76 int pyrna_enum_bitfield_parse_set(PyObject *o, void *p);
unsigned int * pyrna_enum_bitmap_from_set(const struct EnumPropertyItem *items, PyObject *value, int type_size, bool type_convert_sign, int bitmap_size, const char *error_prefix)
int pyrna_enum_bitfield_parse_set(PyObject *o, void *p)
Definition: py_capi_rna.c:212
int pyrna_enum_bitfield_from_set(const struct EnumPropertyItem *items, PyObject *value, int *r_value, const char *error_prefix)
int pyrna_enum_value_from_id(const struct EnumPropertyItem *item, const char *identifier, int *value, const char *error_prefix)
PyObject * pyrna_enum_bitfield_as_set(const struct EnumPropertyItem *items, int value)
char * pyrna_enum_repr(const struct EnumPropertyItem *item)
int pyrna_enum_value_parse_string(PyObject *o, void *p)
Definition: py_capi_rna.c:194
const struct EnumPropertyItem * items
Definition: py_capi_rna.h:58
const char * identifier
Definition: RNA_types.h:461