summaryrefslogtreecommitdiff
path: root/plugingui/listboxthin.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-06-07 22:21:47 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-06-07 22:21:47 +0200
commitcb51ef44e8f3b6461e608171eb3468bc15a696da (patch)
tree6fabacaa283323034dc6dbd11acd0082f65cac82 /plugingui/listboxthin.h
parent7a5ede33b58b8935ce33c5363f7d500ba8663c63 (diff)
Update all use of thinlistbox_*.png to new TexturedBox.
Diffstat (limited to 'plugingui/listboxthin.h')
-rw-r--r--plugingui/listboxthin.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugingui/listboxthin.h b/plugingui/listboxthin.h
index 1617234..3f429f6 100644
--- a/plugingui/listboxthin.h
+++ b/plugingui/listboxthin.h
@@ -34,10 +34,14 @@
#include "widget.h"
#include "painter.h"
#include "listboxbasic.h"
+#include "texturedbox.h"
-namespace GUI {
+namespace GUI
+{
-class ListBoxThin : public Widget {
+class ListBoxThin
+ : public Widget
+{
public:
ListBoxThin(Widget *parent);
~ListBoxThin();
@@ -62,7 +66,10 @@ public:
private:
ListBoxBasic basic;
- Painter::Box box;
+ TexturedBox box{getImageCache(), ":thinlistbox.png",
+ 0, 0, // atlas offset (x, y)
+ 1, 1, 1, // dx1, dx2, dx3
+ 1, 1, 1}; // dy1, dy2, dy3
};
} // GUI::