26 {0,
nullptr, 0,
nullptr,
nullptr}};
31 {0,
nullptr, 0,
nullptr,
nullptr}};
38 "Automatically detect a good structure type based on how the socket is used"},
43 "Socket can work with different kinds of structures"},
51 "Socket expects a single value"},
52 {0,
nullptr, 0,
nullptr,
nullptr}};
61 "The \"id\" attribute if available, otherwise the index"},
67 "The position from the context"},
72 "Transformation of each instance from the geometry context"},
77 "The left Bézier control point handle from the context"},
82 "The right Bézier control point handle from the context"},
87 "The current frame in the scene"},
89 "UNIFORM_IMAGE_COORDINATES",
91 "Uniform Image Coordinates",
92 "The uniform image coordinates of the compositing space"},
97 "The object that contains the geometry nodes modifier currently being executed"},
98 {0,
nullptr, 0,
nullptr,
nullptr}};
104# include <fmt/format.h>
133extern FunctionRNA *rna_NodeTreeInterfaceSocket_draw_func;
134extern FunctionRNA *rna_NodeTreeInterfaceSocket_init_socket_func;
135extern FunctionRNA *rna_NodeTreeInterfaceSocket_from_socket_func;
150static void rna_NodeTreeInterfaceItem_subtype_update(
Main *bmain,
Scene *scene,
PointerRNA *ptr)
153 socket->update_socket_type();
155 rna_NodeTreeInterfaceItem_update(bmain, scene, ptr);
162 switch (item->item_type) {
166 if (socket.socket_type) {
168 if (socket_typeinfo && socket_typeinfo->ext_interface.srna) {
169 return socket_typeinfo->ext_interface.srna;
172 return RNA_NodeTreeInterfaceSocket;
175 return RNA_NodeTreeInterfacePanel;
177 return RNA_NodeTreeInterfaceItem;
181static std::optional<std::string> rna_NodeTreeInterfaceItem_path(
const PointerRNA *ptr)
185 if (!ntree->runtime) {
189 ntree->ensure_interface_cache();
190 for (
const int index : ntree->interface_items().index_range()) {
191 if (ntree->interface_items()[
index] == item) {
192 return fmt::format(
"interface.items_tree[{}]",
index);
207static int rna_NodeTreeInterfaceItem_position_get(
PointerRNA *ptr)
211 return ntree->tree_interface.find_item_position(*item);
214static int rna_NodeTreeInterfaceItem_index_get(
PointerRNA *ptr)
218 return ntree->tree_interface.find_item_index(*item);
221static bool rna_NodeTreeInterfaceSocket_unregister(
Main *bmain,
StructRNA *type)
241static void rna_NodeTreeInterfaceSocket_draw_builtin(
ID *
id,
247 if (typeinfo && typeinfo->interface_draw) {
248 typeinfo->interface_draw(
id, interface_socket,
C, layout);
252static void rna_NodeTreeInterfaceSocket_draw_custom(
ID *
id,
258 if (typeinfo ==
nullptr) {
264 FunctionRNA *func = rna_NodeTreeInterfaceSocket_draw_func;
270 typeinfo->ext_interface.call(
C, &ptr, func, &
list);
275static void rna_NodeTreeInterfaceSocket_init_socket_builtin(
280 const char *data_path)
283 if (typeinfo && typeinfo->interface_draw) {
284 typeinfo->interface_init_socket(
id, interface_socket,
node, socket, data_path);
288static void rna_NodeTreeInterfaceSocket_init_socket_custom(
296 if (typeinfo ==
nullptr) {
303 FunctionRNA *func = rna_NodeTreeInterfaceSocket_init_socket_func;
310 typeinfo->ext_interface.call(
nullptr, &ptr, func, &
list);
315static void rna_NodeTreeInterfaceSocket_from_socket_builtin(
319 if (typeinfo && typeinfo->interface_draw) {
320 typeinfo->interface_from_socket(
id, interface_socket,
node, socket);
324static void rna_NodeTreeInterfaceSocket_from_socket_custom(
331 if (typeinfo ==
nullptr) {
337 FunctionRNA *func = rna_NodeTreeInterfaceSocket_from_socket_func;
343 typeinfo->ext_interface.call(
nullptr, &ptr, func, &
list);
348static StructRNA *rna_NodeTreeInterfaceSocket_register(
Main *bmain,
351 const char *identifier,
361 nullptr, RNA_NodeTreeInterfaceSocket, &dummy_socket);
364 bool have_function[3];
365 if (validate(&dummy_socket_ptr,
data, have_function) != 0) {
376 st = MEM_new<bke::bNodeSocketType>(__func__);
377 st->idname =
UString(dummy_socket.socket_type);
385 if (st->ext_interface.srna) {
387 StructRNA *srna = st->ext_interface.srna;
393 st->ext_interface.data =
data;
394 st->ext_interface.call = call;
395 st->ext_interface.free =
free;
398 st->interface_draw = (have_function[0]) ? rna_NodeTreeInterfaceSocket_draw_custom :
nullptr;
399 st->interface_init_socket = (have_function[1]) ? rna_NodeTreeInterfaceSocket_init_socket_custom :
401 st->interface_from_socket = (have_function[2]) ? rna_NodeTreeInterfaceSocket_from_socket_custom :
405 MEM_SAFE_DELETE(dummy_socket.socket_type);
410 return st->ext_interface.srna;
419static void rna_NodeTreeInterfaceSocket_identifier_get(
PointerRNA *ptr,
char *value)
422 strcpy(value, socket->identifier);
425static int rna_NodeTreeInterfaceSocket_identifier_length(
PointerRNA *ptr)
428 return strlen(socket->identifier);
431static int rna_NodeTreeInterfaceSocket_socket_type_get(
PointerRNA *ptr)
437static void rna_NodeTreeInterfaceSocket_socket_type_set(
PointerRNA *ptr,
int value)
443 socket->set_socket_type(typeinfo->idname.ref());
451 if (ntreetype->valid_socket_type && !ntreetype->valid_socket_type(ntreetype, socket_type)) {
460 if (socket_type != base_socket_type) {
471 if (is_socket_type_supported(ntree_type, socket_type)) {
478static bool rna_NodeTreeInterfaceSocket_socket_type_poll(
void *userdata,
482 return is_socket_type_supported(ntreetype, socket_type);
485static const EnumPropertyItem *rna_NodeTreeInterfaceSocket_socket_type_itemf(
495 ntree->typeinfo, rna_NodeTreeInterfaceSocket_socket_type_poll, r_free);
498static void rna_NodeTreeInterfaceSocket_is_panel_toggle_set(
PointerRNA *ptr,
bool value)
500 bNodeTree &ntree = *blender::id_cast<bNodeTree *>(ptr->owner_id);
521 parent->move_item(io_socket.item, 0);
522 ntree.tree_interface.tag_items_changed();
533 parent->move_item(io_socket.item, parent->item_position(io_socket.item));
534 ntree.tree_interface.tag_items_changed();
542static void rna_NodeTreeInterfaceSocket_force_non_field_set(
PointerRNA *ptr,
const bool value)
550static void rna_NodeTreeInterfaceSocket_structure_type_set(
PointerRNA *ptr,
int value)
557 bool is_supported =
false;
565 is_supported = supports_fields;
568 is_supported = supports_grids;
571 is_supported = supports_fields || supports_grids;
588 const bool supports_fields = is_geometry_nodes &&
591 const bool supports_lists = is_geometry_nodes;
607 if (supports_fields || supports_grids) {
613 if (supports_fields) {
619 if (supports_grids) {
625 if (supports_lists) {
636static const EnumPropertyItem *rna_NodeTreeInterfaceSocket_structure_type_itemf(
646static const EnumPropertyItem *rna_NodeTreeInterfaceSocket_default_input_itemf(
681static const EnumPropertyItem *rna_NodeTreeInterfaceSocket_attribute_domain_itemf(
698static void rna_NodeTreeInterfaceItems_active_index_set(
PointerRNA *ptr,
int value)
703 original_active->set_selected(
false);
708 new_active->set_selected(
true);
716 ptr->owner_id, RNA_NodeTreeInterfaceItem, interface->active_item());
720static void rna_NodeTreeInterfaceItems_active_set(
PointerRNA *ptr,
726 interface->active_item_set(item);
735 const char *description,
737 int socket_type_enum,
740 if (parent !=
nullptr && !interface->find_item(parent->item)) {
746 if (typeinfo ==
nullptr) {
752 if (!is_socket_type_supported(ntree->typeinfo, typeinfo)) {
753 typeinfo = find_supported_socket_type(ntree->typeinfo);
754 if (typeinfo ==
nullptr) {
759 const StringRef socket_type = typeinfo->idname.ref();
762 name, description, socket_type, flag, parent);
764 if (socket ==
nullptr) {
780 const char *description,
787 name ? name :
"", description ? description :
"", flag,
nullptr);
789 if (panel ==
nullptr) {
809 if (parent !=
nullptr) {
810 if (!interface->find_item(parent->item)) {
816 const bNodeTree &interface_node_tree = *blender::id_cast<bNodeTree *>(
id);
820 blender::bke::bNodeTreeType *ntreetype = interface_node_tree.typeinfo;
827 "Item to be copied to this interface is of an unsupported socket type");
832 if (parent ==
nullptr) {
833 parent = &interface->root_panel;
835 const int index = parent->items().as_span().first_index_try(item);
838 item_copy = interface->insert_item_copy(*item, parent, parent->items_num);
840 else if (parent->items().index_range().contains(
index)) {
841 item_copy = interface->insert_item_copy(*item, parent,
index + 1);
844 if (item_copy ==
nullptr) {
862 if (item == &interface->root_panel.item) {
869 return rna_NodeTreeInterfaceItems_copy_to_parent(
id, interface, bmain, reports, item, parent);
872static void rna_NodeTreeInterfaceItems_remove(
ID *
id,
877 bool move_content_to_parent)
879 if (item == &interface->root_panel.item) {
884 interface->remove_item(*item, move_content_to_parent);
893 interface->clear_items();
900static void rna_NodeTreeInterfaceItems_move(
ID *
id,
907 if (item == &interface->root_panel.item) {
912 interface->move_item(*item, to_position);
919static void rna_NodeTreeInterfaceItems_move_to_parent(
ID *
id,
927 if (item == &interface->root_panel.item) {
932 interface->move_item_to_parent(*item, parent, to_position);
943 if (subtypes.is_empty()) {
952 if (subtypes.contains(item->value)) {
957 if (items_count == 0) {
966static const EnumPropertyItem *rna_NodeTreeInterfaceSocketFloat_subtype_itemf(
984void rna_NodeTreeInterfaceSocketFloat_default_value_range(
990 int subtype = socket_typeinfo ? socket_typeinfo->subtype :
PROP_NONE;
992 if (dval->max < dval->min) {
993 dval->max = dval->min;
998 *softmin = dval->min;
999 *softmax = dval->max;
1010void rna_NodeTreeInterfaceSocketInt_default_value_range(
1016 int subtype = socket_typeinfo ? socket_typeinfo->subtype :
PROP_NONE;
1018 if (dval->max < dval->min) {
1019 dval->max = dval->min;
1024 *softmin = dval->min;
1025 *softmax = dval->max;
1028static const EnumPropertyItem *rna_NodeTreeInterfaceSocketVector_subtype_itemf(
1044static const EnumPropertyItem *rna_NodeTreeInterfaceSocketIntVector_subtype_itemf(
1047 return rna_subtype_filter_itemf(
1051void rna_NodeTreeInterfaceSocketVector_default_value_range(
1057 if (dval->max < dval->min) {
1058 dval->max = dval->min;
1063 *softmin = dval->
min;
1064 *softmax = dval->max;
1067void rna_NodeTreeInterfaceSocketIntVector_default_value_range(
1073 int subtype = socket_typeinfo ? socket_typeinfo->subtype :
PROP_NONE;
1075 if (dval->max < dval->min) {
1076 dval->max = dval->min;
1081 *softmin = dval->min;
1082 *softmax = dval->max;
1085static const EnumPropertyItem *rna_NodeTreeInterfaceSocketString_subtype_itemf(
1091static bool rna_NodeTreeInterfaceSocketMaterial_default_value_poll(
PointerRNA * ,
1096 return ma->gp_style ==
nullptr;
1102 if (!ntree->runtime) {
1106 ntree->ensure_interface_cache();
1111 ntree->interface_items().size(),
1116static int rna_NodeTreeInterface_items_length(
PointerRNA *ptr)
1119 if (!ntree->runtime) {
1123 ntree->ensure_interface_cache();
1124 return ntree->interface_items().size();
1130 if (!ntree->runtime) {
1134 ntree->ensure_interface_cache();
1135 if (!ntree->interface_items().index_range().contains(
index)) {
1140 *ptr, RNA_NodeTreeInterfaceItem, ntree->interface_items()[
index], *r_ptr);
1144static bool rna_NodeTreeInterface_items_lookup_string(
PointerRNA *ptr,
1149 if (!ntree->runtime) {
1153 ntree->ensure_interface_cache();
1155 switch (item->item_type) {
1158 if (
STREQ(socket->identifier, key)) {
1169 switch (item->item_type) {
1172 if (
STREQ(socket->name_, key)) {
1180 if (
STREQ(panel->name_, key)) {
1193 bNodeTree *ntree = id_cast<bNodeTree *>(ptr->owner_id);
1196 &ntree->id, RNA_NodeTreeInterfacePanel, &interface->root_panel);
1211 if (!
data->enum_items) {
1225 if (!
data->enum_items ||
data->enum_items->items.is_empty()) {
1228 return data->enum_items->items.first().identifier;
1257 prop,
"rna_NodeTreeInterfaceItem_parent_get",
nullptr,
nullptr,
nullptr);
1273 prop,
"Index",
"Global index of the item among all items in the interface");
1283 srna =
RNA_def_struct(brna,
"NodeTreeInterfaceSocket",
"NodeTreeInterfaceItem");
1287 "rna_NodeTreeInterfaceSocket_register",
1288 "rna_NodeTreeInterfaceSocket_unregister",
1300 "rna_NodeTreeInterfaceSocket_identifier_get",
1301 "rna_NodeTreeInterfaceSocket_identifier_length",
1314 "rna_NodeTreeInterfaceSocket_socket_type_get",
1315 "rna_NodeTreeInterfaceSocket_socket_type_set",
1316 "rna_NodeTreeInterfaceSocket_socket_type_itemf");
1319 prop,
"Socket Type",
"Type of the socket generated by this interface item");
1332 prop,
"Hide Value",
"Hide the socket input value even when the socket is not connected");
1340 "Don't show the input value in the geometry nodes modifier interface");
1351 "Only allow single value inputs rather than field.\nDeprecated. Will be remove in 5.0.");
1358 "Is Inspect Output",
1359 "Take link out of node group to connect to root tree output node");
1368 "This socket is meant to be used as the toggle in its panel header");
1375 prop,
"Layer Selection",
"Take Grease Pencil Layer or Layer Group as selection field");
1382 prop,
"Menu Expanded",
"Draw the menu socket as an expanded drop-down menu");
1391 "Indicate that the label of this socket is not necessary to understand its meaning. This "
1392 "may result in the label being skipped in some cases");
1404 prop,
nullptr,
nullptr,
"rna_NodeTreeInterfaceSocket_attribute_domain_itemf");
1408 "Attribute domain used by the geometry nodes modifier to create an attribute output");
1414 "Default Attribute",
1415 "The attribute name used by default when the node group is used by a "
1416 "geometry nodes modifier");
1424 "What kind of higher order types are expected to flow through this socket");
1427 "rna_NodeTreeInterfaceSocket_structure_type_set",
1428 "rna_NodeTreeInterfaceSocket_structure_type_itemf");
1436 "Input to use when the socket is unconnected. Requires \"Hide Value\".");
1438 prop,
nullptr,
nullptr,
"rna_NodeTreeInterfaceSocket_default_input_itemf");
1461 parm =
RNA_def_pointer(func,
"node",
"Node",
"Node",
"Node of the socket to initialize");
1463 parm =
RNA_def_pointer(func,
"socket",
"NodeSocket",
"Socket",
"Socket to initialize");
1466 func,
"data_path",
nullptr, 0,
"Data Path",
"Path to specialized socket data");
1472 parm =
RNA_def_pointer(func,
"node",
"Node",
"Node",
"Node of the original socket");
1474 parm =
RNA_def_pointer(func,
"socket",
"NodeSocket",
"Socket",
"Original socket");
1483 srna =
RNA_def_struct(brna,
"NodeTreeInterfacePanel",
"NodeTreeInterfaceItem");
1519 prop,
"Persistent Identifier",
"Unique identifier for this panel within this node tree");
1525 prop,
"Identifier",
"Unique identifier for this panel within this node tree");
1538 prop,
nullptr,
"rna_NodeTreeInterfaceItems_active_index_set",
nullptr);
1547 "rna_NodeTreeInterfaceItems_active_get",
1548 "rna_NodeTreeInterfaceItems_active_set",
1554 func =
RNA_def_function(srna,
"new_socket",
"rna_NodeTreeInterfaceItems_new_socket");
1557 parm =
RNA_def_string(func,
"name",
nullptr, 0,
"Name",
"Name of the socket");
1559 RNA_def_string(func,
"description",
nullptr, 0,
"Description",
"Description of the socket");
1564 "Input/Output Type",
1565 "Create an input or output socket");
1571 "Type of socket generated on nodes");
1574 parm,
nullptr,
nullptr,
"rna_NodeTreeInterfaceSocket_socket_type_itemf");
1576 func,
"parent",
"NodeTreeInterfacePanel",
"Parent",
"Panel to add the socket in");
1578 parm =
RNA_def_pointer(func,
"item",
"NodeTreeInterfaceSocket",
"Socket",
"New socket");
1582 func =
RNA_def_function(srna,
"new_panel",
"rna_NodeTreeInterfaceItems_new_panel");
1585 parm =
RNA_def_string(func,
"name",
nullptr, 0,
"Name",
"Name of the new panel");
1586 RNA_def_string(func,
"description",
nullptr, 0,
"Description",
"Description of the panel");
1588 func,
"default_closed",
false,
"Default Closed",
"Panel is closed by default on new nodes");
1591 parm =
RNA_def_pointer(func,
"item",
"NodeTreeInterfacePanel",
"Panel",
"New panel");
1598 parm =
RNA_def_pointer(func,
"item",
"NodeTreeInterfaceItem",
"Item",
"Item to copy");
1602 func,
"item_copy",
"NodeTreeInterfaceItem",
"Item Copy",
"Copy of the item");
1606 func =
RNA_def_function(srna,
"remove",
"rna_NodeTreeInterfaceItems_remove");
1609 parm =
RNA_def_pointer(func,
"item",
"NodeTreeInterfaceItem",
"Item",
"The item to remove");
1613 "move_content_to_parent",
1616 "If the item is a panel, move the contents to the parent instead of deleting it");
1618 func =
RNA_def_function(srna,
"clear",
"rna_NodeTreeInterfaceItems_clear");
1625 parm =
RNA_def_pointer(func,
"item",
"NodeTreeInterfaceItem",
"Item",
"The item to move");
1633 "Target position for the item in its current panel",
1638 func =
RNA_def_function(srna,
"move_to_parent",
"rna_NodeTreeInterfaceItems_move_to_parent");
1641 parm =
RNA_def_pointer(func,
"item",
"NodeTreeInterfaceItem",
"Item",
"The item to move");
1644 func,
"parent",
"NodeTreeInterfacePanel",
"Parent",
"New parent of the item");
1652 "Target position for the item in the new parent panel",
1665 srna,
"Node Tree Interface",
"Declaration of sockets and ui panels of a node group");
1670 "rna_NodeTreeInterface_items_begin",
1671 "rna_iterator_array_next",
1672 "rna_iterator_array_end",
1673 "rna_iterator_array_dereference_get",
1674 "rna_NodeTreeInterface_items_length",
1675 "rna_NodeTreeInterface_items_lookup_int",
1676 "rna_NodeTreeInterface_items_lookup_string",
1685 prop,
"rna_NodeTreeInterface_root_panel_get",
nullptr,
nullptr,
nullptr);
1690 "Root panel containing all items not directly parented to another panel");
#define SET_FLAG_FROM_TEST(value, test, flag)
T & get_item_as(bNodeTreeInterfaceItem &item)
void free(Subdiv *subdiv)
Span< bNodeSocketType * > node_socket_types_get()
void node_register_socket_type(bNodeSocketType &stype)
bNodeSocketType * node_socket_type_find(StringRef idname)
bNodeSocketType * node_socket_type_find_static(int type, int subtype=0)
bool socket_type_supports_default_input_type(const bke::bNodeSocketType &socket_type, const NodeDefaultInputType input_type)
bool socket_type_supports_fields(const eNodeSocketDatatype socket_type)
bool node_tree_type_supports_default_input_type(eNodeTree_Type node_tree_type, NodeDefaultInputType input_type)
bool socket_type_supports_grids(const eNodeSocketDatatype socket_type)
void refresh_for_srna_unregister(Main *bmain, StructRNA *srna_to_unreg)
void WM_main_add_notifier(uint type, void *reference)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
const EnumPropertyItem * rna_node_socket_type_itemf(void *data, bool(*poll)(void *data, bke::bNodeSocketType *), bool *r_free)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
static void rna_def_node_tree_interface_items_api(StructRNA *srna)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
int(*)(PointerRNA *ptr, void *data, bool *have_function) StructValidateFunc
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
@ RPT_ERROR_INVALID_INPUT
NodeSocketInterfaceStructureType
static const EnumPropertyItem node_default_input_items[]
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_struct_system_idprops_func(StructRNA *srna, const char *system_idproperties)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
const EnumPropertyItem rna_enum_property_subtype_items[]
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void * RNA_struct_blender_type_get(StructRNA *srna)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void rna_pointer_create_with_ancestors(const PointerRNA &parent, StructRNA *type, void *data, PointerRNA &r_ptr)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
const EnumPropertyItem * rna_NodeSocket_structure_type_item_filter(const bNodeTree *ntree, const eNodeSocketDatatype socket_type, bool *r_free)
void rna_def_node_socket_interface_subtypes(BlenderRNA *brna)
NodeTreeInterfacePanelFlag
@ NODE_INTERFACE_PANEL_SELECT
@ NODE_INTERFACE_PANEL_DEFAULT_CLOSED
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ PROPOVERRIDE_NO_COMPARISON
ParameterList * RNA_parameter_list_create(ParameterList *parms, PointerRNA *, FunctionRNA *func)
static void rna_def_node_interface_panel(BlenderRNA *brna)
const EnumPropertyItem * RNA_node_enum_definition_itemf(const bke::RuntimeNodeEnumItems &enum_items, bool *r_free)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_struct_free(BlenderRNA *brna, StructRNA *srna)
static void rna_def_node_interface_socket(BlenderRNA *brna)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void BKE_main_ensure_invariants(Main &bmain, std::optional< Span< ID * > > modified_ids=std::nullopt)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
int rna_node_socket_idname_to_enum(const char *idname)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
const EnumPropertyItem rna_enum_dummy_DEFAULT_items[]
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
const EnumPropertyItem rna_enum_node_socket_structure_type_items[]
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
const EnumPropertyItem rna_enum_dummy_NULL_items[]
void(*)(void *data) StructFreeFunc
void RNA_def_struct_register_funcs(StructRNA *srna, const char *reg, const char *unreg, const char *instance)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
static const EnumPropertyItem node_tree_interface_socket_in_out_items[]
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
static void rna_def_node_tree_interface(BlenderRNA *brna)
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type)
void RNA_def_node_tree_interface(BlenderRNA *brna)
bke::bNodeSocketType * rna_node_socket_type_from_enum(int value)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_parameter_set_lookup(ParameterList *parms, const char *identifier, const void *value)
@ NODE_DEFAULT_INPUT_ID_INDEX_FIELD
@ NODE_DEFAULT_INPUT_HANDLE_RIGHT_FIELD
@ NODE_DEFAULT_INPUT_SCENE_FRAME
@ NODE_DEFAULT_INPUT_SELF_OBJECT
@ NODE_DEFAULT_INPUT_POSITION_FIELD
@ NODE_DEFAULT_INPUT_HANDLE_LEFT_FIELD
@ NODE_DEFAULT_INPUT_INDEX_FIELD
@ NODE_DEFAULT_INPUT_INSTANCE_TRANSFORM_FIELD
@ NODE_DEFAULT_INPUT_UNIFORM_IMAGE_COORDINATES
@ NODE_DEFAULT_INPUT_NORMAL_FIELD
@ NODE_DEFAULT_INPUT_VALUE
static void rna_def_node_interface_item(BlenderRNA *brna)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
NodeTreeInterfaceSocketFlag
@ NODE_INTERFACE_SOCKET_HIDE_IN_MODIFIER
@ NODE_INTERFACE_SOCKET_SINGLE_VALUE_ONLY_LEGACY
@ NODE_INTERFACE_SOCKET_HIDE_VALUE
@ NODE_INTERFACE_SOCKET_OPTIONAL_LABEL
@ NODE_INTERFACE_SOCKET_SELECT
@ NODE_INTERFACE_SOCKET_OUTPUT
@ NODE_INTERFACE_SOCKET_PANEL_TOGGLE
@ NODE_INTERFACE_SOCKET_LAYER_SELECTION
@ NODE_INTERFACE_SOCKET_MENU_EXPANDED
@ NODE_INTERFACE_SOCKET_INPUT
@ NODE_INTERFACE_SOCKET_INSPECT
const EnumPropertyItem rna_enum_node_tree_interface_item_type_items[]
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void RNA_struct_free_extension(StructRNA *srna, ExtensionRNA *rna_ext)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop, const bool allow_replace)
void rna_iterator_array_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, void *data, size_t itemsize, int64_t length, bool free_ptr, IteratorSkipFunc skip)
int(*)(bContext *C, PointerRNA *ptr, FunctionRNA *func, ParameterList *list) StructCallbackFunc
const EnumPropertyItem rna_enum_attribute_domain_items[]
void RNA_parameter_list_free(ParameterList *parms)
BlenderRNA RNA_blender_rna_get()
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
NodeTreeInterfaceItemType item_type
bNodeTreeInterfaceItem item
struct IDProperty * properties
bNodeTreeInterface tree_interface
bool(*) valid_socket_type(bNodeTreeType *ntreetype, bNodeSocketType *socket_type)