screen concept

This commit is contained in:
2023-07-26 12:24:18 +02:00
parent e92c7cbfa0
commit 3a1c15f313
7 changed files with 94 additions and 1 deletions

23
src/start_screen.cpp Normal file
View File

@ -0,0 +1,23 @@
#include "./start_screen.hpp"
#include "./main_screen.hpp"
#include <memory>
StartScreen::StartScreen(void) {
}
Screen* StartScreen::poll(bool&) {
// TODO: imgui tox profile selector?
// +------------------------
// | +------+ +--------
// | | ICON | | fileselector/dropdown?
// | | | | password input
// | +------+ +--------
// +------------------------
auto new_screen = std::make_unique<MainScreen>("tomato.tox");
return new_screen.release();
}