Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
Loading...
Searching...
No Matches
menu_common.h
Go to the documentation of this file.
1
/*
2
* Copyright 2024-2026 dogtopus
3
* SPDX-License-Identifier: MIT
4
*/
5
10
11
12
#ifndef __MUTEKI_UI_TYPES_MENU_COMMON_H__
13
#define __MUTEKI_UI_TYPES_MENU_COMMON_H__
14
15
#include "
../../common.h
"
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
24
enum
ui_menu_entry_attribute_e
{
28
UI_MENU_ENTRY_ATTR_SEPARATOR_AFTER
= 0x0001,
35
UI_CONTROLMENU_ENTRY_ATTR_BOLD_FONT
= 0x0002,
39
UI_MENU_ENTRY_ATTR_SEPARATOR_BEFORE
= 0x0004,
47
UI_CONTROLMENU_ENTRY_ATTR_VALUE_ITEM
= 0x0080,
51
UI_MENU_ENTRY_ATTR_ENCODING_CP950
= 0x0100,
55
UI_MENU_ENTRY_ATTR_ENCODING_CP936
= 0x0200,
59
UI_MENU_ENTRY_ATTR_ENCODING_CP949
= 0x0400,
65
UI_MENU_ENTRY_ATTR_DEFAULT
= 0x1000,
66
};
67
71
#define UI_MENU_ENTRY_END { .label_wide = _BUL(""), .event = 0, .attributes = 0 }
72
88
typedef
struct
ui_menu_entry_s
{
89
union
{
93
const
UTF16
label_wide
[24];
97
const
char
label_narrow
[48];
98
};
99
102
unsigned
int
event
;
107
unsigned
short
attributes
;
111
short
unk_0x36
;
112
}
ui_menu_entry_t
;
113
114
#ifdef __cplusplus
115
}
// extern "C"
116
#endif
117
118
#endif
// __MUTEKI_UI_TYPES_MENU_COMMON_H__
common.h
Common include file for all muteki-shims headers.
UTF16
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition
common.h:54
ui_menu_entry_attribute_e
ui_menu_entry_attribute_e
Menu entry attribute flags.
Definition
menu_common.h:24
UI_MENU_ENTRY_ATTR_DEFAULT
@ UI_MENU_ENTRY_ATTR_DEFAULT
Default selection.
Definition
menu_common.h:65
UI_MENU_ENTRY_ATTR_ENCODING_CP936
@ UI_MENU_ENTRY_ATTR_ENCODING_CP936
Label uses 8-bit encoding with codepage CP936.
Definition
menu_common.h:55
UI_MENU_ENTRY_ATTR_SEPARATOR_BEFORE
@ UI_MENU_ENTRY_ATTR_SEPARATOR_BEFORE
Put separator before current item.
Definition
menu_common.h:39
UI_MENU_ENTRY_ATTR_ENCODING_CP950
@ UI_MENU_ENTRY_ATTR_ENCODING_CP950
Label uses 8-bit encoding with codepage CP950.
Definition
menu_common.h:51
UI_CONTROLMENU_ENTRY_ATTR_BOLD_FONT
@ UI_CONTROLMENU_ENTRY_ATTR_BOLD_FONT
Render the widget label using bold font.
Definition
menu_common.h:35
UI_CONTROLMENU_ENTRY_ATTR_VALUE_ITEM
@ UI_CONTROLMENU_ENTRY_ATTR_VALUE_ITEM
Item can be selected as a control menu value.
Definition
menu_common.h:47
UI_MENU_ENTRY_ATTR_ENCODING_CP949
@ UI_MENU_ENTRY_ATTR_ENCODING_CP949
Label uses 8-bit encoding with codepage CP949.
Definition
menu_common.h:59
UI_MENU_ENTRY_ATTR_SEPARATOR_AFTER
@ UI_MENU_ENTRY_ATTR_SEPARATOR_AFTER
Put separator after current item.
Definition
menu_common.h:28
ui_menu_entry_t
struct ui_menu_entry_s ui_menu_entry_t
Menu entry struct used by various menu widgets.
ui_menu_entry_s
Menu entry struct used by various menu widgets.
Definition
menu_common.h:88
ui_menu_entry_s::unk_0x36
short unk_0x36
Unknown. Probably padding bytes.
Definition
menu_common.h:111
ui_menu_entry_s::attributes
unsigned short attributes
Attributes.
Definition
menu_common.h:107
ui_menu_entry_s::event
unsigned int event
Event value emitted when selected.
Definition
menu_common.h:102
ui_menu_entry_s::[union].__unnamed0__::label_wide
const UTF16 label_wide[24]
UTF-16-encoded label text.
ui_menu_entry_s::[union].__unnamed0__::label_narrow
const char label_narrow[48]
8-bit-encoded label text.
include
muteki
ui
types
menu_common.h
Generated by
1.18.0