Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
Loading...
Searching...
No Matches
controlmenu.h
Go to the documentation of this file.
1
/*
2
* Copyright 2026 dogtopus
3
* SPDX-License-Identifier: MIT
4
*/
5
10
11
#ifndef __MUTEKI_UI_TYPES_CONTROLMENU_H__
12
#define __MUTEKI_UI_TYPES_CONTROLMENU_H__
13
14
#include "
framework.h
"
15
#include "
menu_common.h
"
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
24
enum
ui_controlmenu_layout_e
{
29
UI_CONTROLMENU_LAYOUT_ABS
= 0,
30
36
UI_CONTROLMENU_LAYOUT_LEFT_HALF
,
37
43
UI_CONTROLMENU_LAYOUT_RIGHT_HALF_WITH_SEP
,
44
50
UI_CONTROLMENU_LAYOUT_SCREEN_WIDTH
,
51
56
UI_CONTROLMENU_LAYOUT_RIGHT_HALF
,
57
};
58
62
typedef
struct
ui_controlmenu_s
ui_controlmenu_t
;
63
67
struct
ui_controlmenu_s
{
71
ui_component_t
component
;
76
unsigned
short
layout_mode
;
80
unsigned
short
current_index
;
84
const
ui_menu_entry_t
*
menu_entries
;
88
const
UTF16
*
menu_title_text
;
94
unsigned
short
selection_policy
;
98
unsigned
short
unk_0x42
;
99
};
100
101
#ifdef __cplusplus
102
}
// extern "C"
103
#endif
104
105
#endif
// __MUTEKI_UI_TYPES_BUTTON_H__
UTF16
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition
common.h:54
framework.h
UI framework type (component, group, event) definitions.
ui_component_t
struct ui_component_s ui_component_t
ui_component_s
Definition
framework.h:71
menu_common.h
Menu type definitions that are shared among several menu implementations.
ui_menu_entry_t
struct ui_menu_entry_s ui_menu_entry_t
Menu entry struct used by various menu widgets.
ui_controlmenu_s
Control menu struct.
Definition
controlmenu.h:67
ui_controlmenu_s::current_index
unsigned short current_index
Index of currently selected item.
Definition
controlmenu.h:80
ui_controlmenu_s::selection_policy
unsigned short selection_policy
Selection policy.
Definition
controlmenu.h:94
ui_controlmenu_s::menu_entries
const ui_menu_entry_t * menu_entries
Menu entry array.
Definition
controlmenu.h:84
ui_controlmenu_s::menu_title_text
const UTF16 * menu_title_text
Title text of the pop-up menu.
Definition
controlmenu.h:88
ui_controlmenu_s::unk_0x42
unsigned short unk_0x42
Unknown. Probably padding bytes.
Definition
controlmenu.h:98
ui_controlmenu_s::component
ui_component_t component
The inherited component struct.
Definition
controlmenu.h:71
ui_controlmenu_s::layout_mode
unsigned short layout_mode
Layout mode.
Definition
controlmenu.h:76
ui_controlmenu_t
struct ui_controlmenu_s ui_controlmenu_t
Control menu type.
Definition
controlmenu.h:62
ui_controlmenu_layout_e
ui_controlmenu_layout_e
Control menu layout type.
Definition
controlmenu.h:24
UI_CONTROLMENU_LAYOUT_RIGHT_HALF
@ UI_CONTROLMENU_LAYOUT_RIGHT_HALF
Draw the control menu at the right half of the screen.
Definition
controlmenu.h:56
UI_CONTROLMENU_LAYOUT_LEFT_HALF
@ UI_CONTROLMENU_LAYOUT_LEFT_HALF
Draw the control menu at the left half of the screen.
Definition
controlmenu.h:36
UI_CONTROLMENU_LAYOUT_RIGHT_HALF_WITH_SEP
@ UI_CONTROLMENU_LAYOUT_RIGHT_HALF_WITH_SEP
Draw the control menu at the right half of the screen with a 2-pixel separation.
Definition
controlmenu.h:43
UI_CONTROLMENU_LAYOUT_SCREEN_WIDTH
@ UI_CONTROLMENU_LAYOUT_SCREEN_WIDTH
Fill the screen horizontally.
Definition
controlmenu.h:50
UI_CONTROLMENU_LAYOUT_ABS
@ UI_CONTROLMENU_LAYOUT_ABS
Absolute X coordinates and widget height.
Definition
controlmenu.h:29
include
muteki
ui
types
controlmenu.h
Generated by
1.18.0