From cec1d9ea562e3d52c98f1219db5e186943f2f0d6 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 12 Feb 2017 11:07:22 +0100 Subject: Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling. --- plugingui/painter.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'plugingui/painter.h') diff --git a/plugingui/painter.h b/plugingui/painter.h index 7e1fede..3f3c2bb 100644 --- a/plugingui/painter.h +++ b/plugingui/painter.h @@ -28,25 +28,23 @@ #include -#include "widget.h" #include "colour.h" -#include "pixelbuffer.h" -#include "font.h" -#include "drawable.h" -#include "texture.h" -#include "image.h" namespace GUI { +class PixelBufferAlpha; +class Font; +class Drawable; +class Image; +class Canvas; + class Painter { public: Painter(Canvas& canvas); ~Painter(); - void flush(); - void setColour(const Colour& colour); void drawLine(int x1, int y1, int x2, int y2); -- cgit v1.2.3