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