summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/TQWMatrix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/TQWMatrix.cpp')
-rw-r--r--qtjava/javalib/qtjava/TQWMatrix.cpp320
1 files changed, 320 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/TQWMatrix.cpp b/qtjava/javalib/qtjava/TQWMatrix.cpp
new file mode 100644
index 00000000..1f61e0f9
--- /dev/null
+++ b/qtjava/javalib/qtjava/TQWMatrix.cpp
@@ -0,0 +1,320 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <tqrect.h>
+#include <tqwmatrix.h>
+#include <tqpoint.h>
+#include <tqregion.h>
+#include <tqpointarray.h>
+
+#include <qtjava/QtSupport.h>
+#include <qtjava/TQWMatrix.h>
+
+class TQWMatrixJBridge : public TQWMatrix
+{
+public:
+ TQWMatrixJBridge() : TQWMatrix() {};
+ TQWMatrixJBridge(double arg1,double arg2,double arg3,double arg4,double arg5,double arg6) : TQWMatrix(arg1,arg2,arg3,arg4,arg5,arg6) {};
+ ~TQWMatrixJBridge() {QtSupport::qtKeyDeleted(this);}
+};
+
+JNIEXPORT jdouble JNICALL
+Java_org_kde_qt_QWMatrix_det(JNIEnv* env, jobject obj)
+{
+ jdouble xret = (jdouble) ((TQWMatrix*) 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) ((TQWMatrix*) QtSupport::getQt(env, obj))->dx();
+ return xret;
+}
+
+JNIEXPORT jdouble JNICALL
+Java_org_kde_qt_QWMatrix_dy(JNIEnv* env, jobject obj)
+{
+ jdouble xret = (jdouble) ((TQWMatrix*) 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 (TQWMatrix*)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 TQWMatrix(((TQWMatrix*) QtSupport::getQt(env, obj))->invert()), "org.kde.qt.TQWMatrix", 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 TQWMatrix(((TQWMatrix*) QtSupport::getQt(env, obj))->invert( (bool*) _bool_arg1)), "org.kde.qt.TQWMatrix", 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) ((TQWMatrix*) QtSupport::getQt(env, obj))->isIdentity();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QWMatrix_isInvertible(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQWMatrix*) QtSupport::getQt(env, obj))->isInvertible();
+ return xret;
+}
+
+JNIEXPORT jdouble JNICALL
+Java_org_kde_qt_QWMatrix_m11(JNIEnv* env, jobject obj)
+{
+ jdouble xret = (jdouble) ((TQWMatrix*) QtSupport::getQt(env, obj))->m11();
+ return xret;
+}
+
+JNIEXPORT jdouble JNICALL
+Java_org_kde_qt_QWMatrix_m12(JNIEnv* env, jobject obj)
+{
+ jdouble xret = (jdouble) ((TQWMatrix*) QtSupport::getQt(env, obj))->m12();
+ return xret;
+}
+
+JNIEXPORT jdouble JNICALL
+Java_org_kde_qt_QWMatrix_m21(JNIEnv* env, jobject obj)
+{
+ jdouble xret = (jdouble) ((TQWMatrix*) QtSupport::getQt(env, obj))->m21();
+ return xret;
+}
+
+JNIEXPORT jdouble JNICALL
+Java_org_kde_qt_QWMatrix_m22(JNIEnv* env, jobject obj)
+{
+ jdouble xret = (jdouble) ((TQWMatrix*) 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 TQRect(((TQWMatrix*) QtSupport::getQt(env, obj))->mapRect((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1))), "org.kde.qt.TQRect", 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 TQPointArray(((TQWMatrix*) QtSupport::getQt(env, obj))->mapToPolygon((const TQRect&)*(const TQRect*) QtSupport::getQt(env, r))), "org.kde.qt.TQPointArray", 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 TQRegion(((TQWMatrix*) QtSupport::getQt(env, obj))->mapToRegion((const TQRect&)*(const TQRect*) QtSupport::getQt(env, r))), "org.kde.qt.TQRegion", 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);
+ ((TQWMatrix*) 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);
+ ((TQWMatrix*) 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 TQPointArray(((TQWMatrix*) QtSupport::getQt(env, obj))->map((const TQPointArray&)*(const TQPointArray*) QtSupport::getQt(env, a))), "org.kde.qt.TQPointArray", 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 TQPoint(((TQWMatrix*) QtSupport::getQt(env, obj))->map((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, p))), "org.kde.qt.TQPoint", 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 TQRect(((TQWMatrix*) QtSupport::getQt(env, obj))->map((const TQRect&)*(const TQRect*) QtSupport::getQt(env, r))), "org.kde.qt.TQRect", 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 TQRegion(((TQWMatrix*) QtSupport::getQt(env, obj))->map((const TQRegion&)*(const TQRegion*) QtSupport::getQt(env, r))), "org.kde.qt.TQRegion", TRUE);
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWMatrix_newTQWMatrix__(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQWMatrixJBridge());
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWMatrix_newTQWMatrix__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 TQWMatrixJBridge((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) ((TQWMatrix*) QtSupport::getQt(env, obj))->operator==((const TQWMatrix&)*(const TQWMatrix*) 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*)(TQWMatrix *) &((TQWMatrix*) QtSupport::getQt(env, obj))->operator*=((const TQWMatrix&)*(const TQWMatrix*) QtSupport::getQt(env, arg1)), "org.kde.qt.TQWMatrix");
+ 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 TQPointArray(((TQWMatrix*) QtSupport::getQt(env, obj))->operator*((const TQPointArray&)*(const TQPointArray*) QtSupport::getQt(env, a))), "org.kde.qt.TQPointArray", 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 TQPoint(((TQWMatrix*) QtSupport::getQt(env, obj))->operator*((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1))), "org.kde.qt.TQPoint", 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 TQRegion(((TQWMatrix*) QtSupport::getQt(env, obj))->operator*((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1))), "org.kde.qt.TQRegion", 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 TQRegion(((TQWMatrix*) QtSupport::getQt(env, obj))->operator*((const TQRegion&)*(const TQRegion*) QtSupport::getQt(env, arg1))), "org.kde.qt.TQRegion", TRUE);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QWMatrix_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
+{
+ jboolean xret = (jboolean) ((TQWMatrix*) QtSupport::getQt(env, obj))->operator!=((const TQWMatrix&)*(const TQWMatrix*) QtSupport::getQt(env, arg1));
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWMatrix_reset(JNIEnv* env, jobject obj)
+{
+ ((TQWMatrix*) 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*)(TQWMatrix *) &((TQWMatrix*) QtSupport::getQt(env, obj))->rotate((double) a), "org.kde.qt.TQWMatrix");
+ 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*)(TQWMatrix *) &((TQWMatrix*) QtSupport::getQt(env, obj))->scale((double) sx, (double) sy), "org.kde.qt.TQWMatrix");
+ 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)
+{
+ ((TQWMatrix*) 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;
+ TQWMatrixJBridge::setTransformationMode((TQWMatrix::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*)(TQWMatrix *) &((TQWMatrix*) QtSupport::getQt(env, obj))->shear((double) sh, (double) sv), "org.kde.qt.TQWMatrix");
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QWMatrix_transformationMode(JNIEnv* env, jclass cls)
+{
+ (void) cls;
+ (void) env;
+ jint xret = (jint) TQWMatrixJBridge::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*)(TQWMatrix *) &((TQWMatrix*) QtSupport::getQt(env, obj))->translate((double) dx, (double) dy), "org.kde.qt.TQWMatrix");
+ return xret;
+}
+