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

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

class TQResizeEventJBridge : public TQResizeEvent
{
public:
	TQResizeEventJBridge(const TQSize& arg1,const TQSize& arg2) : TQResizeEvent(arg1,arg2) {};
	~TQResizeEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QResizeEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QResizeEvent_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QResizeEvent_newTQResizeEvent(JNIEnv* env, jobject obj, jobject size, jobject oldSize)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQResizeEventJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, size), (const TQSize&)*(const TQSize*) QtSupport::getQt(env, oldSize)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QResizeEvent_oldSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQSize *) &((TQResizeEvent*) QtSupport::getQt(env, obj))->oldSize(), "org.trinitydesktop.qt.TQSize");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QResizeEvent_size(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQSize *) &((TQResizeEvent*) QtSupport::getQt(env, obj))->size(), "org.trinitydesktop.qt.TQSize");
	return xret;
}

