Muteki
EABI code execution on Besta® RTOS devices.
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_WIDGETS_CONTROLMENU_H__
12#define __MUTEKI_UI_WIDGETS_CONTROLMENU_H__
13
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
36 unsigned short tag,
37 short x0,
38 short y0,
39 short x1,
40 short y1,
41 const ui_menu_entry_t *entries,
42 const UTF16 *title,
43 unsigned short default_index,
44 int layout_mode,
45 unsigned short selection_policy
46);
47
55
64
65#ifdef __cplusplus
66} // extern "C"
67#endif
68
69#endif // __MUTEKI_UI_WIDGETS_CONTROLMENU_H__
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
struct ui_event_std_s ui_event_t
ui_event_std_s
Definition framework.h:96
struct ui_menu_entry_s ui_menu_entry_t
Menu entry struct used by various menu widgets.
Control menu widget type definition.
struct ui_controlmenu_s ui_controlmenu_t
Control menu type.
Definition controlmenu.h:62
ui_controlmenu_t * CreateControlMenu(unsigned short tag, short x0, short y0, short x1, short y1, const ui_menu_entry_t *entries, const UTF16 *title, unsigned short default_index, int layout_mode, unsigned short selection_policy)
Create a control menu widget.
void PCONTROLMENU_handleEvent(ui_controlmenu_t *self, ui_event_t *event)
Default event handler of control menu.
void PCONTROLMENU_draw(ui_controlmenu_t *self)
Default draw callback of control menu.