//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqpixmap.h>
#include <tqgl.h>
#include <tqfont.h>
#include <tqimage.h>
#include <tqstring.h>
#include <tqglcolormap.h>
#include <tqpoint.h>
#include <tqcolor.h>
#include <tqnamespace.h>

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

class TQGLWidgetJBridge : public TQGLWidget
{
public:
	TQGLWidgetJBridge(TQWidget* arg1,const char* arg2,const TQGLWidget* arg3,TQt::WFlags arg4) : TQGLWidget(arg1,arg2,arg3,arg4) {};
	TQGLWidgetJBridge(TQWidget* arg1,const char* arg2,const TQGLWidget* arg3) : TQGLWidget(arg1,arg2,arg3) {};
	TQGLWidgetJBridge(TQWidget* arg1,const char* arg2) : TQGLWidget(arg1,arg2) {};
	TQGLWidgetJBridge(TQWidget* arg1) : TQGLWidget(arg1) {};
	TQGLWidgetJBridge() : TQGLWidget() {};
	TQGLWidgetJBridge(TQGLContext* arg1,TQWidget* arg2,const char* arg3,const TQGLWidget* arg4,TQt::WFlags arg5) : TQGLWidget(arg1,arg2,arg3,arg4,arg5) {};
	TQGLWidgetJBridge(TQGLContext* arg1,TQWidget* arg2,const char* arg3,const TQGLWidget* arg4) : TQGLWidget(arg1,arg2,arg3,arg4) {};
	TQGLWidgetJBridge(TQGLContext* arg1,TQWidget* arg2,const char* arg3) : TQGLWidget(arg1,arg2,arg3) {};
	TQGLWidgetJBridge(TQGLContext* arg1,TQWidget* arg2) : TQGLWidget(arg1,arg2) {};
	TQGLWidgetJBridge(const TQGLFormat& arg1,TQWidget* arg2,const char* arg3,const TQGLWidget* arg4,TQt::WFlags arg5) : TQGLWidget(arg1,arg2,arg3,arg4,arg5) {};
	TQGLWidgetJBridge(const TQGLFormat& arg1,TQWidget* arg2,const char* arg3,const TQGLWidget* arg4) : TQGLWidget(arg1,arg2,arg3,arg4) {};
	TQGLWidgetJBridge(const TQGLFormat& arg1,TQWidget* arg2,const char* arg3) : TQGLWidget(arg1,arg2,arg3) {};
	TQGLWidgetJBridge(const TQGLFormat& arg1,TQWidget* arg2) : TQGLWidget(arg1,arg2) {};
	TQGLWidgetJBridge(const TQGLFormat& arg1) : TQGLWidget(arg1) {};
	void public_makeCurrent() {
		TQGLWidget::makeCurrent();
		return;
	}
	void public_swapBuffers() {
		TQGLWidget::swapBuffers();
		return;
	}
	void public_makeOverlayCurrent() {
		TQGLWidget::makeOverlayCurrent();
		return;
	}
	void public_updateGL() {
		TQGLWidget::updateGL();
		return;
	}
	void public_updateOverlayGL() {
		TQGLWidget::updateOverlayGL();
		return;
	}
	void protected_initializeGL() {
		TQGLWidget::initializeGL();
		return;
	}
	void protected_resizeGL(int arg1,int arg2) {
		TQGLWidget::resizeGL(arg1,arg2);
		return;
	}
	void protected_paintGL() {
		TQGLWidget::paintGL();
		return;
	}
	void protected_initializeOverlayGL() {
		TQGLWidget::initializeOverlayGL();
		return;
	}
	void protected_resizeOverlayGL(int arg1,int arg2) {
		TQGLWidget::resizeOverlayGL(arg1,arg2);
		return;
	}
	void protected_paintOverlayGL() {
		TQGLWidget::paintOverlayGL();
		return;
	}
	void protected_setAutoBufferSwap(bool arg1) {
		TQGLWidget::setAutoBufferSwap(arg1);
		return;
	}
	bool protected_autoBufferSwap() {
		return (bool) TQGLWidget::autoBufferSwap();
	}
	void protected_paintEvent(TQPaintEvent* arg1) {
		TQGLWidget::paintEvent(arg1);
		return;
	}
	void protected_resizeEvent(TQResizeEvent* arg1) {
		TQGLWidget::resizeEvent(arg1);
		return;
	}
	void protected_glInit() {
		TQGLWidget::glInit();
		return;
	}
	void protected_glDraw() {
		TQGLWidget::glDraw();
		return;
	}
	~TQGLWidgetJBridge() {QtSupport::qtKeyDeleted(this);}
	void dragLeaveEvent(TQDragLeaveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragLeaveEvent",(void*)arg1,"org.trinitydesktop.qt.TQDragLeaveEvent")) {
			TQWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void setMask(const TQRegion& arg1) {
		if (!QtSupport::eventDelegate(this,"setMask",(void*)&arg1,"org.trinitydesktop.qt.TQRegion")) {
			TQWidget::setMask(arg1);
		}
		return;
	}
	void resizeEvent(TQResizeEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"resizeEvent",(void*)arg1,"org.trinitydesktop.qt.TQResizeEvent")) {
			TQGLWidget::resizeEvent(arg1);
		}
		return;
	}
	void setFormat(const TQGLFormat& arg1) {
		if (!QtSupport::eventDelegate(this,"setFormat",(void*)&arg1,"org.trinitydesktop.qt.TQGLFormat")) {
			TQGLWidget::setFormat(arg1);
		}
		return;
	}
	void glDraw() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","glDraw")) {
			TQGLWidget::glDraw();
		}
		return;
	}
	void mouseDoubleClickEvent(TQMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mouseDoubleClickEvent",(void*)arg1,"org.trinitydesktop.qt.TQMouseEvent")) {
			TQWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void paletteChange(const TQPalette& arg1) {
		if (!QtSupport::eventDelegate(this,"paletteChange",(void*)&arg1,"org.trinitydesktop.qt.TQPalette")) {
			TQWidget::paletteChange(arg1);
		}
		return;
	}
	void setActiveWindow() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","setActiveWindow")) {
			TQWidget::setActiveWindow();
		}
		return;
	}
	void updateGL() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","updateGL")) {
			TQGLWidget::updateGL();
		}
		return;
	}
	void dragEnterEvent(TQDragEnterEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragEnterEvent",(void*)arg1,"org.trinitydesktop.qt.TQDragEnterEvent")) {
			TQWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void show() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","show")) {
			TQWidget::show();
		}
		return;
	}
	void focusOutEvent(TQFocusEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"focusOutEvent",(void*)arg1,"org.trinitydesktop.qt.TQFocusEvent")) {
			TQWidget::focusOutEvent(arg1);
		}
		return;
	}
	void setFocus() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","setFocus")) {
			TQWidget::setFocus();
		}
		return;
	}
	void dragMoveEvent(TQDragMoveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragMoveEvent",(void*)arg1,"org.trinitydesktop.qt.TQDragMoveEvent")) {
			TQWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void initializeGL() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","initializeGL")) {
			TQGLWidget::initializeGL();
		}
		return;
	}
	void paintOverlayGL() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","paintOverlayGL")) {
			TQGLWidget::paintOverlayGL();
		}
		return;
	}
	void styleChange(TQStyle& arg1) {
		if (!QtSupport::eventDelegate(this,"styleChange",(void*)&arg1,"org.trinitydesktop.qt.TQStyle")) {
			TQWidget::styleChange(arg1);
		}
		return;
	}
	void hide() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","hide")) {
			TQWidget::hide();
		}
		return;
	}
	void setPaletteBackgroundColor(const TQColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setPaletteBackgroundColor",(void*)&arg1,"org.trinitydesktop.qt.TQColor")) {
			TQWidget::setPaletteBackgroundColor(arg1);
		}
		return;
	}
	void setEraseColor(const TQColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setEraseColor",(void*)&arg1,"org.trinitydesktop.qt.TQColor")) {
			TQWidget::setEraseColor(arg1);
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void paintEvent(TQPaintEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"paintEvent",(void*)arg1,"org.trinitydesktop.qt.TQPaintEvent")) {
			TQGLWidget::paintEvent(arg1);
		}
		return;
	}
	void imStartEvent(TQIMEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"imStartEvent",(void*)arg1,"org.trinitydesktop.qt.TQIMEvent")) {
			TQWidget::imStartEvent(arg1);
		}
		return;
	}
	void unsetCursor() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","unsetCursor")) {
			TQWidget::unsetCursor();
		}
		return;
	}
	void makeOverlayCurrent() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","makeOverlayCurrent")) {
			TQGLWidget::makeOverlayCurrent();
		}
		return;
	}
	void hideEvent(TQHideEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"hideEvent",(void*)arg1,"org.trinitydesktop.qt.TQHideEvent")) {
			TQWidget::hideEvent(arg1);
		}
		return;
	}
	void moveEvent(TQMoveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"moveEvent",(void*)arg1,"org.trinitydesktop.qt.TQMoveEvent")) {
			TQWidget::moveEvent(arg1);
		}
		return;
	}
	void polish() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","polish")) {
			TQWidget::polish();
		}
		return;
	}
	void showMaximized() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","showMaximized")) {
			TQWidget::showMaximized();
		}
		return;
	}
	void setBackgroundPixmap(const TQPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundPixmap",(void*)&arg1,"org.trinitydesktop.qt.TQPixmap")) {
			TQWidget::setBackgroundPixmap(arg1);
		}
		return;
	}
	void showEvent(TQShowEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"showEvent",(void*)arg1,"org.trinitydesktop.qt.TQShowEvent")) {
			TQWidget::showEvent(arg1);
		}
		return;
	}
	void keyPressEvent(TQKeyEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"keyPressEvent",(void*)arg1,"org.trinitydesktop.qt.TQKeyEvent")) {
			TQWidget::keyPressEvent(arg1);
		}
		return;
	}
	bool customWhatsThis() {
		return QtSupport::booleanDelegate(this,"customWhatsThis");
	}
	void swapBuffers() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","swapBuffers")) {
			TQGLWidget::swapBuffers();
		}
		return;
	}
	void setPaletteBackgroundPixmap(const TQPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setPaletteBackgroundPixmap",(void*)&arg1,"org.trinitydesktop.qt.TQPixmap")) {
			TQWidget::setPaletteBackgroundPixmap(arg1);
		}
		return;
	}
	void glInit() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","glInit")) {
			TQGLWidget::glInit();
		}
		return;
	}
	void setCursor(const TQCursor& arg1) {
		if (!QtSupport::eventDelegate(this,"setCursor",(void*)&arg1,"org.trinitydesktop.qt.TQCursor")) {
			TQWidget::setCursor(arg1);
		}
		return;
	}
	void closeEvent(TQCloseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"closeEvent",(void*)arg1,"org.trinitydesktop.qt.TQCloseEvent")) {
			TQWidget::closeEvent(arg1);
		}
		return;
	}
	void initializeOverlayGL() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","initializeOverlayGL")) {
			TQGLWidget::initializeOverlayGL();
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void makeCurrent() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","makeCurrent")) {
			TQGLWidget::makeCurrent();
		}
		return;
	}
	void enterEvent(TQEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"enterEvent",(void*)arg1,"org.trinitydesktop.qt.TQEvent")) {
			TQWidget::enterEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(TQMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mouseReleaseEvent",(void*)arg1,"org.trinitydesktop.qt.TQMouseEvent")) {
			TQWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void setErasePixmap(const TQPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setErasePixmap",(void*)&arg1,"org.trinitydesktop.qt.TQPixmap")) {
			TQWidget::setErasePixmap(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void dropEvent(TQDropEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dropEvent",(void*)arg1,"org.trinitydesktop.qt.TQDropEvent")) {
			TQWidget::dropEvent(arg1);
		}
		return;
	}
	void leaveEvent(TQEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"leaveEvent",(void*)arg1,"org.trinitydesktop.qt.TQEvent")) {
			TQWidget::leaveEvent(arg1);
		}
		return;
	}
	void setIcon(const TQPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setIcon",(void*)&arg1,"org.trinitydesktop.qt.TQPixmap")) {
			TQWidget::setIcon(arg1);
		}
		return;
	}
	void updateMask() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","updateMask")) {
			TQWidget::updateMask();
		}
		return;
	}
	void showNormal() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","showNormal")) {
			TQWidget::showNormal();
		}
		return;
	}
	void imComposeEvent(TQIMEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"imComposeEvent",(void*)arg1,"org.trinitydesktop.qt.TQIMEvent")) {
			TQWidget::imComposeEvent(arg1);
		}
		return;
	}
	void mousePressEvent(TQMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mousePressEvent",(void*)arg1,"org.trinitydesktop.qt.TQMouseEvent")) {
			TQWidget::mousePressEvent(arg1);
		}
		return;
	}
	void updateOverlayGL() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","updateOverlayGL")) {
			TQGLWidget::updateOverlayGL();
		}
		return;
	}
	void mouseMoveEvent(TQMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mouseMoveEvent",(void*)arg1,"org.trinitydesktop.qt.TQMouseEvent")) {
			TQWidget::mouseMoveEvent(arg1);
		}
		return;
	}
	void setFocusProxy(TQWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"setFocusProxy",(void*)arg1,"org.trinitydesktop.qt.TQWidget")) {
			TQWidget::setFocusProxy(arg1);
		}
		return;
	}
	void fontChange(const TQFont& arg1) {
		if (!QtSupport::eventDelegate(this,"fontChange",(void*)&arg1,"org.trinitydesktop.qt.TQFont")) {
			TQWidget::fontChange(arg1);
		}
		return;
	}
	void setBackgroundColor(const TQColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundColor",(void*)&arg1,"org.trinitydesktop.qt.TQColor")) {
			TQWidget::setBackgroundColor(arg1);
		}
		return;
	}
	void adjustSize() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","adjustSize")) {
			TQWidget::adjustSize();
		}
		return;
	}
	void wheelEvent(TQWheelEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"wheelEvent",(void*)arg1,"org.trinitydesktop.qt.TQWheelEvent")) {
			TQWidget::wheelEvent(arg1);
		}
		return;
	}
	void imEndEvent(TQIMEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"imEndEvent",(void*)arg1,"org.trinitydesktop.qt.TQIMEvent")) {
			TQWidget::imEndEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void focusInEvent(TQFocusEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"focusInEvent",(void*)arg1,"org.trinitydesktop.qt.TQFocusEvent")) {
			TQWidget::focusInEvent(arg1);
		}
		return;
	}
	void paintGL() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","paintGL")) {
			TQGLWidget::paintGL();
		}
		return;
	}
	void tabletEvent(TQTabletEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"tabletEvent",(void*)arg1,"org.trinitydesktop.qt.TQTabletEvent")) {
			TQWidget::tabletEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(TQKeyEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"keyReleaseEvent",(void*)arg1,"org.trinitydesktop.qt.TQKeyEvent")) {
			TQWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(TQContextMenuEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"contextMenuEvent",(void*)arg1,"org.trinitydesktop.qt.TQContextMenuEvent")) {
			TQWidget::contextMenuEvent(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQGLWidget",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
	void setGeometry(const TQRect& arg1) {
		if (!QtSupport::eventDelegate(this,"setGeometry",(void*)&arg1,"org.trinitydesktop.qt.TQRect")) {
			TQWidget::setGeometry(arg1);
		}
		return;
	}
	void showMinimized() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQGLWidget","showMinimized")) {
			TQWidget::showMinimized();
		}
		return;
	}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLWidget_autoBufferSwap(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_autoBufferSwap();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QGLWidget_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQGLWidget*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_colormap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQGLColormap *) &((TQGLWidget*) QtSupport::getQt(env, obj))->colormap(), "org.trinitydesktop.qt.TQGLColormap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_context(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQGLWidget*) QtSupport::getQt(env, obj))->context(), "org.trinitydesktop.qt.TQGLContext");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_convertToGLFormat(JNIEnv* env, jclass cls, jobject img)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(TQGLWidgetJBridge::convertToGLFormat((const TQImage&)*(const TQImage*) QtSupport::getQt(env, img))), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QGLWidget_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_doneCurrent(JNIEnv* env, jobject obj)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->doneCurrent();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQWidget*)(TQGLWidget*)QtSupport::getQt(env, obj))->parentWidget(true) == 0) {
		delete (TQGLWidget*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_format(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQGLFormat(((TQGLWidget*) QtSupport::getQt(env, obj))->format()), "org.trinitydesktop.qt.TQGLFormat", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_glDraw(JNIEnv* env, jobject obj)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_glDraw();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_glInit(JNIEnv* env, jobject obj)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_glInit();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_grabFrameBuffer__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQGLWidget*) QtSupport::getQt(env, obj))->grabFrameBuffer()), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_grabFrameBuffer__Z(JNIEnv* env, jobject obj, jboolean withAlpha)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQGLWidget*) QtSupport::getQt(env, obj))->grabFrameBuffer((bool) withAlpha)), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_initializeGL(JNIEnv* env, jobject obj)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_initializeGL();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_initializeOverlayGL(JNIEnv* env, jobject obj)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_initializeOverlayGL();
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_makeOverlayCurrent(JNIEnv* env, jobject obj)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->public_makeOverlayCurrent();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQGLWidget*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QGLContext_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject context, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((TQGLContext*) QtSupport::getQt(env, context), (TQWidget*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QGLContext_2Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject context, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((TQGLContext*) QtSupport::getQt(env, context), (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QGLContext_2Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QGLWidget_2(JNIEnv* env, jobject obj, jobject context, jobject parent, jstring name, jobject shareWidget)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((TQGLContext*) QtSupport::getQt(env, context), (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TQGLWidget*) QtSupport::getQt(env, shareWidget)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QGLContext_2Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QGLWidget_2I(JNIEnv* env, jobject obj, jobject context, jobject parent, jstring name, jobject shareWidget, jint f)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((TQGLContext*) QtSupport::getQt(env, context), (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TQGLWidget*) QtSupport::getQt(env, shareWidget), (TQt::WFlags) f));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QGLFormat_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject format, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, format), (TQWidget*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QGLFormat_2Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject format, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, format), (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QGLFormat_2Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QGLWidget_2(JNIEnv* env, jobject obj, jobject format, jobject parent, jstring name, jobject shareWidget)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, format), (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TQGLWidget*) QtSupport::getQt(env, shareWidget)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QGLFormat_2Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QGLWidget_2I(JNIEnv* env, jobject obj, jobject format, jobject parent, jstring name, jobject shareWidget, jint f)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, format), (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TQGLWidget*) QtSupport::getQt(env, shareWidget), (TQt::WFlags) f));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QGLWidget_2(JNIEnv* env, jobject obj, jobject parent, jstring name, jobject shareWidget)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TQGLWidget*) QtSupport::getQt(env, shareWidget)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_newTQGLWidget__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QGLWidget_2I(JNIEnv* env, jobject obj, jobject parent, jstring name, jobject shareWidget, jint f)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGLWidgetJBridge((TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TQGLWidget*) QtSupport::getQt(env, shareWidget), (TQt::WFlags) f));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_overlayContext(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQGLWidget*) QtSupport::getQt(env, obj))->overlayContext(), "org.trinitydesktop.qt.TQGLContext");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_paintEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_paintEvent((TQPaintEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_paintGL(JNIEnv* env, jobject obj)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_paintGL();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_paintOverlayGL(JNIEnv* env, jobject obj)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_paintOverlayGL();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_qglClearColor(JNIEnv* env, jobject obj, jobject c)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->qglClearColor((const TQColor&)*(const TQColor*) QtSupport::getQt(env, c));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_qglColor(JNIEnv* env, jobject obj, jobject c)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->qglColor((const TQColor&)*(const TQColor*) QtSupport::getQt(env, c));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderPixmap__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TQGLWidget*) QtSupport::getQt(env, obj))->renderPixmap()), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderPixmap__I(JNIEnv* env, jobject obj, jint w)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TQGLWidget*) QtSupport::getQt(env, obj))->renderPixmap((int) w)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderPixmap__II(JNIEnv* env, jobject obj, jint w, jint h)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TQGLWidget*) QtSupport::getQt(env, obj))->renderPixmap((int) w, (int) h)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderPixmap__IIZ(JNIEnv* env, jobject obj, jint w, jint h, jboolean useContext)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TQGLWidget*) QtSupport::getQt(env, obj))->renderPixmap((int) w, (int) h, (bool) useContext)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderText__DDDLjava_lang_String_2(JNIEnv* env, jobject obj, jdouble x, jdouble y, jdouble z, jstring str)
{
static TQString* _qstring_str = 0;
	((TQGLWidget*) QtSupport::getQt(env, obj))->renderText((double) x, (double) y, (double) z, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderText__DDDLjava_lang_String_2Lorg_trinitydesktop_qt_QFont_2(JNIEnv* env, jobject obj, jdouble x, jdouble y, jdouble z, jstring str, jobject fnt)
{
static TQString* _qstring_str = 0;
	((TQGLWidget*) QtSupport::getQt(env, obj))->renderText((double) x, (double) y, (double) z, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (const TQFont&)*(const TQFont*) QtSupport::getQt(env, fnt));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderText__DDDLjava_lang_String_2Lorg_trinitydesktop_qt_QFont_2I(JNIEnv* env, jobject obj, jdouble x, jdouble y, jdouble z, jstring str, jobject fnt, jint listBase)
{
static TQString* _qstring_str = 0;
	((TQGLWidget*) QtSupport::getQt(env, obj))->renderText((double) x, (double) y, (double) z, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (const TQFont&)*(const TQFont*) QtSupport::getQt(env, fnt), (int) listBase);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderText__IILjava_lang_String_2(JNIEnv* env, jobject obj, jint x, jint y, jstring str)
{
static TQString* _qstring_str = 0;
	((TQGLWidget*) QtSupport::getQt(env, obj))->renderText((int) x, (int) y, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderText__IILjava_lang_String_2Lorg_trinitydesktop_qt_QFont_2(JNIEnv* env, jobject obj, jint x, jint y, jstring str, jobject fnt)
{
static TQString* _qstring_str = 0;
	((TQGLWidget*) QtSupport::getQt(env, obj))->renderText((int) x, (int) y, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (const TQFont&)*(const TQFont*) QtSupport::getQt(env, fnt));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_renderText__IILjava_lang_String_2Lorg_trinitydesktop_qt_QFont_2I(JNIEnv* env, jobject obj, jint x, jint y, jstring str, jobject fnt, jint listBase)
{
static TQString* _qstring_str = 0;
	((TQGLWidget*) QtSupport::getQt(env, obj))->renderText((int) x, (int) y, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (const TQFont&)*(const TQFont*) QtSupport::getQt(env, fnt), (int) listBase);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_reparent__Lorg_trinitydesktop_qt_QWidget_2ILorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jobject obj, jobject parent, jint f, jobject p)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->reparent((TQWidget*) QtSupport::getQt(env, parent), (TQt::WFlags) f, (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_reparent__Lorg_trinitydesktop_qt_QWidget_2ILorg_trinitydesktop_qt_QPoint_2Z(JNIEnv* env, jobject obj, jobject parent, jint f, jobject p, jboolean showIt)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->reparent((TQWidget*) QtSupport::getQt(env, parent), (TQt::WFlags) f, (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, p), (bool) showIt);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_resizeEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_resizeEvent((TQResizeEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_resizeGL(JNIEnv* env, jobject obj, jint w, jint h)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_resizeGL((int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_resizeOverlayGL(JNIEnv* env, jobject obj, jint w, jint h)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_resizeOverlayGL((int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_setAutoBufferSwap(JNIEnv* env, jobject obj, jboolean on)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->protected_setAutoBufferSwap((bool) on);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_setColormap(JNIEnv* env, jobject obj, jobject map)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->setColormap((const TQGLColormap&)*(const TQGLColormap*) QtSupport::getQt(env, map));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_setContext__Lorg_trinitydesktop_qt_QGLContext_2(JNIEnv* env, jobject obj, jobject context)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->setContext((TQGLContext*) QtSupport::getQt(env, context));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_setContext__Lorg_trinitydesktop_qt_QGLContext_2Lorg_trinitydesktop_qt_QGLContext_2(JNIEnv* env, jobject obj, jobject context, jobject shareContext)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->setContext((TQGLContext*) QtSupport::getQt(env, context), (const TQGLContext*) QtSupport::getQt(env, shareContext));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_setContext__Lorg_trinitydesktop_qt_QGLContext_2Lorg_trinitydesktop_qt_QGLContext_2Z(JNIEnv* env, jobject obj, jobject context, jobject shareContext, jboolean deleteOldContext)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->setContext((TQGLContext*) QtSupport::getQt(env, context), (const TQGLContext*) QtSupport::getQt(env, shareContext), (bool) deleteOldContext);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_setMouseTracking(JNIEnv* env, jobject obj, jboolean enable)
{
	((TQGLWidget*) QtSupport::getQt(env, obj))->setMouseTracking((bool) enable);
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QGLWidget_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQGLWidgetJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QGLWidget_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQGLWidgetJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_updateGL(JNIEnv* env, jobject obj)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->public_updateGL();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLWidget_updateOverlayGL(JNIEnv* env, jobject obj)
{
	((TQGLWidgetJBridge*) QtSupport::getQt(env, obj))->public_updateOverlayGL();
	return;
}

