//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqcursor.h>
#include <tqbitmap.h>
#include <tqpixmap.h>
#include <tqpoint.h>

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

class TQCursorJBridge : public TQCursor
{
public:
	TQCursorJBridge() : TQCursor() {};
	TQCursorJBridge(int arg1) : TQCursor(arg1) {};
	TQCursorJBridge(const TQBitmap& arg1,const TQBitmap& arg2,int arg3,int arg4) : TQCursor(arg1,arg2,arg3,arg4) {};
	TQCursorJBridge(const TQBitmap& arg1,const TQBitmap& arg2,int arg3) : TQCursor(arg1,arg2,arg3) {};
	TQCursorJBridge(const TQBitmap& arg1,const TQBitmap& arg2) : TQCursor(arg1,arg2) {};
	TQCursorJBridge(const TQPixmap& arg1,int arg2,int arg3) : TQCursor(arg1,arg2,arg3) {};
	TQCursorJBridge(const TQPixmap& arg1,int arg2) : TQCursor(arg1,arg2) {};
	TQCursorJBridge(const TQPixmap& arg1) : TQCursor(arg1) {};
	TQCursorJBridge(const TQCursor& arg1) : TQCursor(arg1) {};
	~TQCursorJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCursor_bitmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQCursor*) QtSupport::getQt(env, obj))->bitmap(), "org.trinitydesktop.qt.TQBitmap");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_cleanup(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQCursorJBridge::cleanup();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCursor_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCursor_hotSpot(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPoint(((TQCursor*) QtSupport::getQt(env, obj))->hotSpot()), "org.trinitydesktop.qt.TQPoint", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_initialize(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQCursorJBridge::initialize();
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCursor_mask(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQCursor*) QtSupport::getQt(env, obj))->mask(), "org.trinitydesktop.qt.TQBitmap");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_newTQCursor__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCursorJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_newTQCursor__I(JNIEnv* env, jobject obj, jint shape)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCursorJBridge((int) shape));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_newTQCursor__Lorg_trinitydesktop_qt_QBitmap_2Lorg_trinitydesktop_qt_QBitmap_2(JNIEnv* env, jobject obj, jobject bitmap, jobject mask)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCursorJBridge((const TQBitmap&)*(const TQBitmap*) QtSupport::getQt(env, bitmap), (const TQBitmap&)*(const TQBitmap*) QtSupport::getQt(env, mask)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_newTQCursor__Lorg_trinitydesktop_qt_QBitmap_2Lorg_trinitydesktop_qt_QBitmap_2I(JNIEnv* env, jobject obj, jobject bitmap, jobject mask, jint hotX)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCursorJBridge((const TQBitmap&)*(const TQBitmap*) QtSupport::getQt(env, bitmap), (const TQBitmap&)*(const TQBitmap*) QtSupport::getQt(env, mask), (int) hotX));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_newTQCursor__Lorg_trinitydesktop_qt_QBitmap_2Lorg_trinitydesktop_qt_QBitmap_2II(JNIEnv* env, jobject obj, jobject bitmap, jobject mask, jint hotX, jint hotY)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCursorJBridge((const TQBitmap&)*(const TQBitmap*) QtSupport::getQt(env, bitmap), (const TQBitmap&)*(const TQBitmap*) QtSupport::getQt(env, mask), (int) hotX, (int) hotY));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_newTQCursor__Lorg_trinitydesktop_qt_QCursor_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCursorJBridge((const TQCursor&)*(const TQCursor*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_newTQCursor__Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject pixmap)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCursorJBridge((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_newTQCursor__Lorg_trinitydesktop_qt_QPixmap_2I(JNIEnv* env, jobject obj, jobject pixmap, jint hotX)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCursorJBridge((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (int) hotX));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_newTQCursor__Lorg_trinitydesktop_qt_QPixmap_2II(JNIEnv* env, jobject obj, jobject pixmap, jint hotX, jint hotY)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCursorJBridge((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (int) hotX, (int) hotY));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCursor_pos(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPoint(TQCursorJBridge::pos()), "org.trinitydesktop.qt.TQPoint", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_setPos__II(JNIEnv* env, jclass cls, jint x, jint y)
{
	(void) cls;
	(void) env;
	TQCursorJBridge::setPos((int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_setPos__Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQCursorJBridge::setPos((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCursor_setShape(JNIEnv* env, jobject obj, jint arg1)
{
	((TQCursor*) QtSupport::getQt(env, obj))->setShape((int) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCursor_shape(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCursor*) QtSupport::getQt(env, obj))->shape();
	return xret;
}

