Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
Loading...
Searching...
No Matches
menufield.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_MENUFIELD_H__
12
#define __MUTEKI_UI_TYPES_MENUFIELD_H__
13
14
#include "
framework.h
"
15
#include "
menu_common.h
"
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
24
enum
ui_menufield_flag_e
{
31
UI_MENUFIELD_FLAG_NOTIFY
= 0x0001,
35
UI_MENUFIELD_FILEPICKER
= 0x0020,
36
};
37
41
typedef
struct
ui_menufield_s
ui_menufield_t
;
42
46
struct
ui_menufield_s
{
50
ui_component_t
component
;
55
unsigned
short
theme_param
;
59
short
unk_0x36
;
64
void (*
post_update
)(
ui_menufield_t
*self);
68
const
ui_menu_entry_t
*
menu_entries
;
73
unsigned
short
*
current_index_p
;
78
short
max_x1
;
83
unsigned
short
menufield_flags
;
87
int
unk_0x48
;
88
};
89
90
#ifdef __cplusplus
91
}
// extern "C"
92
#endif
93
94
#endif
// __MUTEKI_UI_TYPES_MENUFIELD_H__
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_menufield_s
Menu field struct.
Definition
menufield.h:46
ui_menufield_s::current_index_p
unsigned short * current_index_p
Borrowed reference to the memory storing the current index.
Definition
menufield.h:73
ui_menufield_s::unk_0x48
int unk_0x48
Unknown.
Definition
menufield.h:87
ui_menufield_s::max_x1
short max_x1
Maximum text area x1 coordinate.
Definition
menufield.h:78
ui_menufield_s::post_update
void(*) post_update(ui_menufield_t *self)
Post update callback.
Definition
menufield.h:64
ui_menufield_s::theme_param
unsigned short theme_param
Not used but set to 1. Likely used by the widget theming module.
Definition
menufield.h:55
ui_menufield_s::unk_0x36
short unk_0x36
Unknown. Probably padding bytes.
Definition
menufield.h:59
ui_menufield_s::menufield_flags
unsigned short menufield_flags
Flags.
Definition
menufield.h:83
ui_menufield_s::component
ui_component_t component
The inherited component struct.
Definition
menufield.h:50
ui_menufield_s::menu_entries
const ui_menu_entry_t * menu_entries
Menu entry array.
Definition
menufield.h:68
ui_menufield_t
struct ui_menufield_s ui_menufield_t
Menu field type.
Definition
menufield.h:41
ui_menufield_flag_e
ui_menufield_flag_e
Menu field flags.
Definition
menufield.h:24
UI_MENUFIELD_FILEPICKER
@ UI_MENUFIELD_FILEPICKER
Set by the file picker user. Purpose unclear.
Definition
menufield.h:35
UI_MENUFIELD_FLAG_NOTIFY
@ UI_MENUFIELD_FLAG_NOTIFY
Notify others of a new selection.
Definition
menufield.h:31
include
muteki
ui
types
menufield.h
Generated by
1.18.0