GUI: ViewDispatcher API. More...
Go to the source code of this file.
Data Structures | |
| struct | ViewDispatcher |
Functions | |
| void | view_dispatcher_draw_callback (Canvas *canvas, void *context) |
| The Callback that is bound to the ViewPort, called on view_port_draw. | |
| void | view_dispatcher_input_callback (InputEvent *event, void *context) |
| The Callback that is bound to the parent view_port's input. | |
| void | view_dispatcher_handle_input (ViewDispatcher *view_dispatcher, InputEvent *event) |
| Input handler. | |
| void | view_dispatcher_handle_tick_event (void *context) |
| Tick handler. | |
| void | view_dispatcher_handle_custom_event (ViewDispatcher *view_dispatcher, uint32_t event) |
| Custom event handler. | |
| void | view_dispatcher_set_current_view (ViewDispatcher *view_dispatcher, View *view) |
| Set current view, dispatches view enter and exit. | |
| void | view_dispatcher_update (View *view, void *context) |
| ViewDispatcher update event. | |
| void | view_dispatcher_run_event_callback (FuriEventLoopObject *object, void *context) |
| ViewDispatcher run event loop event callback. | |
| void | view_dispatcher_run_input_callback (FuriEventLoopObject *object, void *context) |
| ViewDispatcher run event loop input callback. | |
GUI: ViewDispatcher API.
| void view_dispatcher_draw_callback | ( | Canvas * | canvas, |
| void * | context ) |
The Callback that is bound to the ViewPort, called on view_port_draw.
Dispatches to the current_view.
To be used by the GUI, called on tree redraw.
| canvas | canvas to draw at |
| context | view dispatcher pointer. |
| void view_dispatcher_handle_custom_event | ( | ViewDispatcher * | view_dispatcher, |
| uint32_t | event ) |
Custom event handler.
Events are generated by view_dispatcher_send_custom_event, and relayed through event_loop and event_queue.
| view_dispatcher | view dispatcher pointer |
| event | an event id. commonly used with the scene_manager, in which case this value is passed into on_event_handler |
| void view_dispatcher_handle_input | ( | ViewDispatcher * | view_dispatcher, |
| InputEvent * | event ) |
Input handler.
Events are generated by view_port::view_port_input, and relayed through event_loop and input_queue.
| view_dispatcher | view dispatcher pointer |
| event | the input event |
| void view_dispatcher_handle_tick_event | ( | void * | context | ) |
Tick handler.
Events are generated by view_port::view_port_input, and relayed through event_loop and input_queue.
| context | view dispatcher pointer |
| void view_dispatcher_input_callback | ( | InputEvent * | event, |
| void * | context ) |
The Callback that is bound to the parent view_port's input.
Pushes items into the input_queue, to be dispatched via the event_loop.
| event | the input event |
| context | view dispatcher pointer. |