Loading...
Searching...
No Matches
scenes.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) BleBeaconAppScene##id,
7typedef enum {
8#include "scene_config.h"
9 BleBeaconAppSceneNum,
10} BleBeaconAppScene;
11#undef ADD_SCENE
12
13extern const SceneManagerHandlers ble_beacon_app_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 "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 "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 "scene_config.h"
29#undef ADD_SCENE
GUI: SceneManager API.
Scene Manager configuration structure Contains array of Scene handlers.
Definition scene_manager.h:42