diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-06 21:37:26 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-06 21:37:26 +0200 |
commit | d5ed45c25651f04dc3972047d279c8eeb4ca9e51 (patch) | |
tree | c9a424cfca2af7922a981e5e89bf3d24725aadea /plugingui/button.h | |
parent | 195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (diff) |
New TexturedBox class.
Diffstat (limited to 'plugingui/button.h')
-rw-r--r-- | plugingui/button.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/plugingui/button.h b/plugingui/button.h index 1bfeb2d..f409a55 100644 --- a/plugingui/button.h +++ b/plugingui/button.h @@ -33,6 +33,7 @@ #include "widget.h" #include "painter.h" #include "font.h" +#include "texturedbox.h" namespace GUI { @@ -61,8 +62,15 @@ protected: private: bool in_button{false}; - Painter::Box box_up; - Painter::Box box_down; + TexturedBox box_up{getImageCache(), ":pushbutton.png", + 0, 0, // atlas offset (x, y) + 11, 1, 11, // dx1, dx2, dx3 + 10, 72, 12}; // dy1, dy2, dy3 + + TexturedBox box_down{getImageCache(), ":pushbutton.png", + 23, 0, // atlas offset (x, y) + 11, 1, 11, // dx1, dx2, dx3 + 10, 72, 12}; // dy1, dy2, dy3 typedef enum { up, |