changing the text on a label does not require a full repaint
This commit is contained in:
parent
156d876364
commit
9efac54ffa
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public:
|
||||||
~Label() {}
|
~Label() {}
|
||||||
|
|
||||||
std::string &get_text() { return m_text; }
|
std::string &get_text() { return m_text; }
|
||||||
void set_text(std::string text) { m_text = text; wants_full_repaint(); }
|
void set_text(std::string text) { m_text = text; wants_repaint(); }
|
||||||
protected:
|
protected:
|
||||||
void on_paint();
|
void on_paint();
|
||||||
void on_init();
|
void on_init();
|
||||||
|
|
Loading…
Reference in a new issue