summaryrefslogtreecommitdiff
path: root/liveview/liveviewpaintengine.h
blob: f94c133678d47c492aed3f9bcecb750e159d45fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef LIVEVIEWPAINTENGINE_H
#define LIVEVIEWPAINTENGINE_H

#include <sowatch.h>
#include "liveview.h"

namespace sowatch
{

class LiveViewPaintEngine : public WatchPaintEngine
{
public:
	LiveViewPaintEngine();

	bool begin(QPaintDevice *pdev);
	bool end();

	void drawRects(const QRectF *rects, int rectCount);
	void drawRects(const QRect *rects, int rectCount);

	void updateState(const QPaintEngineState &state);

protected:
	bool fillsEntireImage(const QRect& rect);

	LiveView* _watch;
	bool _isBrushBlack;
};

}

#endif // LIVEVIEWPAINTENGINE_H