//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <qwmatrix.h>
#include <qpoint.h>
#include <qregion.h>
#include <qpointarray.h>

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

class QWMatrixJBridge : public QWMatrix
{
public:
	QWMatrixJBridge() : QWMatrix() {};
	QWMatrixJBridge(double arg1,double arg2,double arg3,double arg4,double arg5,double arg6) : QWMatrix(arg1,arg2,arg3,arg4,arg5,arg6) {};
	~QWMatrixJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QWMatrix_det(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((QWMatrix*) QtSupport::getQt(env, obj))->det();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWMatrix_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QWMatrix_finalize(env, obj);
	return;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QWMatrix_dx(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((QWMatrix*) QtSupport::getQt(env, obj))->dx();
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QWMatrix_dy(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((QWMatrix*) QtSupport::getQt(env, obj))->dy();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_invert__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QWMatrix(((QWMatrix*) QtSupport::getQt(env, obj))->invert()), "org.kde.qt.QWMatrix", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_invert___3Z(JNIEnv* env, jobject obj, jbooleanArray arg1)
{
	bool* _bool_arg1 = QtSupport::toBooleanPtr(env, arg1);
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QWMatrix(((QWMatrix*) QtSupport::getQt(env, obj))->invert( (bool*) _bool_arg1)), "org.kde.qt.QWMatrix", TRUE);
	env->SetBooleanArrayRegion(arg1, 0, 1, (jboolean*) _bool_arg1);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QWMatrix_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QWMatrix_isIdentity(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QWMatrix*) QtSupport::getQt(env, obj))->isIdentity();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QWMatrix_isInvertible(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QWMatrix*) QtSupport::getQt(env, obj))->isInvertible();
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QWMatrix_m11(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((QWMatrix*) QtSupport::getQt(env, obj))->m11();
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QWMatrix_m12(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((QWMatrix*) QtSupport::getQt(env, obj))->m12();
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QWMatrix_m21(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((QWMatrix*) QtSupport::getQt(env, obj))->m21();
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QWMatrix_m22(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((QWMatrix*) QtSupport::getQt(env, obj))->m22();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_mapRect(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QWMatrix*) QtSupport::getQt(env, obj))->mapRect((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1))), "org.kde.qt.QRect", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_mapToPolygon(JNIEnv* env, jobject obj, jobject r)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPointArray(((QWMatrix*) QtSupport::getQt(env, obj))->mapToPolygon((const QRect&)*(const QRect*) QtSupport::getQt(env, r))), "org.kde.qt.QPointArray", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_mapToRegion(JNIEnv* env, jobject obj, jobject r)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRegion(((QWMatrix*) QtSupport::getQt(env, obj))->mapToRegion((const QRect&)*(const QRect*) QtSupport::getQt(env, r))), "org.kde.qt.QRegion", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWMatrix_map__DD_3D_3D(JNIEnv* env, jobject obj, jdouble x, jdouble y, jdoubleArray tx, jdoubleArray ty)
{
	double* _double_tx = QtSupport::toDoublePtr(env, tx);
	double* _double_ty = QtSupport::toDoublePtr(env, ty);
	((QWMatrix*) QtSupport::getQt(env, obj))->map((double) x, (double) y,  (double*) _double_tx,  (double*) _double_ty);
	env->SetDoubleArrayRegion(tx, 0, 1, (jdouble*) _double_tx);
	env->SetDoubleArrayRegion(ty, 0, 1, (jdouble*) _double_ty);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWMatrix_map__II_3I_3I(JNIEnv* env, jobject obj, jint x, jint y, jintArray tx, jintArray ty)
{
	int* _int_tx = QtSupport::toIntPtr(env, tx);
	int* _int_ty = QtSupport::toIntPtr(env, ty);
	((QWMatrix*) QtSupport::getQt(env, obj))->map((int) x, (int) y,  (int*) _int_tx,  (int*) _int_ty);
	env->SetIntArrayRegion(tx, 0, 1, (jint *) _int_tx);
	env->SetIntArrayRegion(ty, 0, 1, (jint *) _int_ty);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_map__Lorg_kde_qt_QPointArray_2(JNIEnv* env, jobject obj, jobject a)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPointArray(((QWMatrix*) QtSupport::getQt(env, obj))->map((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, a))), "org.kde.qt.QPointArray", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_map__Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject p)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPoint(((QWMatrix*) QtSupport::getQt(env, obj))->map((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p))), "org.kde.qt.QPoint", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_map__Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject r)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QWMatrix*) QtSupport::getQt(env, obj))->map((const QRect&)*(const QRect*) QtSupport::getQt(env, r))), "org.kde.qt.QRect", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_map__Lorg_kde_qt_QRegion_2(JNIEnv* env, jobject obj, jobject r)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRegion(((QWMatrix*) QtSupport::getQt(env, obj))->map((const QRegion&)*(const QRegion*) QtSupport::getQt(env, r))), "org.kde.qt.QRegion", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QWMatrix_newQWMatrix__DDDDDD(JNIEnv* env, jobject obj, jdouble m11, jdouble m12, jdouble m21, jdouble m22, jdouble dx, jdouble dy)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QWMatrixJBridge((double) m11, (double) m12, (double) m21, (double) m22, (double) dx, (double) dy));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QWMatrix_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QWMatrix*) QtSupport::getQt(env, obj))->operator==((const QWMatrix&)*(const QWMatrix*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_op_1mult_1assign(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QWMatrix *) &((QWMatrix*) QtSupport::getQt(env, obj))->operator*=((const QWMatrix&)*(const QWMatrix*) QtSupport::getQt(env, arg1)), "org.kde.qt.QWMatrix");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_op_1mult__Lorg_kde_qt_QPointArray_2(JNIEnv* env, jobject obj, jobject a)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPointArray(((QWMatrix*) QtSupport::getQt(env, obj))->operator*((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, a))), "org.kde.qt.QPointArray", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_op_1mult__Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPoint(((QWMatrix*) QtSupport::getQt(env, obj))->operator*((const QPoint&)*(const QPoint*) QtSupport::getQt(env, arg1))), "org.kde.qt.QPoint", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_op_1mult__Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRegion(((QWMatrix*) QtSupport::getQt(env, obj))->operator*((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1))), "org.kde.qt.QRegion", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_op_1mult__Lorg_kde_qt_QRegion_2(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRegion(((QWMatrix*) QtSupport::getQt(env, obj))->operator*((const QRegion&)*(const QRegion*) QtSupport::getQt(env, arg1))), "org.kde.qt.QRegion", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QWMatrix_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QWMatrix*) QtSupport::getQt(env, obj))->operator!=((const QWMatrix&)*(const QWMatrix*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWMatrix_reset(JNIEnv* env, jobject obj)
{
	((QWMatrix*) QtSupport::getQt(env, obj))->reset();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_rotate(JNIEnv* env, jobject obj, jdouble a)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QWMatrix *) &((QWMatrix*) QtSupport::getQt(env, obj))->rotate((double) a), "org.kde.qt.QWMatrix");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_scale(JNIEnv* env, jobject obj, jdouble sx, jdouble sy)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QWMatrix *) &((QWMatrix*) QtSupport::getQt(env, obj))->scale((double) sx, (double) sy), "org.kde.qt.QWMatrix");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWMatrix_setMatrix(JNIEnv* env, jobject obj, jdouble m11, jdouble m12, jdouble m21, jdouble m22, jdouble dx, jdouble dy)
{
	((QWMatrix*) QtSupport::getQt(env, obj))->setMatrix((double) m11, (double) m12, (double) m21, (double) m22, (double) dx, (double) dy);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWMatrix_setTransformationMode(JNIEnv* env, jclass cls, jint m)
{
	(void) cls;
	(void) env;
	QWMatrixJBridge::setTransformationMode((QWMatrix::TransformationMode) m);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_shear(JNIEnv* env, jobject obj, jdouble sh, jdouble sv)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QWMatrix *) &((QWMatrix*) QtSupport::getQt(env, obj))->shear((double) sh, (double) sv), "org.kde.qt.QWMatrix");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QWMatrix_transformationMode(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QWMatrixJBridge::transformationMode();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWMatrix_translate(JNIEnv* env, jobject obj, jdouble dx, jdouble dy)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QWMatrix *) &((QWMatrix*) QtSupport::getQt(env, obj))->translate((double) dx, (double) dy), "org.kde.qt.QWMatrix");
	return xret;
}

