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

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

class TQWheelEventJBridge : public TQWheelEvent
{
public:
	TQWheelEventJBridge(const TQPoint& arg1,int arg2,int arg3,TQt::Orientation arg4) : TQWheelEvent(arg1,arg2,arg3,arg4) {};
	TQWheelEventJBridge(const TQPoint& arg1,int arg2,int arg3) : TQWheelEvent(arg1,arg2,arg3) {};
	TQWheelEventJBridge(const TQPoint& arg1,const TQPoint& arg2,int arg3,int arg4,TQt::Orientation arg5) : TQWheelEvent(arg1,arg2,arg3,arg4,arg5) {};
	TQWheelEventJBridge(const TQPoint& arg1,const TQPoint& arg2,int arg3,int arg4) : TQWheelEvent(arg1,arg2,arg3,arg4) {};
	~TQWheelEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QWheelEvent_delta(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQWheelEvent*) QtSupport::getQt(env, obj))->delta();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWheelEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QWheelEvent_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWheelEvent_newTQWheelEvent__Lorg_trinitydesktop_qt_QPoint_2II(JNIEnv* env, jobject obj, jobject pos, jint delta, jint state)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQWheelEventJBridge((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (int) delta, (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWheelEvent_newTQWheelEvent__Lorg_trinitydesktop_qt_QPoint_2III(JNIEnv* env, jobject obj, jobject pos, jint delta, jint state, jint orient)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQWheelEventJBridge((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (int) delta, (int) state, (TQt::Orientation) orient));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWheelEvent_newTQWheelEvent__Lorg_trinitydesktop_qt_QPoint_2Lorg_trinitydesktop_qt_QPoint_2II(JNIEnv* env, jobject obj, jobject pos, jobject globalPos, jint delta, jint state)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQWheelEventJBridge((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, globalPos), (int) delta, (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWheelEvent_newTQWheelEvent__Lorg_trinitydesktop_qt_QPoint_2Lorg_trinitydesktop_qt_QPoint_2III(JNIEnv* env, jobject obj, jobject pos, jobject globalPos, jint delta, jint state, jint orient)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQWheelEventJBridge((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, globalPos), (int) delta, (int) state, (TQt::Orientation) orient));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QWheelEvent_orientation(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQWheelEvent*) QtSupport::getQt(env, obj))->orientation();
	return xret;
}

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

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

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

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

