summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QGLContext.cpp
blob: 85473182f5209a9062ffd53a3252f8e63c1015ae (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
//Auto-generated by kalyptus. DO NOT EDIT.
#include <qgl.h>
#include <qfont.h>
#include <qcolor.h>

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

class QGLContextJBridge : public QGLContext
{
public:
	QGLContextJBridge(const QGLFormat& arg1,QPaintDevice* arg2) : QGLContext(arg1,arg2) {};
	QGLContextJBridge(const QGLFormat& arg1) : QGLContext(arg1) {};
	void public_reset() {
		QGLContext::reset();
		return;
	}
	void public_makeCurrent() {
		QGLContext::makeCurrent();
		return;
	}
	void public_swapBuffers() {
		QGLContext::swapBuffers();
		return;
	}
	bool protected_chooseContext(const QGLContext* arg1) {
		return (bool) QGLContext::chooseContext(arg1);
	}
	bool protected_chooseContext() {
		return (bool) QGLContext::chooseContext();
	}
	void protected_doneCurrent() {
		QGLContext::doneCurrent();
		return;
	}
	bool protected_deviceIsPixmap() {
		return (bool) QGLContext::deviceIsPixmap();
	}
	bool protected_windowCreated() {
		return (bool) QGLContext::windowCreated();
	}
	void protected_setWindowCreated(bool arg1) {
		QGLContext::setWindowCreated(arg1);
		return;
	}
	bool protected_initialized() {
		return (bool) QGLContext::initialized();
	}
	void protected_setInitialized(bool arg1) {
		QGLContext::setInitialized(arg1);
		return;
	}
	void protected_generateFontDisplayLists(const QFont& arg1,int arg2) {
		QGLContext::generateFontDisplayLists(arg1,arg2);
		return;
	}
	uint protected_colorIndex(const QColor& arg1) {
		return (uint) QGLContext::colorIndex(arg1);
	}
	void protected_setValid(bool arg1) {
		QGLContext::setValid(arg1);
		return;
	}
	void protected_setDevice(QPaintDevice* arg1) {
		QGLContext::setDevice(arg1);
		return;
	}
	~QGLContextJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLContext_chooseContext__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_chooseContext();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLContext_chooseContext__Lorg_kde_qt_QGLContext_2(JNIEnv* env, jobject obj, jobject shareContext)
{
	jboolean xret = (jboolean) ((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_chooseContext((const QGLContext*) QtSupport::getQt(env, shareContext));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QGLContext_colorIndex(JNIEnv* env, jobject obj, jobject c)
{
	jint xret = (jint) ((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_colorIndex((const QColor&)*(const QColor*) QtSupport::getQt(env, c));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLContext_create__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLContext*) QtSupport::getQt(env, obj))->create();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLContext_create__Lorg_kde_qt_QGLContext_2(JNIEnv* env, jobject obj, jobject shareContext)
{
	jboolean xret = (jboolean) ((QGLContext*) QtSupport::getQt(env, obj))->create((const QGLContext*) QtSupport::getQt(env, shareContext));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QGLContext_currentContext(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QGLContextJBridge::currentContext(), "org.kde.qt.QGLContext");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLContext_deviceIsPixmap(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_deviceIsPixmap();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QGLContext_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_doneCurrent(JNIEnv* env, jobject obj)
{
	((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_doneCurrent();
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_generateFontDisplayLists(JNIEnv* env, jobject obj, jobject fnt, jint listBase)
{
	((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_generateFontDisplayLists((const QFont&)*(const QFont*) QtSupport::getQt(env, fnt), (int) listBase);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLContext_initialized(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_initialized();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLContext_isSharing(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLContext*) QtSupport::getQt(env, obj))->isSharing();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLContext_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLContext*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_makeCurrent(JNIEnv* env, jobject obj)
{
	((QGLContextJBridge*) QtSupport::getQt(env, obj))->public_makeCurrent();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_newQGLContext__Lorg_kde_qt_QGLFormat_2(JNIEnv* env, jobject obj, jobject format)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QGLContextJBridge((const QGLFormat&)*(const QGLFormat*) QtSupport::getQt(env, format)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_newQGLContext__Lorg_kde_qt_QGLFormat_2Lorg_kde_qt_QPaintDeviceInterface_2(JNIEnv* env, jobject obj, jobject format, jobject device)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QGLContextJBridge((const QGLFormat&)*(const QGLFormat*) QtSupport::getQt(env, format), (QPaintDevice*) QtSupport::paintDevice(env, device)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_reset(JNIEnv* env, jobject obj)
{
	((QGLContextJBridge*) QtSupport::getQt(env, obj))->public_reset();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_setDevice(JNIEnv* env, jobject obj, jobject pDev)
{
	((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_setDevice((QPaintDevice*) QtSupport::paintDevice(env, pDev));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_setFormat(JNIEnv* env, jobject obj, jobject format)
{
	((QGLContext*) QtSupport::getQt(env, obj))->setFormat((const QGLFormat&)*(const QGLFormat*) QtSupport::getQt(env, format));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_setInitialized(JNIEnv* env, jobject obj, jboolean on)
{
	((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_setInitialized((bool) on);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_setValid(JNIEnv* env, jobject obj, jboolean valid)
{
	((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_setValid((bool) valid);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_setWindowCreated(JNIEnv* env, jobject obj, jboolean on)
{
	((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_setWindowCreated((bool) on);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLContext_swapBuffers(JNIEnv* env, jobject obj)
{
	((QGLContextJBridge*) QtSupport::getQt(env, obj))->public_swapBuffers();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLContext_windowCreated(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLContextJBridge*) QtSupport::getQt(env, obj))->protected_windowCreated();
	return xret;
}