B15F Board 15 Famulus Edition

view_info.h
1 #ifndef VIEW_INFO
2 #define VIEW_INFO
3
4 #include "view.h"
5
8 class ViewInfo : public View
9 {
10 public:
11 ViewInfo(void);
12 virtual void setText(std::string text);
13 virtual void setLabelClose(std::string label);;
14 virtual void setCall(call_t call);
15 virtual void draw(void) override;
16 virtual call_t keypress(int& key) override;
17
18 protected:
19 std::string text;
20 std::string label_close;
21 int close_offset_x = 0;
22 int close_offset_y = 0;
23 constexpr static int text_offset_x = 2;
24 constexpr static int text_offset_y = 3;
25 };
26
27 #endif // VIEW_INFO
ViewInfo
Definition: view_info.h:8
View
Definition: view.h:19