Blender  V3.3
RNA_enum_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
9 #include "RNA_types.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 struct ID;
16 struct bNodeSocketType;
17 struct bNodeTreeType;
18 struct bNodeType;
19 
20 /* Types */
21 #define DEF_ENUM(id) extern const EnumPropertyItem id[];
22 #include "RNA_enum_items.h"
23 
25  bool include_instances,
26  bool *r_free);
27 
36  const uint64_t flag;
37  const char *identifier;
38  const int icon;
39  const char *name;
40  const char *description;
41 };
43 
44 /* API calls */
46 int rna_node_tree_idname_to_enum(const char *idname);
49  bool (*poll)(void *data, struct bNodeTreeType *),
50  bool *r_free);
51 
52 int rna_node_type_to_enum(struct bNodeType *typeinfo);
56  bool (*poll)(void *data, struct bNodeType *),
57  bool *r_free);
58 
63  void *data, bool (*poll)(void *data, struct bNodeSocketType *), bool *r_free);
64 
65 struct PointerRNA;
66 struct PropertyRNA;
67 struct bContext;
68 
70  struct PointerRNA *ptr,
71  struct PropertyRNA *prop,
72  bool *r_free);
73 
79  struct PointerRNA *ptr,
80  struct PropertyRNA *prop,
81  bool *r_free);
82 #if 0
83 EnumPropertyItem *RNA_action_local_itemf(struct bContext *C,
84  struct PointerRNA *ptr,
85  struct PropertyRNA *prop,
86  bool *r_free);
87 #endif
89  struct PointerRNA *ptr,
90  struct PropertyRNA *prop,
91  bool *r_free);
93  struct PointerRNA *ptr,
94  struct PropertyRNA *prop,
95  bool *r_free);
97  struct PointerRNA *ptr,
98  struct PropertyRNA *prop,
99  bool *r_free);
101  struct PointerRNA *ptr,
102  struct PropertyRNA *prop,
103  bool *r_free);
105  struct PointerRNA *ptr,
106  struct PropertyRNA *prop,
107  bool *r_free);
109  struct PointerRNA *ptr,
110  struct PropertyRNA *prop,
111  bool *r_free);
113  struct PointerRNA *ptr,
114  struct PropertyRNA *prop,
115  bool *r_free);
117  struct PointerRNA *ptr,
118  struct PropertyRNA *prop,
119  bool *r_free);
121  struct PointerRNA *ptr,
122  struct PropertyRNA *prop,
123  bool *r_free);
125  struct PointerRNA *ptr,
126  struct PropertyRNA *prop,
127  bool *r_free);
129  struct PointerRNA *ptr,
130  struct PropertyRNA *prop,
131  bool *r_free);
132 
133 /* Non confirming, utility function. */
135 
136 #ifdef __cplusplus
137 }
138 #endif
const EnumPropertyItem * RNA_collection_local_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
struct bNodeSocketType * rna_node_socket_type_from_enum(int value)
const EnumPropertyItem * rna_node_tree_type_itemf(void *data, bool(*poll)(void *data, struct bNodeTreeType *), bool *r_free)
struct bNodeTreeType * rna_node_tree_type_from_enum(int value)
const EnumPropertyItem * RNA_mask_local_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
int rna_node_socket_idname_to_enum(const char *idname)
int rna_node_socket_type_to_enum(struct bNodeSocketType *typeinfo)
const EnumPropertyItem * RNA_image_local_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * rna_node_type_itemf(void *data, bool(*poll)(void *data, struct bNodeType *), bool *r_free)
const EnumPropertyItem * RNA_scene_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
int rna_node_tree_idname_to_enum(const char *idname)
const EnumPropertyItem * RNA_enum_node_tree_types_itemf_impl(struct bContext *C, bool *r_free)
const EnumPropertyItem * RNA_action_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_movieclip_local_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
int rna_node_type_to_enum(struct bNodeType *typeinfo)
const EnumPropertyItem * RNA_scene_without_active_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * RNA_movieclip_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * rna_TransformOrientation_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
const struct IDFilterEnumPropertyItem rna_enum_id_type_filter_items[]
Definition: rna_ID.c:119
const EnumPropertyItem * rna_node_socket_type_itemf(void *data, bool(*poll)(void *data, struct bNodeSocketType *), bool *r_free)
const EnumPropertyItem * RNA_collection_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
struct bNodeType * rna_node_type_from_enum(int value)
const EnumPropertyItem * RNA_scene_local_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
int rna_node_idname_to_enum(const char *idname)
const EnumPropertyItem * RNA_mask_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
int rna_node_tree_type_to_enum(struct bNodeTreeType *typeinfo)
const EnumPropertyItem * rna_enum_attribute_domain_itemf(struct ID *id, bool include_instances, bool *r_free)
const EnumPropertyItem * RNA_image_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
#define C
Definition: RandGen.cpp:25
unsigned __int64 uint64_t
Definition: stdint.h:90
Definition: DNA_ID.h:368
Defines a socket type.
Definition: BKE_node.h:143
bool(* poll)(const struct bContext *C, struct bNodeTreeType *ntreetype)
Definition: BKE_node.h:387
char idname[64]
Definition: BKE_node.h:375
Defines a node type.
Definition: BKE_node.h:226
bool(* poll)(struct bNodeType *ntype, struct bNodeTree *nodetree, const char **r_disabled_hint)
Definition: BKE_node.h:292
char idname[64]
Definition: BKE_node.h:227
PointerRNA * ptr
Definition: wm_files.c:3480