|
Blender V4.3
|
#include <cstring>#include <fmt/format.h>#include "DNA_object_types.h"#include "DNA_texture_types.h"#include "BLI_array.hh"#include "BLI_ghash.h"#include "BLI_math_vector_types.hh"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_global.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.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 38 of file interface_template_search_operator.cc.
References ot, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call_ptr().
Referenced by UI_but_func_operator_search().
|
static |
Definition at line 47 of file interface_template_search_operator.cc.
References BLI_string_all_words_matched(), BLI_string_find_split_words(), BLI_string_max_possible_word_count(), CTX_IFACE_, blender::Array< T, InlineBufferCapacity, Allocator >::data(), wmOperatorType::flag, G, G_DEBUG_WM, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, ot, str, wmOperatorType::translation_context, UI_search_item_add(), UI_SEP_CHAR, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values(), WM_key_event_operator_string(), WM_OP_EXEC_DEFAULT, WM_operator_poll(), and WM_operatortype_map().
Referenced by UI_but_func_operator_search().
| void UI_but_func_operator_search | ( | uiBut * | but | ) |
Definition at line 91 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 103 of file interface_template_search_operator.cc.
References UI_block_layout_set_current(), UI_but_func_operator_search(), UI_UNIT_X, UI_UNIT_Y, uiDefSearchBut(), and uiLayoutGetBlock().