|
Blender
V2.93
|
#include "BLI_index_range.hh"#include "BLI_listbase.h"#include "BLI_map.hh"#include "BLI_set.hh"#include "BLI_string_ref.hh"#include "BLI_string_search.h"#include "DNA_modifier_types.h"#include "DNA_node_types.h"#include "DNA_object_types.h"#include "DNA_space_types.h"#include "BKE_context.h"#include "BKE_node_ui_storage.hh"#include "BKE_object.h"#include "RNA_access.h"#include "RNA_enum_types.h"#include "ED_undo.h"#include "BLT_translation.h"#include "UI_interface.h"#include "UI_resources.h"#include "node_intern.h"Go to the source code of this file.
Classes | |
| struct | AttributeSearchData |
Macros | |
| #define | MENU_SEP "\xe2\x96\xb6" |
Functions | |
| BLI_STATIC_ASSERT (std::is_trivially_destructible_v< AttributeSearchData >, "") | |
| static StringRef | attribute_data_type_string (const CustomDataType type) |
| static StringRef | attribute_domain_string (const AttributeDomain domain) |
| static bool | attribute_search_item_add (uiSearchItems *items, const AvailableAttributeInfo &item) |
| static void | attribute_search_update_fn (const bContext *UNUSED(C), void *arg, const char *str, uiSearchItems *items, const bool is_first) |
| static void | attribute_search_exec_fn (bContext *C, void *data_v, void *item_v) |
| void | node_geometry_add_attribute_search_button (const bContext *C, const bNodeTree *node_tree, const bNode *node, PointerRNA *socket_ptr, uiLayout *layout) |
| #define MENU_SEP "\xe2\x96\xb6" |
Definition at line 74 of file node_geometry_attribute_search.cc.
|
static |
Definition at line 59 of file node_geometry_attribute_search.cc.
References IFACE_, rna_enum_attribute_type_items, RNA_enum_name_from_value(), and type.
Referenced by attribute_search_item_add().
|
static |
Definition at line 66 of file node_geometry_attribute_search.cc.
References IFACE_, rna_enum_attribute_domain_items, and RNA_enum_name_from_value().
Referenced by attribute_search_item_add().
|
static |
Definition at line 137 of file node_geometry_attribute_search.cc.
References BLI_strncpy(), C, data, bNodeSocket::default_value, ED_undo_push(), MAX_NAME, AvailableAttributeInfo::name, and bNodeSocketValueString::value.
Referenced by node_geometry_add_attribute_search_button().
|
static |
Definition at line 76 of file node_geometry_attribute_search.cc.
References attribute_data_type_string(), attribute_domain_string(), AvailableAttributeInfo::data_type, AvailableAttributeInfo::domain, MENU_SEP, AvailableAttributeInfo::name, UI_BUT_HAS_SEP_CHAR, UI_search_item_add(), and UI_SEP_CHAR.
Referenced by attribute_search_update_fn().
|
static |
Definition at line 87 of file node_geometry_attribute_search.cc.
References attribute_search_item_add(), BLI_string_search_add(), BLI_string_search_free(), BLI_string_search_new(), BLI_string_search_query(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), data, MEM_freeN, str, and UI_search_item_add().
Referenced by node_geometry_add_attribute_search_button().
| BLI_STATIC_ASSERT | ( | std::is_trivially_destructible_v< AttributeSearchData > | , |
| "" | |||
| ) |
| void node_geometry_add_attribute_search_button | ( | const bContext * | C, |
| const bNodeTree * | node_tree, | ||
| const bNode * | node, | ||
| PointerRNA * | socket_ptr, | ||
| uiLayout * | layout | ||
| ) |
Definition at line 149 of file node_geometry_attribute_search.cc.
References attribute_search_exec_fn(), attribute_search_update_fn(), BKE_node_tree_ui_storage_get_from_context(), C, data, PointerRNA::data, NodeTreeUIStorage::dummy_info_for_search, MENU_SEP, node, UI_BTYPE_SEARCH_MENU, UI_but_func_search_set(), UI_but_func_search_set_results_are_suggestions(), UI_but_func_search_set_sep_string(), UI_UNIT_X, UI_UNIT_Y, uiDefIconTextButR(), uiItemR(), and uiLayoutGetBlock().
Referenced by std_node_socket_draw(), and ui_node_draw_input().