|
Blender V5.0
|
#include <cstring>#include <fmt/format.h>#include "BLI_array.hh"#include "BLI_math_vector_types.hh"#include "BLI_string.h"#include "BLT_translation.hh"#include "BKE_global.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface_layout.hh"#include "interface_intern.hh"Go to the source code of this file.
Functions | |
Operator Search Template Implementation | |
| static void | operator_search_exec_fn (bContext *C, void *, void *arg2) |
| static void | operator_search_update_fn (const bContext *C, void *, const char *str, uiSearchItems *items, const bool) |
Operator Search Template API | |
| void | UI_but_func_operator_search (uiBut *but) |
| void | uiTemplateOperatorSearch (uiLayout *layout) |
Search available operators by scanning all and checking their poll function. accessed via the WM_OT_search_operator operator.
Definition in file interface_template_search_operator.cc.
|
static |
Definition at line 33 of file interface_template_search_operator.cc.
References C, blender::wm::InvokeDefault, ot, and WM_operator_name_call_ptr().
Referenced by UI_but_func_operator_search().
|
static |
Definition at line 42 of file interface_template_search_operator.cc.
References BLI_string_all_words_matched(), BLI_string_find_split_words(), BLI_string_max_possible_word_count(), C, CTX_IFACE_, blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::wm::ExecDefault, G, G_DEBUG_WM, name, OPTYPE_INTERNAL, ot, str, UI_search_item_add(), UI_SEP_CHAR, WM_key_event_operator_string(), WM_operator_poll(), and WM_operatortypes_registered_get().
Referenced by UI_but_func_operator_search().
| void UI_but_func_operator_search | ( | uiBut * | but | ) |
Definition at line 86 of file interface_template_search_operator.cc.
References operator_search_exec_fn(), operator_search_update_fn(), UI_but_func_search_set(), and ui_searchbox_create_operator().
Referenced by uiTemplateOperatorSearch(), and wm_block_search_menu().
| void uiTemplateOperatorSearch | ( | uiLayout * | layout | ) |
Definition at line 98 of file interface_template_search_operator.cc.
References uiLayout::block(), blender::ui::block_layout_set_current(), UI_but_func_operator_search(), UI_UNIT_X, UI_UNIT_Y, and uiDefSearchBut().