b15f/driver/ui/view_main.h
Tristan Krause 793f8a8370 basic ui
2019-04-04 13:19:11 +02:00

25 lines
451 B
C++

#ifndef VIEW_MAIN_H
#define VIEW_MAIN_H
#include <vector>
#include <string>
#include "view.h"
class ViewMain : public View
{
public:
virtual void draw(void) override;
virtual std::function<void(int)> keypress(int& key) override;
private:
constexpr static int choice_offset_x = 2;
constexpr static int choice_offset_y = 3;
size_t selection = 0;
const std::vector<std::string> choices = {
"Beobachten",
"Exit"
};
};
#endif // VIEW_MAIN_H