tomato/src/start_screen.hpp

31 lines
542 B
C++
Raw Normal View History

2023-07-26 12:24:18 +02:00
#pragma once
#include "./screen.hpp"
#include "./file_selector.hpp"
#include <vector>
#include <string>
2023-07-26 20:09:57 +02:00
// fwd
extern "C" {
struct SDL_Renderer;
} // C
2023-07-26 12:24:18 +02:00
struct StartScreen final : public Screen {
2023-07-26 20:09:57 +02:00
SDL_Renderer* _renderer;
FileSelector _fss;
2023-08-03 15:03:12 +02:00
std::string tox_profile_path {"tomato.tox"};
std::vector<std::string> queued_plugin_paths;
2023-07-26 20:09:57 +02:00
StartScreen(void) = delete;
StartScreen(SDL_Renderer* renderer);
2023-07-26 12:24:18 +02:00
~StartScreen(void) = default;
// return nullptr if not next
// sets bool quit to true if exit
Screen* poll(bool&) override;
};