File: qpainterwrapper.h

package info (click to toggle)
olive-editor 20181223-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,844 kB
  • sloc: cpp: 20,147; xml: 315; ansic: 16; makefile: 11
file content (24 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef QPAINTERWRAPPER_H
#define QPAINTERWRAPPER_H

#include <QObject>

class QPainter;

class QPainterWrapper : public QObject {
	Q_OBJECT
public:
	QPainterWrapper();
	QImage* img;
	QPainter* painter;
public slots:
	void fill(const QString& color);
	void fillRect(int x, int y, int width, int height, const QString& brush);
	void drawRect(int x, int y, int width, int height);
	void setPen(const QString& pen);
	void setBrush(const QString& brush);
};

extern QPainterWrapper painter_wrapper;

#endif // QPAINTERWRAPPER_H