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

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

class TQMouseEventJBridge : public TQMouseEvent
{
public:
	TQMouseEventJBridge(TQEvent::Type arg1,const TQPoint& arg2,int arg3,int arg4) : TQMouseEvent(arg1,arg2,arg3,arg4) {};
	TQMouseEventJBridge(TQEvent::Type arg1,const TQPoint& arg2,const TQPoint& arg3,int arg4,int arg5) : TQMouseEvent(arg1,arg2,arg3,arg4,arg5) {};
	~TQMouseEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_accept(JNIEnv* env, jobject obj)
{
	((TQMouseEvent*) QtSupport::getQt(env, obj))->accept();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_button(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMouseEvent*) QtSupport::getQt(env, obj))->button();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QMouseEvent_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_globalX(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMouseEvent*) QtSupport::getQt(env, obj))->globalX();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_globalY(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMouseEvent*) QtSupport::getQt(env, obj))->globalY();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_ignore(JNIEnv* env, jobject obj)
{
	((TQMouseEvent*) QtSupport::getQt(env, obj))->ignore();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_isAccepted(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMouseEvent*) QtSupport::getQt(env, obj))->isAccepted();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_newTQMouseEvent__ILorg_trinitydesktop_qt_QPoint_2II(JNIEnv* env, jobject obj, jint type, jobject pos, jint button, jint state)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMouseEventJBridge((TQEvent::Type) type, (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (int) button, (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_newTQMouseEvent__ILorg_trinitydesktop_qt_QPoint_2Lorg_trinitydesktop_qt_QPoint_2II(JNIEnv* env, jobject obj, jint type, jobject pos, jobject globalPos, jint button, jint state)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMouseEventJBridge((TQEvent::Type) type, (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, globalPos), (int) button, (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_stateAfter(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMouseEvent*) QtSupport::getQt(env, obj))->stateAfter();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_state(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMouseEvent*) QtSupport::getQt(env, obj))->state();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_x(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMouseEvent*) QtSupport::getQt(env, obj))->x();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMouseEvent_y(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMouseEvent*) QtSupport::getQt(env, obj))->y();
	return xret;
}

