Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
ui_button_s Struct Reference

Button widget struct. More...

#include <button.h>

Data Fields

ui_component_t component
 The inherited component struct.
void(*) on_draw_content (ui_button_t *self)
 Draw the button content.
void(*) on_draw_border (ui_button_t *self, short x0, short y0, short x1, short y1, unsigned short button_flags, unsigned short state)
 Draw the button border.
int key_binding
 Key binding.
unsigned int event
 Custom event to be sent on button press.
const UTF16 * label
 Button label text.
const char * key_binding_str
 Human-readable label of key binding (can be NULL).
int unk_0x4c
 Unknown. Probably padding bytes.
unsigned int next_visual_state
 Visual state.
unsigned int content_layout
 Text layout of the button label.
short horizontal_padding
 Number of horizontal padding pixels.
unsigned short button_flags
 Style flags.
unsigned int user_data
 Reserved for subtype use.

Detailed Description

Button widget struct.

Field Documentation

◆ button_flags

unsigned short ui_button_s::button_flags

Style flags.

See also
ui_button_flag_e

◆ component

ui_component_t ui_button_s::component

The inherited component struct.

◆ content_layout

unsigned int ui_button_s::content_layout

Text layout of the button label.

This is most likely not intended to be set by the end-user, as the resulting layouts enabled by values other than the default look broken on the default button style, and both the default constructor and all public methods never allowed the user to set it.

See also
ui_text_layout_e Raw values for the text layout types.
ui_button_layout_from_text_layout Convert ui_text_layout_e to accepted format.

◆ key_binding

int ui_button_s::key_binding

Key binding.

Setting this to 0 disables key binding.

See also
ui_keycode_e

◆ next_visual_state

unsigned int ui_button_s::next_visual_state

Visual state.

See also
ui_button_visual_state_e

◆ unk_0x4c

int ui_button_s::unk_0x4c

Unknown. Probably padding bytes.


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