summaryrefslogtreecommitdiff
path: root/plugingui/textedit.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-06-07 21:32:41 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-06-07 21:32:41 +0200
commit7a5ede33b58b8935ce33c5363f7d500ba8663c63 (patch)
tree21b4de29d0d73307d1b18490999135494b86713d /plugingui/textedit.h
parentcf7e6c51abf82f2ccc3ed33b8bcc162178e2b5ea (diff)
Update all use of widget_*.png to new TexturedBox.
Diffstat (limited to 'plugingui/textedit.h')
-rw-r--r--plugingui/textedit.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugingui/textedit.h b/plugingui/textedit.h
index 6e8fadf..ed93ae5 100644
--- a/plugingui/textedit.h
+++ b/plugingui/textedit.h
@@ -33,7 +33,7 @@
#include "font.h"
#include "painter.h"
#include "scrollbar.h"
-
+#include "texturedbox.h"
#include "notifier.h"
namespace GUI {
@@ -64,7 +64,11 @@ protected:
private:
void scrolled(int value);
- 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
+
ScrollBar scroll;
Font font;