diff options
Diffstat (limited to 'libjava/classpath/native/jni/qt-peer/qtgraphics.h')
-rw-r--r-- | libjava/classpath/native/jni/qt-peer/qtgraphics.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libjava/classpath/native/jni/qt-peer/qtgraphics.h b/libjava/classpath/native/jni/qt-peer/qtgraphics.h new file mode 100644 index 000000000..5252897db --- /dev/null +++ b/libjava/classpath/native/jni/qt-peer/qtgraphics.h @@ -0,0 +1,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 |