Muteki
EABI code execution on Besta® RTOS devices.
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
18extern "C" {
19#endif
20
67
71#define UI_MENU_ENTRY_END { .label_wide = _BUL(""), .event = 0, .attributes = 0 }
72
88typedef 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;
114#ifdef __cplusplus
115} // extern "C"
116#endif
117
118#endif // __MUTEKI_UI_TYPES_MENU_COMMON_H__
Common include file for all muteki-shims headers.
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
ui_menu_entry_attribute_e
Menu entry attribute flags.
Definition menu_common.h:24
@ UI_MENU_ENTRY_ATTR_DEFAULT
Default selection.
Definition menu_common.h:65
@ 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
Put separator before current item.
Definition menu_common.h:39
@ 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
Render the widget label using bold font.
Definition menu_common.h:35
@ 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
Label uses 8-bit encoding with codepage CP949.
Definition menu_common.h:59
@ UI_MENU_ENTRY_ATTR_SEPARATOR_AFTER
Put separator after current item.
Definition menu_common.h:28
struct ui_menu_entry_s ui_menu_entry_t
Menu entry struct used by various menu widgets.
Menu entry struct used by various menu widgets.
Definition menu_common.h:88
short unk_0x36
Unknown. Probably padding bytes.
Definition menu_common.h:111
unsigned short attributes
Attributes.
Definition menu_common.h:107
unsigned int event
Event value emitted when selected.
Definition menu_common.h:102
const UTF16 label_wide[24]
UTF-16-encoded label text.
const char label_narrow[48]
8-bit-encoded label text.