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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLFormat_defaultFormat(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQGLFormat(TQGLFormatJBridge::defaultFormat()), "org.trinitydesktop.qt.TQGLFormat", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLFormat_defaultOverlayFormat(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQGLFormat(TQGLFormatJBridge::defaultOverlayFormat()), "org.trinitydesktop.qt.TQGLFormat", true);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLFormat_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QGLFormat_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLFormat_setDefaultFormat(JNIEnv* env, jclass cls, jobject f)
{
	(void) cls;
	TQGLFormatJBridge::setDefaultFormat((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLFormat_setDefaultOverlayFormat(JNIEnv* env, jclass cls, jobject f)
{
	(void) cls;
	TQGLFormatJBridge::setDefaultOverlayFormat((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, f));
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

