diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-20 20:03:18 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-20 20:03:18 +0100 |
commit | 3734f5d3c741e877c49ff1c99ce67cb4a764023b (patch) | |
tree | 5fcbcc3d084d5c8d49bd40d726481ca92d54bd5e /plugingui/button.h | |
parent | c1973bc4d4ec9d8d18a690359a2d649905e35264 (diff) |
Only initialise Font once.
Diffstat (limited to 'plugingui/button.h')
-rw-r--r-- | plugingui/button.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugingui/button.h b/plugingui/button.h index e33c3a8..e5de6f1 100644 --- a/plugingui/button.h +++ b/plugingui/button.h @@ -31,6 +31,7 @@ #include "widget.h" #include "painter.h" #include "notifier.h" +#include "font.h" namespace GUI { @@ -69,6 +70,8 @@ private: std::string text; + Font font{":fontemboss.png"}; + state_t draw_state; state_t button_state; }; |