mirror of
https://github.com/2003scape/deep-c-rsc.git
synced 2024-03-22 05:49:51 -04:00
27 lines
484 B
C++
27 lines
484 B
C++
#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
|