327 if (parent ==
nullptr || parent == &
root_panel) {
331 return parent->item_position(item);
337 int find_item_index(
const bNodeTreeInterfaceItem &item)
const
345 bool find_item(
const bNodeTreeInterfaceItem &item)
const
352 const bNodeTreeInterfaceItem *get_item_at_index(
int index)
const
362 bNodeTreeInterfacePanel *find_item_parent(
const bNodeTreeInterfaceItem &item,
363 bool include_root =
false)
365 bNodeTreeInterfacePanel *parent =
root_panel.find_parent_recursive(item);
378 bNodeTreeInterfaceSocket *add_socket(StringRef name,
379 StringRef description,
380 StringRef socket_type,
382 bNodeTreeInterfacePanel *parent);
389 bNodeTreeInterfaceSocket *insert_socket(StringRef name,
390 StringRef description,
391 StringRef socket_type,
393 bNodeTreeInterfacePanel *parent,
401 bNodeTreeInterfacePanel *add_panel(StringRef name,
402 StringRef description,
404 bNodeTreeInterfacePanel *parent);
411 bNodeTreeInterfacePanel *insert_panel(StringRef name,
412 StringRef description,
414 bNodeTreeInterfacePanel *parent,
422 bNodeTreeInterfaceItem *add_item_copy(
const bNodeTreeInterfaceItem &item,
423 bNodeTreeInterfacePanel *parent);
430 bNodeTreeInterfaceItem *insert_item_copy(
const bNodeTreeInterfaceItem &item,
431 bNodeTreeInterfacePanel *parent,
440 bool remove_item(bNodeTreeInterfaceItem &item,
bool move_content_to_parent =
true);
447 bool move_item(bNodeTreeInterfaceItem &item,
int new_position);
454 bool move_item_to_parent(bNodeTreeInterfaceItem &item,
455 bNodeTreeInterfacePanel *new_parent,
465 void foreach_item(FunctionRef<
bool(bNodeTreeInterfaceItem &item)> fn,
bool include_root =
false)
476 void foreach_item(FunctionRef<
bool(
const bNodeTreeInterfaceItem &item)> fn,
477 bool include_root =
false)
const
483 void foreach_id(LibraryForeachIDData *cb);
486 bool items_cache_is_available()
const;
489 void ensure_items_cache()
const;
492 int input_index_by_identifier(StringRef identifier)
const;
494 int output_index_by_identifier(StringRef identifier)
const;
497 bool requires_dependent_tree_updates()
const;
500 void tag_items_changed();
502 void tag_items_changed_generic();
504 void tag_item_property_changed();
510 void reset_interface_changed();
514 void tag_interface_changed();
516 void tag_missing_runtime_data();