//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;
}

