blob: 5252897dbe22c756474910198adc41b9ce580381 (
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
|
#ifndef QTGRAPHICS_H
#define QTGRAPHICS_H
#include <jni.h>
#include <QPainter>
#include <QPaintDevice>
#include <QPen>
#include <QBrush>
class GraphicsPainter : public QPainter
{
public:
QPen *currentPen;
QBrush *currentBrush;
QColor *currentColor;
GraphicsPainter(QPaintDevice *dev) : QPainter( dev )
{
currentPen = new QPen();
currentBrush = new QBrush();
currentColor = new QColor();
}
};
GraphicsPainter *getPainter( JNIEnv *env, jobject obj );
#endif
|