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

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

class TQContextMenuEventJBridge : public TQContextMenuEvent
{
public:
	TQContextMenuEventJBridge(TQContextMenuEvent::Reason arg1,const TQPoint& arg2,const TQPoint& arg3,int arg4) : TQContextMenuEvent(arg1,arg2,arg3,arg4) {};
	TQContextMenuEventJBridge(TQContextMenuEvent::Reason arg1,const TQPoint& arg2,int arg3) : TQContextMenuEvent(arg1,arg2,arg3) {};
	~TQContextMenuEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QContextMenuEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QContextMenuEvent_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QContextMenuEvent_newTQContextMenuEvent__ILorg_trinitydesktop_qt_QPoint_2Lorg_trinitydesktop_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 TQContextMenuEventJBridge((TQContextMenuEvent::Reason) reason, (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, globalPos), (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

