Blender V4.5
uiWidgetStateInfo Struct Reference

Public Attributes

int but_flag
int but_drawflag
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 116 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 120 of file interface_widgets.cc.

◆ but_flag

int uiWidgetStateInfo::but_flag

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

Definition at line 118 of file interface_widgets.cc.

Referenced by ui_draw_menu_item().

◆ has_hold_action

bool uiWidgetStateInfo::has_hold_action

Show that holding the button opens a menu.

Definition at line 123 of file interface_widgets.cc.

◆ is_text_input

bool uiWidgetStateInfo::is_text_input

The button is in text input mode.

Definition at line 125 of file interface_widgets.cc.


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