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_WIDGETS_CONTROLMENU_H__
12
#define __MUTEKI_UI_WIDGETS_CONTROLMENU_H__
13
14
#include "
../types/controlmenu.h
"
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
35
ui_controlmenu_t
*
CreateControlMenu
(
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
54
void
PCONTROLMENU_draw
(
ui_controlmenu_t
*self);
55
63
void
PCONTROLMENU_handleEvent
(
ui_controlmenu_t
*self,
ui_event_t
*event);
64
65
#ifdef __cplusplus
66
}
// extern "C"
67
#endif
68
69
#endif
// __MUTEKI_UI_WIDGETS_CONTROLMENU_H__
UTF16
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition
common.h:54
ui_event_t
struct ui_event_std_s ui_event_t
ui_event_std_s
Definition
framework.h:96
ui_menu_entry_t
struct ui_menu_entry_s ui_menu_entry_t
Menu entry struct used by various menu widgets.
controlmenu.h
Control menu widget type definition.
ui_controlmenu_t
struct ui_controlmenu_s ui_controlmenu_t
Control menu type.
Definition
controlmenu.h:62
CreateControlMenu
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.
PCONTROLMENU_handleEvent
void PCONTROLMENU_handleEvent(ui_controlmenu_t *self, ui_event_t *event)
Default event handler of control menu.
PCONTROLMENU_draw
void PCONTROLMENU_draw(ui_controlmenu_t *self)
Default draw callback of control menu.
include
muteki
ui
widgets
controlmenu.h
Generated by
1.18.0