Blender V4.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
11#include "RNA_types.hh"
12
13#ifdef __cplusplus
14class AttributeOwner;
15#endif
16
17struct PointerRNA;
18struct PropertyRNA;
19struct bContext;
20namespace blender::bke {
21struct bNodeTreeType;
22struct bNodeSocketType;
23struct RuntimeNodeEnumItems;
24} // namespace blender::bke
25
26/* Types */
27#define DEF_ENUM(id) extern const EnumPropertyItem id[];
28#include "RNA_enum_items.hh"
29
31 bool include_instances,
32 bool *r_free);
33
43 const char *identifier;
44 const int icon;
45 const char *name;
46 const char *description;
47};
49
50/* API calls */
51int rna_node_tree_idname_to_enum(const char *idname);
54 void *data, bool (*poll)(void *data, blender::bke::bNodeTreeType *), bool *r_free);
55
56int rna_node_socket_idname_to_enum(const char *idname);
59 void *data, bool (*poll)(void *data, blender::bke::bNodeSocketType *), bool *r_free);
60
63 PropertyRNA *prop,
64 bool *r_free);
65
72 PropertyRNA *prop,
73 bool *r_free);
74#if 0
75const EnumPropertyItem *RNA_action_local_itemf(bContext *C,
77 PropertyRNA *prop,
78 bool *r_free);
79#endif
82 PropertyRNA *prop,
83 bool *r_free);
86 PropertyRNA *prop,
87 bool *r_free);
90 PropertyRNA *prop,
91 bool *r_free);
94 PropertyRNA *prop,
95 bool *r_free);
98 PropertyRNA *prop,
99 bool *r_free);
102 PropertyRNA *prop,
103 bool *r_free);
106 PropertyRNA *prop,
107 bool *r_free);
110 PropertyRNA *prop,
111 bool *r_free);
114 PropertyRNA *prop,
115 bool *r_free);
118 PropertyRNA *prop,
119 bool *r_free);
122 PropertyRNA *prop,
123 bool *r_free);
124
125/* Non confirming, utility function. */
127
129 const blender::bke::RuntimeNodeEnumItems &enum_items, bool *r_free);
const EnumPropertyItem * RNA_scene_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_node_enum_definition_itemf(const blender::bke::RuntimeNodeEnumItems &enum_items, bool *r_free)
int rna_node_socket_idname_to_enum(const char *idname)
blender::bke::bNodeTreeType * rna_node_tree_type_from_enum(int value)
const EnumPropertyItem * RNA_collection_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * rna_enum_attribute_domain_itemf(const AttributeOwner &owner, bool include_instances, bool *r_free)
const EnumPropertyItem * RNA_image_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
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 IDFilterEnumPropertyItem rna_enum_id_type_filter_items[]
Definition rna_ID.cc:122
const EnumPropertyItem * RNA_movieclip_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * rna_node_tree_type_itemf(void *data, bool(*poll)(void *data, blender::bke::bNodeTreeType *), bool *r_free)
const EnumPropertyItem * RNA_scene_without_active_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_collection_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_mask_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_scene_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
blender::bke::bNodeSocketType * rna_node_socket_type_from_enum(int value)
const EnumPropertyItem * RNA_image_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * rna_node_socket_type_itemf(void *data, bool(*poll)(void *data, blender::bke::bNodeSocketType *), bool *r_free)
const EnumPropertyItem * RNA_movieclip_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_enum_node_tree_types_itemf_impl(bContext *C, bool *r_free)
unsigned __int64 uint64_t
Definition stdint.h:90
Defines a socket type.
Definition BKE_node.hh:151
PointerRNA * ptr
Definition wm_files.cc:4126