Blender V5.3
RNA_enum_types.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
5#pragma once
6
10
11#include "RNA_types.hh"
12
13namespace blender {
14
15class AttributeOwner;
16
17struct PointerRNA;
18struct PropertyRNA;
19struct bContext;
20namespace bke {
21struct bNodeTreeType;
22struct bNodeSocketType;
24
25} // namespace bke
26
27/* Types */
28#define DEF_ENUM(id) extern const EnumPropertyItem id[];
29#include "RNA_enum_items.hh"
30
32 bool include_instances,
33 bool *r_free);
34
44 const char *identifier;
45 const int icon;
46 const char *name;
47 const char *description;
48};
50
51/* API calls */
52int rna_node_tree_idname_to_enum(const char *idname);
55 bool (*poll)(void *data, bke::bNodeTreeType *),
56 bool *r_free);
57
58int rna_node_socket_idname_to_enum(const char *idname);
61 void *data, bool (*poll)(void *data, bke::bNodeSocketType *), bool *r_free);
62
64 PointerRNA *ptr,
65 PropertyRNA *prop,
66 bool *r_free);
67
73 PointerRNA *ptr,
74 PropertyRNA *prop,
75 bool *r_free);
76#if 0
77const EnumPropertyItem *RNA_action_local_itemf(bContext *C,
78 PointerRNA *ptr,
79 PropertyRNA *prop,
80 bool *r_free);
81#endif
83 PointerRNA *ptr,
84 PropertyRNA *prop,
85 bool *r_free);
87 PointerRNA *ptr,
88 PropertyRNA *prop,
89 bool *r_free);
91 PointerRNA *ptr,
92 PropertyRNA *prop,
93 bool *r_free);
95 PointerRNA *ptr,
96 PropertyRNA *prop,
97 bool *r_free);
99 PointerRNA *ptr,
100 PropertyRNA *prop,
101 bool *r_free);
103 PointerRNA *ptr,
104 PropertyRNA *prop,
105 bool *r_free);
107 PointerRNA *ptr,
108 PropertyRNA *prop,
109 bool *r_free);
111 PointerRNA *ptr,
112 PropertyRNA *prop,
113 bool *r_free);
115 PointerRNA *ptr,
116 PropertyRNA *prop,
117 bool *r_free);
119 PointerRNA *ptr,
120 PropertyRNA *prop,
121 bool *r_free);
123 PointerRNA *ptr,
124 PropertyRNA *prop,
125 bool *r_free);
126
127/* Non confirming, utility function. */
129
131 bool *r_free);
132
133} // namespace blender
#define C
Definition RandGen.cpp:29
BMesh Iterators.
const EnumPropertyItem * RNA_movieclip_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * rna_node_socket_type_itemf(void *data, bool(*poll)(void *data, bke::bNodeSocketType *), bool *r_free)
unsigned __int64 uint64_t
Definition BKE_text.h:91
int rna_node_tree_idname_to_enum(const char *idname)
const EnumPropertyItem * RNA_mask_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_movieclip_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_collection_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const IDFilterEnumPropertyItem rna_enum_id_type_filter_items[]
Definition rna_ID.cc:126
const EnumPropertyItem * RNA_collection_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_action_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_node_enum_definition_itemf(const bke::RuntimeNodeEnumItems &enum_items, bool *r_free)
const EnumPropertyItem * RNA_image_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_image_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
bke::bNodeTreeType * rna_node_tree_type_from_enum(int value)
BMesh const char void * data
const EnumPropertyItem * RNA_scene_without_sequencer_scene_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_mask_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
int rna_node_socket_idname_to_enum(const char *idname)
const EnumPropertyItem * RNA_scene_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * rna_TransformOrientation_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_scene_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
bke::bNodeSocketType * rna_node_socket_type_from_enum(int value)
const EnumPropertyItem * rna_node_tree_type_itemf(void *data, bool(*poll)(void *data, bke::bNodeTreeType *), bool *r_free)
const EnumPropertyItem * RNA_enum_node_tree_types_itemf_impl(bContext *C, bool *r_free)
const EnumPropertyItem * rna_enum_attribute_domain_itemf(const AttributeOwner &owner, bool include_instances, bool *r_free)
Defines a socket type.
Definition BKE_node.hh:163