Flipper Developer Docs
Loading...
Searching...
No Matches
hid_scene.h
1
#pragma once
2
3
#include <
gui/scene_manager.h
>
4
5
// Generate scene id and total number
6
#define ADD_SCENE(prefix, name, id) HidScene##id,
7
typedef
enum
{
8
#include "hid_scene_config.h"
9
HidSceneNum,
10
} HidScene;
11
#undef ADD_SCENE
12
13
extern
const
SceneManagerHandlers
hid_scene_handlers;
14
15
// Generate scene on_enter handlers declaration
16
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_enter(void*);
17
#include "hid_scene_config.h"
18
#undef ADD_SCENE
19
20
// Generate scene on_event handlers declaration
21
#define ADD_SCENE(prefix, name, id) \
22
bool prefix##_scene_##name##_on_event(void* context, SceneManagerEvent event);
23
#include "hid_scene_config.h"
24
#undef ADD_SCENE
25
26
// Generate scene on_exit handlers declaration
27
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_exit(void* context);
28
#include "hid_scene_config.h"
29
#undef ADD_SCENE
scene_manager.h
GUI: SceneManager API.
SceneManagerHandlers
Scene Manager configuration structure Contains array of Scene handlers.
Definition
scene_manager.h:42
applications
system
hid_app
scenes
hid_scene.h
Generated by
1.12.0