ScreenManager v1.0.0
A lightweight C++ library for managing application screens, navigation, transitions and display timing.
ScreenTransition.h
1#ifndef SCREEN_TRANSITION_H
2#define SCREEN_TRANSITION_H
3
4#include <stdint.h>
5
6
11enum class TransitionIntentType : uint8_t {
12 None,
13 Auto,
14 Next,
15 Back,
16 Init,
17 Force
18};
19
29 constexpr TransitionIntent( TransitionIntentType t = TransitionIntentType::None, uint8_t r = 0)
30 : type(t),
31 requested(r)
32 {}
33
34 TransitionIntentType type;
35 uint8_t requested;
36};
37
38#endif
The type of transition and an optional requested screen name.
Definition: ScreenTransition.h:24
constexpr TransitionIntent(TransitionIntentType t=TransitionIntentType::None, uint8_t r=0)
Must have a contructor to use defaults in C++11 because 'aggregate` _O_/.
Definition: ScreenTransition.h:29
TransitionIntentType type
The requested transition type.
Definition: ScreenTransition.h:34
uint8_t requested
Explicit requested ScreenId.
Definition: ScreenTransition.h:35