Flipper Developer Docs
Loading...
Searching...
No Matches
desktop_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) DesktopScene##id,
7
typedef
enum
{
8
#include "desktop_scene_config.h"
9
DesktopSceneNum,
10
} DesktopScene;
11
#undef ADD_SCENE
12
13
extern
const
SceneManagerHandlers
desktop_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 "desktop_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 "desktop_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 "desktop_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
services
desktop
scenes
desktop_scene.h
Generated by
1.12.0