mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-24 19:53:08 +00:00
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include <gui/gui.h>
|
|
#include "../types/plugin_state.h"
|
|
#include "../types/plugin_event.h"
|
|
#include "totp_scenes_enum.h"
|
|
|
|
/**
|
|
* @brief Activates scene
|
|
* @param plugin_state application state
|
|
* @param scene scene to be activated
|
|
* @param context scene context to be passed to the scene activation method
|
|
*/
|
|
void totp_scene_director_activate_scene(PluginState* const plugin_state, Scene scene);
|
|
|
|
/**
|
|
* @brief Deactivate current scene
|
|
* @param plugin_state application state
|
|
*/
|
|
void totp_scene_director_deactivate_active_scene(PluginState* const plugin_state);
|
|
|
|
/**
|
|
* @brief Renders current scene
|
|
* @param canvas canvas to render at
|
|
* @param plugin_state application state
|
|
*/
|
|
void totp_scene_director_render(Canvas* const canvas, PluginState* const plugin_state);
|
|
|
|
/**
|
|
* @brief Handles application event for the current scene
|
|
* @param event event to be handled
|
|
* @param plugin_state application state
|
|
* @return \c true if event handled and applilcation should continue; \c false if application should be closed
|
|
*/
|
|
bool totp_scene_director_handle_event(PluginEvent* const event, PluginState* const plugin_state);
|