20 lines
No EOL
339 B
C++
20 lines
No EOL
339 B
C++
#include "ScreenBase.hpp"
|
|
#include <memory>
|
|
#include <stack>
|
|
|
|
namespace UI::Screen {
|
|
|
|
class Manager {
|
|
public:
|
|
static Manager &getInstance();
|
|
|
|
void pushScreen(std::unique_ptr<UI::Screen::Base> aPage);
|
|
|
|
private:
|
|
Manager();
|
|
static Manager mManager;
|
|
|
|
std::stack<std::unique_ptr<UI::Screen::Base>> pages;
|
|
};
|
|
|
|
} // namespace UI::Screen
|