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.cc | |
parent | 195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (diff) |
New TexturedBox class.
Diffstat (limited to 'plugingui/painter.cc')
-rw-r--r-- | plugingui/painter.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugingui/painter.cc b/plugingui/painter.cc index 71e4b33..7d55294 100644 --- a/plugingui/painter.cc +++ b/plugingui/painter.cc @@ -30,7 +30,8 @@ #include <cmath> -namespace GUI { +namespace GUI +{ Painter::Painter(Widget& widget) : widget(widget) @@ -345,7 +346,7 @@ void Painter::drawFilledCircle(int cx, int cy, int radius) } } -void Painter::drawImage(int x0, int y0, const Image& image) +void Painter::drawImage(int x0, int y0, const Drawable& image) { size_t fw = image.width(); size_t fh = image.height(); @@ -371,7 +372,7 @@ void Painter::drawImage(int x0, int y0, const Image& image) } } -void Painter::drawImageStretched(int x0, int y0, const Image& image, +void Painter::drawImageStretched(int x0, int y0, const Drawable& image, int width, int height) { if((width < 1) || (height < 1)) |