Olive
qpainterwrapper.h
1 #ifndef QPAINTERWRAPPER_H
2 #define QPAINTERWRAPPER_H
3 
4 #include <QObject>
5 
6 class QPainter;
7 
8 class QPainterWrapper : public QObject {
9  Q_OBJECT
10 public:
12  QImage* img;
13  QPainter* painter;
14 public slots:
15  void fill(const QString& color);
16  void fillRect(int x, int y, int width, int height, const QString& brush);
17  void drawRect(int x, int y, int width, int height);
18  void setPen(const QString& pen);
19  void setBrush(const QString& brush);
20 };
21 
22 extern QPainterWrapper painter_wrapper;
23 
24 #endif // QPAINTERWRAPPER_H
Definition: qpainterwrapper.h:8