|
Muteki
EABI code execution on Besta® RTOS devices.
|
Component group/container methods. More...
#include "../types/framework.h"Go to the source code of this file.
Functions | |
| void | PGROUP_draw (ui_group_t *self) |
| Draw the group and its children. | |
| void | PGROUP_handleEvent (ui_group_t *self, ui_event_t *event) |
| Handle events. | |
| void | PGROUP_insert (ui_group_t *self, ui_component_t *child) |
| Insert a component to the component ring. | |
| void | PGROUP_redraw (ui_group_t *self) |
| Redraw the child components. | |
| void | PGROUP_setCurrent (ui_group_t *self, ui_component_t *child) |
| Set the current component ring head to child. | |
| void | PGROUP_setState (ui_group_t *self, unsigned short mask, bool set) |
| Operate on the component state bitfield. | |
| int | PGROUP_execute (ui_group_t *self) |
| Execute a group container. | |
| 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. | |
| void | Destroy (ui_group_t *group) |
| Dispose a group component and free up its memory. | |
| void | SetDeskBoxReturn (ui_group_t *self, int execution_result) |
| Set the group execution result. | |
| int | ExecView (ui_group_t *group) |
| Activates a group. | |
| int | SetExitWordVal (int val) |
| Set the exit word. | |
| int | GetExitWordVal (void) |
| Get the current exit word. | |
| void | Delete (ui_group_t *group, ui_component_t *child) |
| Remove a child from group. | |
Component group/container methods.
Methods of a ui_group_t but as syscalls.
|
extern |
Remove a child from group.
Finds and unlinks the specified child component from the group's component ring.
| group | The group object. |
| child | Target child to remove. |
|
extern |
Dispose a group component and free up its memory.
This function sets the exit word to 0, sends itself a destroy event, restores the exit value, and frees up the memory occupied by this component.
| group | The group object to be freed. |
|
extern |
Activates a group.
This manages the global navigation state and calls the ui_group_t::on_exec callback, which starts a local event loop that routes all events through the group. Returns ui_group_t::execution_result when it is set to a non-zero value or, in case when exit work is permitted, when exit word is set to a non-zero value.
| group | The group object. |
|
extern |
Get the current exit word.
|
extern |
Draw the group and its children.
| self | The group object. |
|
extern |
Execute a group container.
This starts a local event loop that synchronously checks for new events using GetEvent(), dispatches any received events to its children, and checks the ui_group_t::execution_result for any non-zero return values.
When the container allows exit word processing and the exit word has been set to a non-zero value, the execution may terminate early with an execution result of 0.
| self | The group object. |
|
extern |
Handle events.
| self | The group object. |
| event | The incoming event object. |
|
extern |
Insert a component to the component ring.
This method inserts the component to the tail of the component ring relative to ui_group_t::current.
| self | The group object. |
| child | The child component. |
|
extern |
Find and return the component that has the ui_group_t::current component as its next component.
| self | The group object. |
|
extern |
Redraw the child components.
| self | The group object. |
|
extern |
Set the current component ring head to child.
child must already form a ring with other components.
| self | The group object. |
| child | The child component that will become the component ring head. |
|
extern |
Operate on the component state bitfield.
This calls PVIEW_setState() and also calls the virtual method ui_group_t::on_set_current with ui_group_t::current.
| self | The group object. |
| mask | Bitmask that corresponds bits in the component state. |
| set | Any state bits that has a corresponding 1 bit in the bitmask will be set when this is true. If this is false, they will be cleared instead. |
|
extern |
Set the group execution result.
| self | The group object. |
| execution_result | The new execution result. |
|
extern |
Set the exit word.
Setting this to a non-zero value (usually 1) causes eligible components to exit early after an event handling callback.
| val | The new value. |