b15f/driver/ui/view_info.h

25 lines
510 B
C
Raw Normal View History

2019-04-04 11:19:11 +00:00
#ifndef VIEW_INFO
#define VIEW_INFO
#include "view.h"
class ViewInfo : public View
{
public:
ViewInfo(void);
2019-04-04 14:16:28 +00:00
virtual void setText(std::string text);
virtual void setLabelClose(std::string label);
2019-04-04 11:19:11 +00:00
virtual void draw(void) override;
virtual std::function<void(int)> keypress(int& key) override;
private:
2019-04-04 14:16:28 +00:00
std::string text;
std::string label_close;
int close_offset_x = 0;
int close_offset_y = 0;
2019-04-04 11:19:11 +00:00
constexpr static int text_offset_x = 2;
constexpr static int text_offset_y = 3;
};
#endif // VIEW_INFO