OMOTE/Platformio/OmoteUI/core/ScreenManager.hpp
MatthewColvin 40052d31b7 add base classes for screens and widgets
along with screen manager to allow place to manage multiple screens
2023-09-16 13:07:14 -05:00

20 lines
No EOL
323 B
C++

#include "ScreenBase.hpp"
#include <stack>
#include <memory>
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;
};
}