Blender V5.0
uiButViewItem Struct Reference

#include <interface_intern.hh>

Inherits uiBut.

Public Attributes

blender::ui::AbstractViewItemview_item = nullptr
int draw_width = 0
int draw_height = 0
Public Attributes inherited from uiBut
uiLayoutlayout = nullptr
int flag = 0
int drawflag = 0
char flag2 = 0
ButType type = ButType(0)
ButPointerType pointype = ButPointerType::None
bool bit = 0
char bitnr = 0
uchar menu_key = 0
short retval = 0
short strwidth = 0
short alignnr = 0
short ofs = 0
short pos = 0
short selsta = 0
short 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
uiButIdentityCompareFunc identity_cmp_func = nullptr
uiButHandleFunc func = nullptr
void * func_arg1 = nullptr
void * func_arg2 = nullptr
std::function< void(bContext &)> apply_func
uiButHandleNFunc funcN = nullptr
void * func_argN = nullptr
uiButArgNFree func_argN_free_fn
uiButArgNCopy func_argN_copy_fn
const bContextStorecontext = nullptr
uiButCompleteFunc autocomplete_func = nullptr
void * autofunc_arg = nullptr
uiButHandleRenameFunc rename_func = nullptr
void * rename_arg1 = nullptr
void * rename_orig = nullptr
std::function< void(std::string &new_name)> rename_full_func = nullptr
std::string rename_full_new
uiButHandleHoldFunc hold_func = nullptr
void * hold_argN = nullptr
blender::StringRef tip
uiButToolTipFunc tip_func = nullptr
void * tip_arg = nullptr
uiFreeArgFunc tip_arg_free = nullptr
std::function< std::string(const uiBut *)> tip_quick_func
uiButToolTipCustomFunc tip_custom_func = nullptr
const char * disabled_info = nullptr
IconTextOverlay icon_overlay_text = {}
blender::ui::EmbossType emboss = blender::ui::EmbossType::Emboss
RadialDirection pie_dir = UI_RADIAL_NONE
bool changed = false
BIFIconID icon = ICON_NONE
float search_weight = 0.0f
short iconadd = 0
uchar unit_type = 0
bool menu_no_hover_open = false
uiBlockCreateFunc block_create_func = nullptr
uiMenuCreateFunc menu_create_func = nullptr
uiMenuStepFunc menu_step_func = nullptr
PointerRNA rnapoin = {}
PropertyRNArnaprop = nullptr
int rnaindex = 0
BIFIconID drag_preview_icon_id
void * dragpoin = nullptr
const ImBufimb = nullptr
float imb_scale = 0
eWM_DragDataType dragtype = WM_DRAG_ID
int8_t dragflag = 0
bool operator_never_call = false
blender::wm::OpCallContext opcontext = blender::wm::OpCallContext::InvokeDefault
wmOperatorTypeoptype = nullptr
PointerRNAopptr = nullptr
ListBase extra_op_icons = {nullptr, nullptr}
uiHandleButtonDataactive = nullptr
uiHandleButtonDatasemi_modal_state = nullptr
void * custom_data = nullptr
char * editstr = nullptr
double * editval = nullptr
floateditvec = nullptr
std::function< bool(const uiBut &)> pushed_state_func
uiBlockblock = nullptr

Additional Inherited Members

Public Member Functions inherited from uiBut
 uiBut ()=default
 uiBut (const uiBut &other)=default
uiButoperator= (const uiBut &other)=default
virtual ~uiBut ()=default

Detailed Description

Definition at line 443 of file interface_intern.hh.

Member Data Documentation

◆ draw_height

int uiButViewItem::draw_height = 0

Definition at line 451 of file interface_intern.hh.

Referenced by UI_but_view_item_draw_size_set(), and widget_list_itembut().

◆ draw_width

int uiButViewItem::draw_width = 0

Some items want to have a fixed size for drawing, differing from the interaction rectangle (e.g. so highlights are drawn smaller).

Definition at line 450 of file interface_intern.hh.

Referenced by UI_but_view_item_draw_size_set(), and widget_list_itembut().

◆ view_item


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