ScreenManager v1.0.0
A lightweight C++ library for managing application screens, navigation, transitions and display timing.
IManagedScreen.h
1#ifndef IMANAGED_SCREEN_H
2#define IMANAGED_SCREEN_H
3
4#include <stdint.h>
5
12//class IManagedScreen : public BaseWidget {
14
15 public:
16
17 virtual ~IManagedScreen() = default;
18
30 virtual void begin() = 0;
31
36 virtual void start() = 0;
37
41 virtual void draw() = 0;
42
50 virtual bool end() = 0;
51
56 virtual void pause() {}
57
62 virtual void resume() {
63 start();
64 }
65
66
67};
68
69
70
71#endif
Interface for a screen that can be managed by ScreenManager. A 'Screen' is a combination of the 'View...
Definition: IManagedScreen.h:13
virtual void draw()=0
Called at defined FPS only whan screen is active.
virtual void begin()=0
Called after a screen is created but before start()
virtual void start()=0
Called by ScreenManager when this screen is set active. This is where the screen should become the ap...
virtual void resume()
Reserved for future use. Resume a screen (screen should re-acquire context)
Definition: IManagedScreen.h:62
virtual bool end()=0
Called by ScreenManager before the next screen is set active.
virtual void pause()
Reserved for future use. Pause a screen and hand context to an overlay.
Definition: IManagedScreen.h:56