resize & signal handler
This commit is contained in:
parent
793f8a8370
commit
9f4aebef64
9 changed files with 117 additions and 30 deletions
|
@ -7,10 +7,16 @@ class ViewInfo : public View
|
|||
{
|
||||
public:
|
||||
ViewInfo(void);
|
||||
virtual void setText(std::string text);
|
||||
virtual void setLabelClose(std::string label);
|
||||
virtual void draw(void) override;
|
||||
virtual std::function<void(int)> keypress(int& key) override;
|
||||
|
||||
private:
|
||||
std::string text;
|
||||
std::string label_close;
|
||||
int close_offset_x = 0;
|
||||
int close_offset_y = 0;
|
||||
constexpr static int text_offset_x = 2;
|
||||
constexpr static int text_offset_y = 3;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue