Blender V5.0
uiWidgetStateInfo Struct Reference

Public Attributes

int but_flag
int but_drawflag
blender::ui::EmbossType emboss
bool has_hold_action: 1
bool is_text_input: 1

Detailed Description

The button's state information adapted for drawing. Use STATE_INFO_NULL for empty state.

Definition at line 122 of file interface_widgets.cc.

Member Data Documentation

◆ but_drawflag

int uiWidgetStateInfo::but_drawflag

Copy of uiBut.drawflag (possibly with overrides for drawing).

Definition at line 126 of file interface_widgets.cc.

◆ but_flag

int uiWidgetStateInfo::but_flag

Copy of uiBut.flag (possibly with overrides for drawing).

Definition at line 124 of file interface_widgets.cc.

Referenced by ui_draw_menu_item().

◆ emboss

blender::ui::EmbossType uiWidgetStateInfo::emboss

Copy of uiBut.emboss.

Definition at line 128 of file interface_widgets.cc.

◆ has_hold_action

bool uiWidgetStateInfo::has_hold_action

Show that holding the button opens a menu.

Definition at line 131 of file interface_widgets.cc.

◆ is_text_input

bool uiWidgetStateInfo::is_text_input

The button is in text input mode.

Definition at line 133 of file interface_widgets.cc.


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