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

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

class TQMoveEventJBridge : public TQMoveEvent
{
public:
	TQMoveEventJBridge(const TQPoint& arg1,const TQPoint& arg2) : TQMoveEvent(arg1,arg2) {};
	~TQMoveEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMoveEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QMoveEvent_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMoveEvent_newTQMoveEvent(JNIEnv* env, jobject obj, jobject pos, jobject oldPos)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMoveEventJBridge((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, oldPos)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMoveEvent_oldPos(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQPoint *) &((TQMoveEvent*) QtSupport::getQt(env, obj))->oldPos(), "org.trinitydesktop.qt.TQPoint");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMoveEvent_pos(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQPoint *) &((TQMoveEvent*) QtSupport::getQt(env, obj))->pos(), "org.trinitydesktop.qt.TQPoint");
	return xret;
}

