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

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

class QContextMenuEventJBridge : public QContextMenuEvent
{
public:
	QContextMenuEventJBridge(QContextMenuEvent::Reason arg1,const QPoint& arg2,const QPoint& arg3,int arg4) : QContextMenuEvent(arg1,arg2,arg3,arg4) {};
	QContextMenuEventJBridge(QContextMenuEvent::Reason arg1,const QPoint& arg2,int arg3) : QContextMenuEvent(arg1,arg2,arg3) {};
	~QContextMenuEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QContextMenuEvent_consume(JNIEnv* env, jobject obj)
{
	((QContextMenuEvent*) QtSupport::getQt(env, obj))->consume();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QContextMenuEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QContextMenuEvent_finalize(env, obj);
	return;
}

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QContextMenuEvent_isConsumed(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QContextMenuEvent*) QtSupport::getQt(env, obj))->isConsumed();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QContextMenuEvent_newQContextMenuEvent__ILorg_kde_qt_QPoint_2I(JNIEnv* env, jobject obj, jint reason, jobject pos, jint state)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QContextMenuEventJBridge((QContextMenuEvent::Reason) reason, (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QContextMenuEvent_newQContextMenuEvent__ILorg_kde_qt_QPoint_2Lorg_kde_qt_QPoint_2I(JNIEnv* env, jobject obj, jint reason, jobject pos, jobject globalPos, jint state)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QContextMenuEventJBridge((QContextMenuEvent::Reason) reason, (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, globalPos), (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QContextMenuEvent_reason(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QContextMenuEvent*) QtSupport::getQt(env, obj))->reason();
	return xret;
}

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

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

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

