45 node_tree->ensure_topology_cache();
46 return node_tree->node_by_id(this->node_id);
50static_assert(std::is_trivially_destructible_v<BundleTypeSocketSearchData>);
76 if (!
str.is_empty()) {
82 if (
str.is_empty() && !is_first) {
89 for (
const std::string &name : names) {
90 search.
add(name, &name);
94 for (
const std::string *item : filtered_items) {
111 if (!
node->is_type(
"NodeCombineBundle"_ustr)) {
bool contains(const T &value) const
static Vector< std::string > get_all_flat_type_names()
static BundleKey type_item_name
void add(const StringRef str, T *user_data, const int weight=0)
Vector< T * > query(const StringRef query) const
#define storage(slot, qualifiers)
static void bundle_type_string_search(const bContext *C, void *arg, const char *str_ptr, ui::SearchItems *items, const bool is_first)
static Vector< std::string > get_type_names_from_context(const bContext &C, const BundleTypeSocketSearchData &data)
void node_bundle_type_add_string_search_button(const bContext &, const bNode &node, PointerRNA &socket_ptr, ui::Layout &layout, const StringRef placeholder)
static void bundle_type_string_search_exec(bContext *C, void *data_v, void *)
void sync_node(bContext &C, bNode &node, ReportList *reports)
void button_func_search_set_results_are_suggestions(Button *but, bool value)
void button_func_search_set_sep_string(Button *but, const char *search_sep_string)
void button_placeholder_set(Button *but, StringRef placeholder_text)
bool search_item_add(SearchItems *items, StringRef name, void *poin, int iconid, int64_t but_flag, uint8_t name_prefix_offset)
void button_func_search_set(Button *but, ButtonSearchCreateFn search_create_fn, ButtonSearchUpdateFn search_update_fn, void *arg, bool free_arg, FreeArgFunc search_arg_free_fn, ButtonHandleFunc search_exec_fn, void *active)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
BMesh const char void * data
wmWindowManager * CTX_wm_manager(const bContext *C)
void ED_undo_push(bContext *C, const char *str, UndoEncodeHints hints=UndoEncodeHints(0))
void BKE_main_ensure_invariants(Main &bmain, std::optional< Span< ID * > > modified_ids=std::nullopt)
SpaceNode * CTX_wm_space_node(const bContext *C)
Main * CTX_data_main(const bContext *C)
bScreen * ED_screen_animation_playing(const wmWindowManager *wm)
#define UI_MENU_ARROW_SEP
eNodeSocketDatatype socket_type
struct bNodeTree * edittree
bNode * find_node(const bContext &C) const