b15f/driver/ui/view_info.h

26 lines
531 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);
2019-04-05 06:33:31 +00:00
virtual void setLabelClose(std::string label);;
2019-04-05 12:33:15 +00:00
virtual void setCall(call_t call);
2019-04-04 11:19:11 +00:00
virtual void draw(void) override;
2019-04-05 12:33:15 +00:00
virtual call_t keypress(int& key) override;
2019-04-04 11:19:11 +00:00
2019-04-05 06:33:31 +00:00
protected:
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