Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
group.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
11
12#ifndef __MUTEKI_UI_FRAMEWORK_GROUP_H__
13#define __MUTEKI_UI_FRAMEWORK_GROUP_H__
14
15#include "../types/framework.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
27extern void PGROUP_draw(ui_group_t *self);
28
36extern void PGROUP_handleEvent(ui_group_t *self, ui_event_t *event);
37
46extern void PGROUP_insert(ui_group_t *self, ui_component_t *child);
47
54extern void PGROUP_redraw(ui_group_t *self);
55
63extern void PGROUP_setCurrent(ui_group_t *self, ui_component_t *child);
64
76extern void PGROUP_setState(ui_group_t *self, unsigned short mask, bool set);
77
90extern int PGROUP_execute(ui_group_t *self);
91
99
108extern void Destroy(ui_group_t *group);
109
116extern void SetDeskBoxReturn(ui_group_t *self, int execution_result);
117
127extern int ExecView(ui_group_t *group);
128
137extern int SetExitWordVal(int val);
138
145extern int GetExitWordVal(void);
146
155extern void Delete(ui_group_t *group, ui_component_t *child);
156#ifdef __cplusplus
157} // extern "C"
158#endif
159
160#endif // __MUTEKI_UI_FRAMEWORK_GROUP_H__
UI framework type (component, group, event) definitions.
struct ui_group_s ui_group_t
ui_group_s
Definition framework.h:87
struct ui_event_std_s ui_event_t
ui_event_std_s
Definition framework.h:96
struct ui_component_s ui_component_t
ui_component_s
Definition framework.h:71
void Destroy(ui_group_t *group)
Dispose a group component and free up its memory.
void Delete(ui_group_t *group, ui_component_t *child)
Remove a child from group.
void PGROUP_handleEvent(ui_group_t *self, ui_event_t *event)
Handle events.
void PGROUP_setState(ui_group_t *self, unsigned short mask, bool set)
Operate on the component state bitfield.
int SetExitWordVal(int val)
Set the exit word.
void PGROUP_draw(ui_group_t *self)
Draw the group and its children.
int PGROUP_execute(ui_group_t *self)
Execute a group container.
int GetExitWordVal(void)
Get the current exit word.
void SetDeskBoxReturn(ui_group_t *self, int execution_result)
Set the group execution result.
void PGROUP_setCurrent(ui_group_t *self, ui_component_t *child)
Set the current component ring head to child.
void PGROUP_insert(ui_group_t *self, ui_component_t *child)
Insert a component to the component ring.
ui_component_t * PGROUP_preView(ui_group_t *self)
Find and return the component that has the ui_group_t::current component as its next component.
int ExecView(ui_group_t *group)
Activates a group.
void PGROUP_redraw(ui_group_t *self)
Redraw the child components.