//Auto-generated by kalyptus. DO NOT EDIT.
#include <qpoint.h>
#include <qevent.h>
#include <qnamespace.h>

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

class QMouseEventJBridge : public QMouseEvent
{
public:
	QMouseEventJBridge(QEvent::Type arg1,const QPoint& arg2,int arg3,int arg4) : QMouseEvent(arg1,arg2,arg3,arg4) {};
	QMouseEventJBridge(QEvent::Type arg1,const QPoint& arg2,const QPoint& arg3,int arg4,int arg5) : QMouseEvent(arg1,arg2,arg3,arg4,arg5) {};
	~QMouseEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QMouseEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QMouseEvent_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMouseEvent_globalPos(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QPoint *) &((QMouseEvent*) QtSupport::getQt(env, obj))->globalPos(), "org.kde.qt.QPoint");
	return xret;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QMouseEvent_newQMouseEvent__ILorg_kde_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 QMouseEventJBridge((QEvent::Type) type, (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (int) button, (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMouseEvent_newQMouseEvent__ILorg_kde_qt_QPoint_2Lorg_kde_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 QMouseEventJBridge((QEvent::Type) type, (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, globalPos), (int) button, (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMouseEvent_pos(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QPoint *) &((QMouseEvent*) QtSupport::getQt(env, obj))->pos(), "org.kde.qt.QPoint");
	return xret;
}

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

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

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

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

