Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
button.h File Reference

Button widget type definition. More...

#include "framework.h"
#include "text_layout.h"

Go to the source code of this file.

Data Structures

struct  ui_button_s
 Button widget struct. More...

Typedefs

typedef struct ui_button_s ui_button_t
 Button widget type.

Enumerations

enum  ui_button_visual_state_e { UI_BUTTON_VS_RELEASED = 0 , UI_BUTTON_VS_PRESSED = 1 , UI_BUTTON_VS_UNCHANGED = 10 }
 Valid button visual states. More...

Functions

static unsigned int ui_button_layout_from_text_layout (enum ui_text_layout_e text_layout)
 Convert a ui_text_layout_e member to a ui_button_t::content_layout value.

Detailed Description

Button widget type definition.

Enumeration Type Documentation

◆ ui_button_visual_state_e

Valid button visual states.

Enumerator
UI_BUTTON_VS_RELEASED 

Redraw the button as released/not pressed down.

UI_BUTTON_VS_PRESSED 

Redraw the button as pressed down.

UI_BUTTON_VS_UNCHANGED 

Do nothing and keep the current on-screen state.

Function Documentation

◆ ui_button_layout_from_text_layout()

unsigned int ui_button_layout_from_text_layout ( enum ui_text_layout_e text_layout)
inlinestatic

Convert a ui_text_layout_e member to a ui_button_t::content_layout value.

Parameters
text_layoutA valid ui_text_layout_e member.
Returns
A value for ui_button_t::content_layout.