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

Control menu widget type definition. More...

#include "framework.h"
#include "menu_common.h"

Go to the source code of this file.

Data Structures

struct  ui_controlmenu_s
 Control menu struct. More...

Typedefs

typedef struct ui_controlmenu_s ui_controlmenu_t
 Control menu type.

Enumerations

enum  ui_controlmenu_layout_e {
  UI_CONTROLMENU_LAYOUT_ABS = 0 , UI_CONTROLMENU_LAYOUT_LEFT_HALF , UI_CONTROLMENU_LAYOUT_RIGHT_HALF_WITH_SEP , UI_CONTROLMENU_LAYOUT_SCREEN_WIDTH ,
  UI_CONTROLMENU_LAYOUT_RIGHT_HALF
}
 Control menu layout type. More...

Detailed Description

Control menu widget type definition.

Enumeration Type Documentation

◆ ui_controlmenu_layout_e

Control menu layout type.

Enumerator
UI_CONTROLMENU_LAYOUT_ABS 

Absolute X coordinates and widget height.

Skip X value overrides. The y1 bound will also not be automatically derived from the font height.

UI_CONTROLMENU_LAYOUT_LEFT_HALF 

Draw the control menu at the left half of the screen.

Override x0 as 1 pixel right to the left border of the screen, and x1 as the midpoint of the screen ((GetMaxScrX() + 1) / 2).

UI_CONTROLMENU_LAYOUT_RIGHT_HALF_WITH_SEP 

Draw the control menu at the right half of the screen with a 2-pixel separation.

Override x0 as 2 pixels right to the midpoint of the screen, and x1 as 1 pixel left to the right border of the screen.

UI_CONTROLMENU_LAYOUT_SCREEN_WIDTH 

Fill the screen horizontally.

Override x0 as 1 pixel right to the left border of the screen, and x1 as 1 pixel left to the right border of the screen.

UI_CONTROLMENU_LAYOUT_RIGHT_HALF 

Draw the control menu at the right half of the screen.

Override x0 as the midpoint of the screen, and x1 as 1 pixel left to the right border of the screen.