summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/TQWMatrix.cpp
blob: 01b6fe8a6441c9cc912f9a276f1cb390e1d639d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
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_trinitydesktop_qt_QWMatrix_det(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((TQWMatrix*) QtSupport::getQt(env, obj))->det();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWMatrix_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QWMatrix_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_qt_QWMatrix_invert__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQWMatrix(((TQWMatrix*) QtSupport::getQt(env, obj))->invert()), "org.trinitydesktop.qt.TQWMatrix", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.qt.TQWMatrix", TRUE);
	env->SetBooleanArrayRegion(arg1, 0, 1, (jboolean*) _bool_arg1);
	return xret;
}

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.qt.TQRect", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.qt.TQPointArray", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.qt.TQRegion", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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_trinitydesktop_qt_QWMatrix_map__Lorg_trinitydesktop_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.trinitydesktop.qt.TQPointArray", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWMatrix_map__Lorg_trinitydesktop_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.trinitydesktop.qt.TQPoint", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWMatrix_map__Lorg_trinitydesktop_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.trinitydesktop.qt.TQRect", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWMatrix_map__Lorg_trinitydesktop_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.trinitydesktop.qt.TQRegion", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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_trinitydesktop_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_trinitydesktop_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.trinitydesktop.qt.TQWMatrix");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWMatrix_op_1mult__Lorg_trinitydesktop_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.trinitydesktop.qt.TQPointArray", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWMatrix_op_1mult__Lorg_trinitydesktop_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.trinitydesktop.qt.TQPoint", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWMatrix_op_1mult__Lorg_trinitydesktop_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.trinitydesktop.qt.TQRegion", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWMatrix_op_1mult__Lorg_trinitydesktop_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.trinitydesktop.qt.TQRegion", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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_trinitydesktop_qt_QWMatrix_reset(JNIEnv* env, jobject obj)
{
	((TQWMatrix*) QtSupport::getQt(env, obj))->reset();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.qt.TQWMatrix");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.qt.TQWMatrix");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_qt_QWMatrix_setTransformationMode(JNIEnv* env, jclass cls, jint m)
{
	(void) cls;
	(void) env;
	TQWMatrixJBridge::setTransformationMode((TQWMatrix::TransformationMode) m);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.qt.TQWMatrix");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.qt.TQWMatrix");
	return xret;
}