Blender V5.3
blender::ui::ButtonSearch Struct Reference

#include <interface_intern.hh>

Inherits blender::ui::Button.

Public Attributes

ButtonSearchCreateFn popup_create_fn = nullptr
ButtonSearchUpdateFn items_update_fn = nullptr
ButtonSearchListenFn listen_fn = nullptr
void * item_active = nullptr
char * item_active_str
std::shared_ptr< void > arg = nullptr
ButtonSearchContextMenuFn item_context_menu_fn = nullptr
ButtonSearchTooltipFn item_tooltip_fn = nullptr
const char * item_sep_string = nullptr
PointerRNA rnasearchpoin = {}
PropertyRNA * rnasearchprop = nullptr
int preview_rows = 0
int preview_cols = 0
bool results_are_suggestions = false
Public Attributes inherited from blender::ui::Button
Layout * layout = nullptr
int64_t flag = 0
int drawflag = 0
TextDirection text_direction = TextDirection::Default
ButtonType type = ButtonType(0)
ButPointerType pointype = ButPointerType::None
bool bit = false
char bitnr = 0
uchar menu_key = 0
int retval = 0
short strwidth = 0
short alignnr = 0
int ofs = 0
int pos = 0
int selsta = 0
int selend = 0
uchar col [4] = {0}
std::string str
std::string drawstr
char * placeholder = nullptr
rctf rect = {}
char * poin = nullptr
float hardmin = 0
float hardmax = 0
float softmin = 0
float softmax = 0
ButtonIdentityCompareFunc identity_cmp_func = nullptr
ButtonHandleFunc func = nullptr
void * func_arg1 = nullptr
void * func_arg2 = nullptr
std::function< void(bContext &)> apply_func
ButtonHandleNFunc funcN = nullptr
void * func_argN = nullptr
ButtonArgNFree func_argN_free_fn
ButtonArgNCopy func_argN_copy_fn
const bContextStore * context = nullptr
ButtonCompleteFunc autocomplete_func = nullptr
void * autofunc_arg = nullptr
ButtonHandleHoldFunc hold_func = nullptr
void * hold_argN = nullptr
StringRef tip
ButtonToolTipFunc tip_func = nullptr
void * tip_arg = nullptr
FreeArgFunc tip_arg_free = nullptr
std::function< std::string(const Button *)> tip_quick_func
ButtonToolTipCustomFunc tip_custom_func = nullptr
const char * disabled_info = nullptr
IconTextOverlay icon_overlay_text = {}
EmbossType emboss = EmbossType::Emboss
RadialDirection pie_dir = UI_RADIAL_NONE
bool changed = false
BIFIconID icon = ICON_NONE
float icon_scale = 1.0f
float search_weight = 0.0f
short iconadd = 0
uchar unit_type = 0
bool menu_no_hover_open = false
BlockCreateFunc block_create_func = nullptr
MenuCreateFunc menu_create_func = nullptr
MenuStepFunc menu_step_func = nullptr
PointerRNA rnapoin = {}
PropertyRNA * rnaprop = nullptr
int rnaindex = 0
BIFIconID drag_preview_icon_id
void * dragpoin = nullptr
const ImBuf * imb = nullptr
float imb_scale = 0
eWM_DragDataType dragtype = WM_DRAG_ID
int8_t dragflag = 0
bool operator_never_call = false
wm::OpCallContext opcontext = wm::OpCallContext::InvokeDefault
wmOperatorType * optype = nullptr
PointerRNA * opptr = nullptr
ListBaseT< ButtonExtraOpIcon > extra_op_icons = {nullptr, nullptr}
HandleButtonData * active = nullptr
HandleButtonData * semi_modal_state = nullptr
void * custom_data = nullptr
char * editstr = nullptr
double * editval = nullptr
float * editvec = nullptr
std::function< bool(const Button &)> pushed_state_func
Block * block = nullptr

Additional Inherited Members

Public Member Functions inherited from blender::ui::Button
 Button ()=default
 Button (const Button &other)=default
Button & operator= (const Button &other)=delete
virtual ~Button ()=default
Public Member Functions inherited from blender::blender::NonMovable
 NonMovable (NonMovable &&other)=delete
NonMovable & operator= (NonMovable &&other)=delete
 NonMovable ()=default
 NonMovable (const NonMovable &other)=default
NonMovable & operator= (const NonMovable &other)=default

Detailed Description

Derived struct for #ButtonType::SearchMenu

Definition at line 447 of file interface_intern.hh.

Member Data Documentation

◆ arg

◆ item_active

◆ item_active_str

char* blender::ui::ButtonSearch::item_active_str

◆ item_context_menu_fn

ButtonSearchContextMenuFn blender::ui::ButtonSearch::item_context_menu_fn = nullptr

◆ item_sep_string

const char* blender::ui::ButtonSearch::item_sep_string = nullptr

◆ item_tooltip_fn

ButtonSearchTooltipFn blender::ui::ButtonSearch::item_tooltip_fn = nullptr

◆ items_update_fn

◆ listen_fn

ButtonSearchListenFn blender::ui::ButtonSearch::listen_fn = nullptr

◆ popup_create_fn

ButtonSearchCreateFn blender::ui::ButtonSearch::popup_create_fn = nullptr

◆ preview_cols

int blender::ui::ButtonSearch::preview_cols = 0

◆ preview_rows

int blender::ui::ButtonSearch::preview_rows = 0

◆ results_are_suggestions

bool blender::ui::ButtonSearch::results_are_suggestions = false

The search box only provides suggestions, it does not force the string to match one of the search items when applying.

Definition at line 472 of file interface_intern.hh.

Referenced by blender::ui::button_func_search_set(), blender::ui::button_func_search_set_results_are_suggestions(), blender::ui::button_search_refresh(), and blender::ui::textedit_end().

◆ rnasearchpoin

◆ rnasearchprop


The documentation for this struct was generated from the following file: