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

#include <interface_intern.hh>

Inherits blender::ui::Button.

Public Attributes

std::string key
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::Image.

Definition at line 530 of file interface_intern.hh.

Member Data Documentation

◆ key

std::string blender::ui::ButtonImage::key

Uniquely identifies the image, to reuse it from the previous redraw.

Definition at line 532 of file interface_intern.hh.

Referenced by blender::ui::but_update_old_active_from_new(), blender::ui::Layout::image(), and blender::ui::image_find_in_old_block().


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