/***************************************************************************
                            QPainter.cpp -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qpainter.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QPainter.h>

class QPainterJBridge : public QPainter
{
public:
	QPainterJBridge() : QPainter() {}
	QPainterJBridge(const QPaintDevice* arg1, bool unclipped) : QPainter(arg1, unclipped) {}
	QPainterJBridge(const QPaintDevice* arg1, const QWidget* arg2, bool unclipped) : QPainter(arg1, arg2, unclipped) {}
	~QPainterJBridge() {QtSupport::qtKeyDeleted(this);}
//	void protected_initPaintDevice(bool force) {
//		QPainter::initPaintDevice(force);
//		return;
//	}
//	void protected_qt_format_text(const QFont& arg1, const QRect& r, int tf, const QString& str, int len, QRect* brect, int tabstops, int* tabarray, int tabarraylen, QTextParag* * internal, QPainter* painter) {
//		QPainter::qt_format_text(arg1, r, tf, str, len, brect, tabstops, tabarray, tabarraylen, internal, painter);
//		return;
//	}
};


JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_newQPainter__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPainterJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_newQPainter__Lorg_kde_qt_QPaintDeviceInterface_2Z(JNIEnv *env, jobject obj, jobject arg1, jboolean unclipped)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPainterJBridge((QPaintDevice*) QtSupport::paintDevice(env, arg1), (bool) unclipped));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_newQPainter__Lorg_kde_qt_QPaintDeviceInterface_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPainterJBridge((QPaintDevice*) QtSupport::paintDevice(env, arg1), FALSE));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_newQPainter__Lorg_kde_qt_QPaintDeviceInterface_2Lorg_kde_qt_QWidget_2Z(JNIEnv *env, jobject obj, jobject arg1, jobject arg2, jboolean unclipped)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPainterJBridge((QPaintDevice*) QtSupport::paintDevice(env, arg1), (QWidget*) QtSupport::getQt(env, arg2), (bool) unclipped));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_newQPainter__Lorg_kde_qt_QPaintDeviceInterface_2Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPainterJBridge((QPaintDevice*) QtSupport::paintDevice(env, arg1), (QWidget*) QtSupport::getQt(env, arg2), FALSE));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QPainter*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPainter_begin__Lorg_kde_qt_QPaintDeviceInterface_2Z(JNIEnv *env, jobject obj, jobject arg1, jboolean unclipped)
{
	return (jboolean) ((QPainterJBridge*) QtSupport::getQt(env, obj))->begin((QPaintDevice*) QtSupport::paintDevice(env, arg1), (bool) unclipped);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPainter_begin__Lorg_kde_qt_QPaintDeviceInterface_2(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jboolean) ((QPainterJBridge*) QtSupport::getQt(env, obj))->begin((QPaintDevice*) QtSupport::paintDevice(env, arg1), (bool) FALSE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPainter_begin__Lorg_kde_qt_QPaintDeviceInterface_2Lorg_kde_qt_QWidget_2Z(JNIEnv *env, jobject obj, jobject arg1, jobject arg2, jboolean unclipped)
{
	return (jboolean) ((QPainterJBridge*) QtSupport::getQt(env, obj))->begin((QPaintDevice*) QtSupport::paintDevice(env, arg1), (QWidget*) QtSupport::getQt(env, arg2), (bool) unclipped);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPainter_begin__Lorg_kde_qt_QPaintDeviceInterface_2Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	return (jboolean) ((QPainterJBridge*) QtSupport::getQt(env, obj))->begin((QPaintDevice*) QtSupport::paintDevice(env, arg1), (QWidget*) QtSupport::getQt(env, arg2), FALSE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPainter_end(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QPainterJBridge*) QtSupport::getQt(env, obj))->end();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_device(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QPainterJBridge*) QtSupport::getQt(env, obj))->device(), "org.kde.qt.QPaintDeviceInterface");
}

//JNIEXPORT jobject JNICALL
//Java_org_kde_qt_QPainter_internalGfx(JNIEnv *env, jobject obj)
//{
//	return (jobject) QtSupport::objectForQtKey(env, (void *)((QPainterJBridge*) QtSupport::getQt(env, obj))->internalGfx(), "org.kde.qt.QGfx");
//}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPainter_isActive(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QPainterJBridge*) QtSupport::getQt(env, obj))->isActive();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_flush__Lorg_kde_qt_QRegion_2I(JNIEnv *env, jobject obj, jobject region, jint cm)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->flush((QRegion&) *(QRegion *) QtSupport::getQt(env, region), (QPainter::CoordinateMode) cm);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_flush__Lorg_kde_qt_QRegion_2(JNIEnv *env, jobject obj, jobject region)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->flush((QRegion&) *(QRegion *) QtSupport::getQt(env, region), QPainter::CoordDevice);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_flush__(JNIEnv *env, jobject obj)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->flush();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_save(JNIEnv *env, jobject obj)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->save();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_restore(JNIEnv *env, jobject obj)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->restore();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_fontMetrics(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QFontMetrics (((QPainterJBridge*) QtSupport::getQt(env, obj))->fontMetrics()), "org.kde.qt.QFontMetrics", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_fontInfo(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QFontInfo (((QPainterJBridge*) QtSupport::getQt(env, obj))->fontInfo()), "org.kde.qt.QFontInfo", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_font(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QFont *) &((QPainterJBridge*) QtSupport::getQt(env, obj))->font(), "org.kde.qt.QFont");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setFont(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setFont((QFont&) *(QFont *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_pen(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QPen *) &((QPainterJBridge*) QtSupport::getQt(env, obj))->pen(), "org.kde.qt.QPen");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setPen__Lorg_kde_qt_QPen_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setPen((QPen&) *(QPen *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setPen__I(JNIEnv *env, jobject obj, jint arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setPen((Qt::PenStyle) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setPen__Lorg_kde_qt_QColor_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setPen((QColor&) *(QColor *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_brush(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QBrush *) &((QPainterJBridge*) QtSupport::getQt(env, obj))->brush(), "org.kde.qt.QBrush");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setBrush__Lorg_kde_qt_QBrush_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setBrush((QBrush&) *(QBrush *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setBrush__I(JNIEnv *env, jobject obj, jint arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setBrush((Qt::BrushStyle) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setBrush__Lorg_kde_qt_QColor_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setBrush((QColor&) *(QColor *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_pos(JNIEnv *env, jobject obj)
{
	QPoint _p= ((QPainterJBridge*) QtSupport::getQt(env, obj))->pos();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPoint(_p.x(),_p.y()), "org.kde.qt.QPoint", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_backgroundColor(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QPainterJBridge*) QtSupport::getQt(env, obj))->backgroundColor(), "org.kde.qt.QColor");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setBackgroundColor(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setBackgroundColor((QColor&) *(QColor *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPainter_backgroundMode(JNIEnv *env, jobject obj)
{
	return (jint) ((QPainterJBridge*) QtSupport::getQt(env, obj))->backgroundMode();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setBackgroundMode(JNIEnv *env, jobject obj, jint arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setBackgroundMode((Qt::BGMode) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPainter_rasterOp(JNIEnv *env, jobject obj)
{
	return (jint) ((QPainterJBridge*) QtSupport::getQt(env, obj))->rasterOp();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setRasterOp(JNIEnv *env, jobject obj, jint arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setRasterOp((Qt::RasterOp) arg1);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_brushOrigin(JNIEnv *env, jobject obj)
{
	QPoint _p= ((QPainterJBridge*) QtSupport::getQt(env, obj))->brushOrigin();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPoint(_p.x(),_p.y()), "org.kde.qt.QPoint", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setBrushOrigin__II(JNIEnv *env, jobject obj, jint x, jint y)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setBrushOrigin((int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setBrushOrigin__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setBrushOrigin((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPainter_hasViewXForm(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QPainterJBridge*) QtSupport::getQt(env, obj))->hasViewXForm();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPainter_hasWorldXForm(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QPainterJBridge*) QtSupport::getQt(env, obj))->hasWorldXForm();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setViewXForm(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setViewXForm((bool) arg1);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_window(JNIEnv *env, jobject obj)
{
	QRect _r= ((QPainterJBridge*) QtSupport::getQt(env, obj))->window();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRect(_r.left(),_r.top(),_r.width(),_r.height()), "org.kde.qt.QRect", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setWindow__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setWindow((QRect&) *(QRect *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setWindow__IIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setWindow((int) x, (int) y, (int) w, (int) h);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_viewport(JNIEnv *env, jobject obj)
{
	QRect _r= ((QPainterJBridge*) QtSupport::getQt(env, obj))->viewport();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRect(_r.left(),_r.top(),_r.width(),_r.height()), "org.kde.qt.QRect", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setViewport__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setViewport((QRect&) *(QRect *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setViewport__IIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setViewport((int) x, (int) y, (int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setWorldXForm(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setWorldXForm((bool) arg1);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_worldMatrix(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QWMatrix *) &((QPainterJBridge*) QtSupport::getQt(env, obj))->worldMatrix(), "org.kde.qt.QWMatrix");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setWorldMatrix__Lorg_kde_qt_QWMatrix_2Z(JNIEnv *env, jobject obj, jobject arg1, jboolean combine)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setWorldMatrix((QWMatrix&) *(QWMatrix *) QtSupport::getQt(env, arg1), (bool) combine);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setWorldMatrix__Lorg_kde_qt_QWMatrix_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setWorldMatrix((QWMatrix&) *(QWMatrix *) QtSupport::getQt(env, arg1), FALSE);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_saveWorldMatrix(JNIEnv *env, jobject obj)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->saveWorldMatrix();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_restoreWorldMatrix(JNIEnv *env, jobject obj)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->restoreWorldMatrix();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_scale(JNIEnv *env, jobject obj, jdouble sx, jdouble sy)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->scale((double) sx, (double) sy);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_shear(JNIEnv *env, jobject obj, jdouble sh, jdouble sv)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->shear((double) sh, (double) sv);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_rotate(JNIEnv *env, jobject obj, jdouble a)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->rotate((double) a);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_translate(JNIEnv *env, jobject obj, jdouble dx, jdouble dy)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->translate((double) dx, (double) dy);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_resetXForm(JNIEnv *env, jobject obj)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->resetXForm();
	return;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QPainter_translationX(JNIEnv *env, jobject obj)
{
	return (jdouble) ((QPainterJBridge*) QtSupport::getQt(env, obj))->translationX();
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QPainter_translationY(JNIEnv *env, jobject obj)
{
	return (jdouble) ((QPainterJBridge*) QtSupport::getQt(env, obj))->translationY();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_xForm__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject arg1)
{
	QPoint _p= ((QPainterJBridge*) QtSupport::getQt(env, obj))->xForm((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1));
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPoint(_p.x(),_p.y()), "org.kde.qt.QPoint", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_xForm__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	QRect _r= ((QPainterJBridge*) QtSupport::getQt(env, obj))->xForm((QRect&) *(QRect *) QtSupport::getQt(env, arg1));
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRect(_r.left(),_r.top(),_r.width(),_r.height()), "org.kde.qt.QRect", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_xForm__Lorg_kde_qt_QPointArray_2(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPointArray (((QPainterJBridge*) QtSupport::getQt(env, obj))->xForm((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1))), "org.kde.qt.QPointArray", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_xForm__Lorg_kde_qt_QPointArray_2II(JNIEnv *env, jobject obj, jobject arg1, jint index, jint npoints)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPointArray (((QPainterJBridge*) QtSupport::getQt(env, obj))->xForm((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), (int) index, (int) npoints)), "org.kde.qt.QPointArray", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_xFormDev__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject arg1)
{
	QPoint _p= ((QPainterJBridge*) QtSupport::getQt(env, obj))->xFormDev((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1));
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPoint(_p.x(),_p.y()), "org.kde.qt.QPoint", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_xFormDev__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	QRect _r= ((QPainterJBridge*) QtSupport::getQt(env, obj))->xFormDev((QRect&) *(QRect *) QtSupport::getQt(env, arg1));
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRect(_r.left(),_r.top(),_r.width(),_r.height()), "org.kde.qt.QRect", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_xFormDev__Lorg_kde_qt_QPointArray_2(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPointArray (((QPainterJBridge*) QtSupport::getQt(env, obj))->xFormDev((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1))), "org.kde.qt.QPointArray", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_xFormDev__Lorg_kde_qt_QPointArray_2II(JNIEnv *env, jobject obj, jobject arg1, jint index, jint npoints)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPointArray (((QPainterJBridge*) QtSupport::getQt(env, obj))->xFormDev((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), (int) index, (int) npoints)), "org.kde.qt.QPointArray", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setClipping(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setClipping((bool) arg1);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPainter_hasClipping(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QPainterJBridge*) QtSupport::getQt(env, obj))->hasClipping();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_clipRegion__I(JNIEnv *env, jobject obj, jint arg1)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRegion (((QPainterJBridge*) QtSupport::getQt(env, obj))->clipRegion((QPainter::CoordinateMode) arg1)), "org.kde.qt.QRegion", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_clipRegion__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRegion(((QPainterJBridge*) QtSupport::getQt(env, obj))->clipRegion(QPainter::CoordDevice)), "org.kde.qt.QRegion", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setClipRect__Lorg_kde_qt_QRect_2I(JNIEnv *env, jobject obj, jobject arg1, jint arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setClipRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (QPainter::CoordinateMode) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setClipRect__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setClipRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1), QPainter::CoordDevice);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setClipRect__IIIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jint arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setClipRect((int) x, (int) y, (int) w, (int) h, (QPainter::CoordinateMode) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setClipRect__IIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setClipRect((int) x, (int) y, (int) w, (int) h, QPainter::CoordDevice);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setClipRegion__Lorg_kde_qt_QRegion_2I(JNIEnv *env, jobject obj, jobject arg1, jint arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setClipRegion((QRegion&) *(QRegion *) QtSupport::getQt(env, arg1), (QPainter::CoordinateMode) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setClipRegion__Lorg_kde_qt_QRegion_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setClipRegion((QRegion&) *(QRegion *) QtSupport::getQt(env, arg1), QPainter::CoordDevice);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPoint__II(JNIEnv *env, jobject obj, jint x, jint y)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPoint((int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPoint__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPoint((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPoints__Lorg_kde_qt_QPointArray_2II(JNIEnv *env, jobject obj, jobject a, jint index, jint npoints)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPoints((QPointArray&) *(QPointArray *) QtSupport::getQt(env, a), (int) index, (int) npoints);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPoints__Lorg_kde_qt_QPointArray_2(JNIEnv *env, jobject obj, jobject a)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPoints((QPointArray&) *(QPointArray *) QtSupport::getQt(env, a), 0, -1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_moveTo__II(JNIEnv *env, jobject obj, jint x, jint y)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->moveTo((int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_moveTo__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->moveTo((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_lineTo__II(JNIEnv *env, jobject obj, jint x, jint y)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->lineTo((int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_lineTo__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->lineTo((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawLine__IIII(JNIEnv *env, jobject obj, jint x1, jint y1, jint x2, jint y2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawLine((int) x1, (int) y1, (int) x2, (int) y2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawLine__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawLine((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QPoint&) *(QPoint *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawRect__IIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawRect((int) x, (int) y, (int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawRect__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawWinFocusRect__IIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawWinFocusRect((int) x, (int) y, (int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawWinFocusRect__IIIILorg_kde_qt_QColor_2(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jobject bgColor)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawWinFocusRect((int) x, (int) y, (int) w, (int) h, (QColor&) *(QColor *) QtSupport::getQt(env, bgColor));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawWinFocusRect__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawWinFocusRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawWinFocusRect__Lorg_kde_qt_QRect_2Lorg_kde_qt_QColor_2(JNIEnv *env, jobject obj, jobject arg1, jobject bgColor)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawWinFocusRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (QColor&) *(QColor *) QtSupport::getQt(env, bgColor));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawRoundRect__IIIIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jint arg1, jint arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawRoundRect((int) x, (int) y, (int) w, (int) h, (int) arg1, (int) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawRoundRect__IIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawRoundRect((int) x, (int) y, (int) w, (int) h, 25, 25);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawRoundRect__Lorg_kde_qt_QRect_2II(JNIEnv *env, jobject obj, jobject arg1, jint arg2, jint arg3)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawRoundRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (int) arg2, (int) arg3);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawRoundRect__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawRoundRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1), 25, 25);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawEllipse__IIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawEllipse((int) x, (int) y, (int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawEllipse__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawEllipse((QRect&) *(QRect *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawArc__IIIIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jint a, jint alen)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawArc((int) x, (int) y, (int) w, (int) h, (int) a, (int) alen);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawArc__Lorg_kde_qt_QRect_2II(JNIEnv *env, jobject obj, jobject arg1, jint a, jint alen)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawArc((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (int) a, (int) alen);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPie__IIIIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jint a, jint alen)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPie((int) x, (int) y, (int) w, (int) h, (int) a, (int) alen);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPie__Lorg_kde_qt_QRect_2II(JNIEnv *env, jobject obj, jobject arg1, jint a, jint alen)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPie((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (int) a, (int) alen);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawChord__IIIIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jint a, jint alen)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawChord((int) x, (int) y, (int) w, (int) h, (int) a, (int) alen);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawChord__Lorg_kde_qt_QRect_2II(JNIEnv *env, jobject obj, jobject arg1, jint a, jint alen)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawChord((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (int) a, (int) alen);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawLineSegments__Lorg_kde_qt_QPointArray_2II(JNIEnv *env, jobject obj, jobject arg1, jint index, jint nlines)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawLineSegments((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), (int) index, (int) nlines);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawLineSegments__Lorg_kde_qt_QPointArray_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawLineSegments((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), 0, -1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPolyline__Lorg_kde_qt_QPointArray_2II(JNIEnv *env, jobject obj, jobject arg1, jint index, jint npoints)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPolyline((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), (int) index, (int) npoints);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPolyline__Lorg_kde_qt_QPointArray_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPolyline((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), 0, -1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPolygon__Lorg_kde_qt_QPointArray_2ZII(JNIEnv *env, jobject obj, jobject arg1, jboolean winding, jint index, jint npoints)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPolygon((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), (bool) winding, (int) index, (int) npoints);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPolygon__Lorg_kde_qt_QPointArray_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPolygon((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), FALSE, 0, -1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawConvexPolygon__Lorg_kde_qt_QPointArray_2II(JNIEnv *env, jobject obj, jobject arg1, jint index, jint npoints)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawConvexPolygon((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), (int) index, (int) npoints);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawConvexPolygon__Lorg_kde_qt_QPointArray_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawConvexPolygon((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), 0, -1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawCubicBezier__Lorg_kde_qt_QPointArray_2I(JNIEnv *env, jobject obj, jobject arg1, jint index)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawCubicBezier((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawCubicBezier__Lorg_kde_qt_QPointArray_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawCubicBezier((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1), 0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPixmap__IILorg_kde_qt_QPixmap_2IIII(JNIEnv *env, jobject obj, jint x, jint y, jobject arg1, jint sx, jint sy, jint sw, jint sh)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPixmap((int) x, (int) y, (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg1), (int) sx, (int) sy, (int) sw, (int) sh);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPixmap__IILorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jint x, jint y, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPixmap((int) x, (int) y, (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg1), 0, 0, -1, -1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPixmap__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2, jobject sr)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPixmap((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg2), (QRect&) *(QRect *) QtSupport::getQt(env, sr));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPixmap__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPixmap((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPixmap__Lorg_kde_qt_QRect_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPixmap((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawImage__IILorg_kde_qt_QImage_2IIIII(JNIEnv *env, jobject obj, jint x, jint y, jobject arg1, jint sx, jint sy, jint sw, jint sh, jint conversionFlags)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawImage((int) x, (int) y, (QImage&) *(QImage *) QtSupport::getQt(env, arg1), (int) sx, (int) sy, (int) sw, (int) sh, (int) conversionFlags);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawImage__IILorg_kde_qt_QImage_2(JNIEnv *env, jobject obj, jint x, jint y, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawImage((int) x, (int) y, (QImage&) *(QImage *) QtSupport::getQt(env, arg1), 0, 0, -1, -1, 0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawImage__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QImage_2Lorg_kde_qt_QRect_2I(JNIEnv *env, jobject obj, jobject arg1, jobject arg2, jobject sr, jint conversionFlags)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawImage((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QImage&) *(QImage *) QtSupport::getQt(env, arg2), (QRect&) *(QRect *) QtSupport::getQt(env, sr), (int) conversionFlags);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawImage__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QImage_2Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2, jobject sr)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawImage((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QImage&) *(QImage *) QtSupport::getQt(env, arg2), (QRect&) *(QRect *) QtSupport::getQt(env, sr), 0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawImage__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QImage_2I(JNIEnv *env, jobject obj, jobject arg1, jobject arg2, jint conversion_flags)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawImage((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QImage&) *(QImage *) QtSupport::getQt(env, arg2), (int) conversion_flags);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawImage__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QImage_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawImage((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QImage&) *(QImage *) QtSupport::getQt(env, arg2), 0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawImage__Lorg_kde_qt_QRect_2Lorg_kde_qt_QImage_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawImage((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (QImage&) *(QImage *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawTiledPixmap__IIIILorg_kde_qt_QPixmap_2II(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jobject arg1, jint sx, jint sy)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawTiledPixmap((int) x, (int) y, (int) w, (int) h, (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg1), (int) sx, (int) sy);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawTiledPixmap__IIIILorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawTiledPixmap((int) x, (int) y, (int) w, (int) h, (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg1), 0, 0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawTiledPixmap__Lorg_kde_qt_QRect_2Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2, jobject arg3)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawTiledPixmap((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg2), (QPoint&) *(QPoint *) QtSupport::getQt(env, arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawTiledPixmap__Lorg_kde_qt_QRect_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawTiledPixmap((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPicture__Lorg_kde_qt_QPicture_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPicture((QPicture&) *(QPicture *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPicture__IILorg_kde_qt_QPicture_2(JNIEnv *env, jobject obj, jint x, jint y, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPicture((int) x, (int) y, (QPicture&) *(QPicture *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawPicture__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QPicture_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawPicture((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QPicture&) *(QPicture *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_fillRect__IIIILorg_kde_qt_QBrush_2(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->fillRect((int) x, (int) y, (int) w, (int) h, (QBrush&) *(QBrush *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_fillRect__Lorg_kde_qt_QRect_2Lorg_kde_qt_QBrush_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->fillRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (QBrush&) *(QBrush *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_eraseRect__IIII(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->eraseRect((int) x, (int) y, (int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_eraseRect__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->eraseRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__IILjava_lang_String_2II(JNIEnv *env, jobject obj, jint x, jint y, jstring arg1, jint len, jint dir)
{
static QString * _qstring_arg1 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((int) x, (int) y, (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) len, (QPainter::TextDirection) dir);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__IILjava_lang_String_2(JNIEnv *env, jobject obj, jint x, jint y, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((int) x, (int) y, (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), -1, QPainter::Auto);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__Lorg_kde_qt_QPoint_2Ljava_lang_String_2II(JNIEnv *env, jobject obj, jobject arg1, jstring arg2, jint len, jint dir)
{
static QString * _qstring_arg2 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (int) len, (QPainter::TextDirection) dir);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__Lorg_kde_qt_QPoint_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject arg1, jstring arg2)
{
static QString * _qstring_arg2 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), -1, QPainter::Auto);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__IILjava_lang_String_2III(JNIEnv *env, jobject obj, jint x, jint y, jstring arg1, jint pos, jint len, jint dir)
{
static QString * _qstring_arg1 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((int) x, (int) y, (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) pos, (int) len, (QPainter::TextDirection) dir);
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QPainter_drawText__IILjava_lang_String_2II(JNIEnv *env, jobject obj, jint x, jint y, jstring arg1, jint pos, jint len)
//{
//static QString * _qstring_arg1 = 0;
//	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((int) x, (int) y, (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) pos, (int) len, QPainter::Auto);
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__Lorg_kde_qt_QPoint_2Ljava_lang_String_2III(JNIEnv *env, jobject obj, jobject p, jstring arg1, jint pos, jint len, jint dir)
{
static QString * _qstring_arg1 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((QPoint&) *(QPoint *) QtSupport::getQt(env, p), (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) pos, (int) len, (QPainter::TextDirection) dir);
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QPainter_drawText__Lorg_kde_qt_QPoint_2Ljava_lang_String_2II(JNIEnv *env, jobject obj, jobject p, jstring arg1, jint pos, jint len)
//{
//static QString * _qstring_arg1 = 0;
//	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((QPoint&) *(QPoint *) QtSupport::getQt(env, p), (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) pos, (int) len, QPainter::Auto);
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__IIIIILjava_lang_String_2ILorg_kde_qt_QRect_2Lorg_kde_qt_QTextParag_2(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jint flags, jstring arg1, jint len, jobject br, jobject intern)
{
static QString * _qstring_arg1 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((int) x, (int) y, (int) w, (int) h, (int) flags, (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) len, (QRect*) QtSupport::getQt(env, br), (QTextParag**) QtSupport::getQt(env, intern));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__IIIIILjava_lang_String_2(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jint flags, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((int) x, (int) y, (int) w, (int) h, (int) flags, (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), -1, 0, 0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__Lorg_kde_qt_QRect_2ILjava_lang_String_2ILorg_kde_qt_QRect_2Lorg_kde_qt_QTextParag_2(JNIEnv *env, jobject obj, jobject arg1, jint flags, jstring arg2, jint len, jobject br, jobject intern)
{
static QString * _qstring_arg2 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (int) flags, (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (int) len, (QRect*) QtSupport::getQt(env, br), (QTextParag**) QtSupport::getQt(env, intern));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_drawText__Lorg_kde_qt_QRect_2ILjava_lang_String_2(JNIEnv *env, jobject obj, jobject arg1, jint flags, jstring arg2)
{
static QString * _qstring_arg2 = 0;
	((QPainterJBridge*) QtSupport::getQt(env, obj))->drawText((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (int) flags, (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), -1, 0, 0);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_boundingRect__IIIIILjava_lang_String_2ILorg_kde_qt_QTextParag_2(JNIEnv *env, jobject obj, jint x, jint y, jint w, jint h, jint flags, jstring arg1, jint len, jobject intern)
{
static QString * _qstring_arg1 = 0;
	QRect _r= ((QPainterJBridge*) QtSupport::getQt(env, obj))->boundingRect((int) x, (int) y, (int) w, (int) h, (int) flags, (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) len, (QTextParag**) QtSupport::getQt(env, intern));
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRect(_r.left(),_r.top(),_r.width(),_r.height()), "org.kde.qt.QRect", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPainter_boundingRect__Lorg_kde_qt_QRect_2ILjava_lang_String_2ILorg_kde_qt_QTextParag_2(JNIEnv *env, jobject obj, jobject arg1, jint flags, jstring arg2, jint len, jobject intern)
{
static QString * _qstring_arg2 = 0;
	QRect _r= ((QPainterJBridge*) QtSupport::getQt(env, obj))->boundingRect((QRect&) *(QRect *) QtSupport::getQt(env, arg1), (int) flags, (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (int) len, (QTextParag**) QtSupport::getQt(env, intern));
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRect(_r.left(),_r.top(),_r.width(),_r.height()), "org.kde.qt.QRect", TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPainter_tabStops(JNIEnv *env, jobject obj)
{
	return (jint) ((QPainterJBridge*) QtSupport::getQt(env, obj))->tabStops();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setTabStops(JNIEnv *env, jobject obj, jint arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setTabStops((int) arg1);
	return;
}

JNIEXPORT jintArray JNICALL
Java_org_kde_qt_QPainter_tabArray(JNIEnv *env, jobject obj)
{
	return (jintArray) QtSupport::fromIntPtr(env, ((QPainterJBridge*) QtSupport::getQt(env, obj))->tabArray());
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_setTabArray(JNIEnv *env, jobject obj, jintArray arg1)
{
	((QPainterJBridge*) QtSupport::getQt(env, obj))->setTabArray( (int*) QtSupport::toIntPtr(env, arg1));
	return;
}

//JNIEXPORT jint JNICALL
//Java_org_kde_qt_QPainter_handle(JNIEnv *env, jobject obj)
//{
//	return (jint) ((QPainterJBridge*) QtSupport::getQt(env, obj))->handle();
//}

//JNIEXPORT jint JNICALL
//Java_org_kde_qt_QPainter_handle__(JNIEnv *env, jobject obj)
//{
//	return (jint) ((QPainterJBridge*) QtSupport::getQt(env, obj))->handle();
//}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_redirect(JNIEnv *env, jclass obj, jobject pdev, jobject replacement)
{
	QPainterJBridge::redirect((QPaintDevice*) QtSupport::paintDevice(env, pdev), (QPaintDevice*) QtSupport::paintDevice(env, replacement));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_initialize(JNIEnv *env, jclass obj)
{
	QPainterJBridge::initialize();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPainter_cleanup(JNIEnv *env, jclass obj)
{
	QPainterJBridge::cleanup();
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QPainter_initPaintDevice__Z(JNIEnv *env, jobject obj, jboolean force)
//{
//	((QPainterJBridge*) QtSupport::getQt(env, obj))->protected_initPaintDevice((bool) force);
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QPainter_initPaintDevice__(JNIEnv *env, jobject obj)
//{
//	((QPainterJBridge*) QtSupport::getQt(env, obj))->protected_initPaintDevice(FALSE);
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QPainter_qt_format_text(JNIEnv *env, jobject obj, jobject arg1, jobject r, jint tf, jstring str, jint len, jobject brect, jint tabstops, jintArray tabarray, jint tabarraylen, jobject internal, jobject painter)
//{
//static QString * _qstring_str = 0;
//	((QPainterJBridge*) QtSupport::getQt(env, obj))->protected_qt_format_text((QFont&) *(QFont *) QtSupport::getQt(env, arg1), (QRect&) *(QRect *) QtSupport::getQt(env, r), (int) tf, (QString&) * (QString *) QtSupport::toQString(env, str, &_qstring_str), (int) len, (QRect*) QtSupport::getQt(env, brect), (int) tabstops,  (int*) QtSupport::toIntPtr(env, tabarray), (int) tabarraylen, (QTextParag**) QtSupport::getQt(env, internal), (QPainter*) QtSupport::getQt(env, painter));
//	return;
//}

