//Auto-generated by kalyptus. DO NOT EDIT.
#include <qgl.h>

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

class QGLFormatJBridge : public QGLFormat
{
public:
	QGLFormatJBridge() : QGLFormat() {};
	QGLFormatJBridge(int arg1,int arg2) : QGLFormat(arg1,arg2) {};
	QGLFormatJBridge(int arg1) : QGLFormat(arg1) {};
	~QGLFormatJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_accum(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->accum();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_alpha(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->alpha();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QGLFormat_defaultFormat(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QGLFormat(QGLFormatJBridge::defaultFormat()), "org.kde.qt.QGLFormat", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QGLFormat_defaultOverlayFormat(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QGLFormat(QGLFormatJBridge::defaultOverlayFormat()), "org.kde.qt.QGLFormat", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_depth(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->depth();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_directRendering(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->directRendering();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QGLFormat_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_doubleBuffer(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->doubleBuffer();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_hasOpenGLOverlays(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) QGLFormatJBridge::hasOpenGLOverlays();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_hasOpenGL(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) QGLFormatJBridge::hasOpenGL();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_hasOverlay(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->hasOverlay();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_newQGLFormat__I(JNIEnv* env, jobject obj, jint options)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QGLFormatJBridge((int) options));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_newQGLFormat__II(JNIEnv* env, jobject obj, jint options, jint plane)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QGLFormatJBridge((int) options, (int) plane));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QGLFormat_plane(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QGLFormat*) QtSupport::getQt(env, obj))->plane();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_rgba(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->rgba();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setAccum(JNIEnv* env, jobject obj, jboolean enable)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setAccum((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setAlpha(JNIEnv* env, jobject obj, jboolean enable)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setAlpha((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setDefaultFormat(JNIEnv* env, jclass cls, jobject f)
{
	(void) cls;
	QGLFormatJBridge::setDefaultFormat((const QGLFormat&)*(const QGLFormat*) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setDefaultOverlayFormat(JNIEnv* env, jclass cls, jobject f)
{
	(void) cls;
	QGLFormatJBridge::setDefaultOverlayFormat((const QGLFormat&)*(const QGLFormat*) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setDepth(JNIEnv* env, jobject obj, jboolean enable)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setDepth((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setDirectRendering(JNIEnv* env, jobject obj, jboolean enable)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setDirectRendering((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setDoubleBuffer(JNIEnv* env, jobject obj, jboolean enable)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setDoubleBuffer((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setOption(JNIEnv* env, jobject obj, jint opt)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setOption((QGL::FormatOption) opt);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setOverlay(JNIEnv* env, jobject obj, jboolean enable)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setOverlay((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setPlane(JNIEnv* env, jobject obj, jint plane)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setPlane((int) plane);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setRgba(JNIEnv* env, jobject obj, jboolean enable)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setRgba((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setStencil(JNIEnv* env, jobject obj, jboolean enable)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setStencil((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGLFormat_setStereo(JNIEnv* env, jobject obj, jboolean enable)
{
	((QGLFormat*) QtSupport::getQt(env, obj))->setStereo((bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_stencil(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->stencil();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_stereo(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->stereo();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QGLFormat_testOption(JNIEnv* env, jobject obj, jint opt)
{
	jboolean xret = (jboolean) ((QGLFormat*) QtSupport::getQt(env, obj))->testOption((QGL::FormatOption) opt);
	return xret;
}

