diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-07 21:32:41 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-07 21:32:41 +0200 |
commit | 7a5ede33b58b8935ce33c5363f7d500ba8663c63 (patch) | |
tree | 21b4de29d0d73307d1b18490999135494b86713d /plugingui/combobox.h | |
parent | cf7e6c51abf82f2ccc3ed33b8bcc162178e2b5ea (diff) |
Update all use of widget_*.png to new TexturedBox.
Diffstat (limited to 'plugingui/combobox.h')
-rw-r--r-- | plugingui/combobox.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/plugingui/combobox.h b/plugingui/combobox.h index bb92fcd..2cf0eba 100644 --- a/plugingui/combobox.h +++ b/plugingui/combobox.h @@ -33,10 +33,14 @@ #include "font.h" #include "listboxthin.h" #include "painter.h" +#include "texturedbox.h" -namespace GUI { +namespace GUI +{ -class ComboBox : public Widget { +class ComboBox + : public Widget +{ public: ComboBox(Widget* parent); ~ComboBox(); @@ -58,7 +62,10 @@ public: Notifier<std::string, std::string> valueChangedNotifier; private: - Painter::Box box; + TexturedBox box{getImageCache(), ":widget.png", + 0, 0, // atlas offset (x, y) + 7, 1, 7, // dx1, dx2, dx3 + 7, 63, 7}; // dy1, dy2, dy3 void listboxSelectHandler(); |