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/painter.h | |
parent | 195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (diff) |
New TexturedBox class.
Diffstat (limited to 'plugingui/painter.h')
-rw-r--r-- | plugingui/painter.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/plugingui/painter.h b/plugingui/painter.h index 42426bc..233d157 100644 --- a/plugingui/painter.h +++ b/plugingui/painter.h @@ -32,11 +32,15 @@ #include "colour.h" #include "pixelbuffer.h" #include "font.h" +#include "drawable.h" +#include "texture.h" #include "image.h" -namespace GUI { +namespace GUI +{ -class Painter { +class Painter +{ public: Painter(Widget& widget); ~Painter(); @@ -53,8 +57,8 @@ public: void drawPoint(int x, int y); void drawCircle(int x, int y, double r); void drawFilledCircle(int x, int y, int r); - void drawImage(int x, int y, const Image& image); - void drawImageStretched(int x, int y, const Image& image, + void drawImage(int x, int y, const Drawable& image); + void drawImageStretched(int x, int y, const Drawable& image, int width, int height); typedef struct { |