|
5 | 5 | #include "../types/plugin_event.h"
|
6 | 6 | #include "totp_scenes_enum.h"
|
7 | 7 |
|
| 8 | +/** |
| 9 | + * @brief Activates scene |
| 10 | + * @param plugin_state application state |
| 11 | + * @param scene scene to be activated |
| 12 | + * @param context scene context to be passed to the scene activation method |
| 13 | + */ |
8 | 14 | void totp_scene_director_activate_scene(
|
9 | 15 | PluginState* const plugin_state,
|
10 | 16 | Scene scene,
|
11 | 17 | const void* context);
|
| 18 | + |
| 19 | +/** |
| 20 | + * @brief Deactivate current scene |
| 21 | + * @param plugin_state application state |
| 22 | + */ |
12 | 23 | void totp_scene_director_deactivate_active_scene(PluginState* const plugin_state);
|
| 24 | + |
| 25 | +/** |
| 26 | + * @brief Initializes all the available scenes |
| 27 | + * @param plugin_state application state |
| 28 | + */ |
13 | 29 | void totp_scene_director_init_scenes(PluginState* const plugin_state);
|
| 30 | + |
| 31 | +/** |
| 32 | + * @brief Renders current scene |
| 33 | + * @param canvas canvas to render at |
| 34 | + * @param plugin_state application state |
| 35 | + */ |
14 | 36 | void totp_scene_director_render(Canvas* const canvas, PluginState* const plugin_state);
|
| 37 | + |
| 38 | +/** |
| 39 | + * @brief Disposes all the available scenes |
| 40 | + * @param plugin_state application state |
| 41 | + */ |
15 | 42 | void totp_scene_director_dispose(const PluginState* const plugin_state);
|
| 43 | + |
| 44 | +/** |
| 45 | + * @brief Handles application event for the current scene |
| 46 | + * @param event event to be handled |
| 47 | + * @param plugin_state application state |
| 48 | + * @return \c true if event handled and applilcation should continue; \c false if application should be closed |
| 49 | + */ |
16 | 50 | bool totp_scene_director_handle_event(PluginEvent* const event, PluginState* const plugin_state);
|
0 commit comments