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

Public Attributes

int64_t but_flag
int but_drawflag
EmbossType emboss
bool draw_as_link: 1
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 131 of file interface_widgets.cc.

Member Data Documentation

◆ but_drawflag

int blender::ui::WidgetStateInfo::but_drawflag

Copy of #Button.drawflag (possibly with overrides for drawing).

Definition at line 135 of file interface_widgets.cc.

◆ but_flag

int64_t blender::ui::WidgetStateInfo::but_flag

Copy of #Button.flag (possibly with overrides for drawing).

Definition at line 133 of file interface_widgets.cc.

Referenced by blender::ui::draw_menu_item().

◆ draw_as_link

bool blender::ui::WidgetStateInfo::draw_as_link

Copy of #ButtonPush::draw_as_link.

Definition at line 140 of file interface_widgets.cc.

◆ emboss

EmbossType blender::ui::WidgetStateInfo::emboss

Copy of #Button.emboss.

Definition at line 137 of file interface_widgets.cc.

◆ has_hold_action

bool blender::ui::WidgetStateInfo::has_hold_action

Show that holding the button opens a menu.

Definition at line 143 of file interface_widgets.cc.

◆ is_text_input

bool blender::ui::WidgetStateInfo::is_text_input

The button is in text input mode.

Definition at line 145 of file interface_widgets.cc.


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