summaryrefslogtreecommitdiff
path: root/metawatch/metawatchpaintengine.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-18 04:26:20 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-18 04:26:20 +0200
commitc42d5abff1f5f51facc169dd593725d819c4c868 (patch)
tree9aa8bdef88bf89561c7726948541a1ba3906b81e /metawatch/metawatchpaintengine.h
parentf225345d4de3b198a557fe3566f9630163e76d51 (diff)
downloadsowatch-c42d5abff1f5f51facc169dd593725d819c4c868.tar.gz
sowatch-c42d5abff1f5f51facc169dd593725d819c4c868.zip
separation into lib and plugins complete
Diffstat (limited to 'metawatch/metawatchpaintengine.h')
-rw-r--r--metawatch/metawatchpaintengine.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/metawatch/metawatchpaintengine.h b/metawatch/metawatchpaintengine.h
index efc3d6e..c3b7466 100644
--- a/metawatch/metawatchpaintengine.h
+++ b/metawatch/metawatchpaintengine.h
@@ -2,18 +2,20 @@
#define METAWATCHPAINTENGINE_H
#include <QtCore/QRect>
+#include "metawatch.h"
#include "watchpaintengine.h"
namespace sowatch
{
-class MetaWatch;
-
/** This WatchPaintEngine accelerates fillRects by using the MetaWatch's template command. */
class MetaWatchPaintEngine : public WatchPaintEngine
{
public:
- explicit MetaWatchPaintEngine(MetaWatch* watch, QImage* image);
+ explicit MetaWatchPaintEngine(MetaWatch* watch);
+
+ bool begin(QPaintDevice *pdev);
+ bool end();
void drawRects(const QRectF *rects, int rectCount);
void drawRects(const QRect *rects, int rectCount);
@@ -24,6 +26,7 @@ protected:
bool fillsEntireImage(const QRect& rect);
MetaWatch* _watch;
+ MetaWatch::Mode _mode;
QRect _imageRect;
bool _isBrushBlack;
bool _isBrushWhite;