//Auto-generated by kalyptus. DO NOT EDIT.
#include <qcursor.h>
#include <qbitmap.h>
#include <qpixmap.h>
#include <qpoint.h>

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

class QCursorJBridge : public QCursor
{
public:
	QCursorJBridge() : QCursor() {};
	QCursorJBridge(int arg1) : QCursor(arg1) {};
	QCursorJBridge(const QBitmap& arg1,const QBitmap& arg2,int arg3,int arg4) : QCursor(arg1,arg2,arg3,arg4) {};
	QCursorJBridge(const QBitmap& arg1,const QBitmap& arg2,int arg3) : QCursor(arg1,arg2,arg3) {};
	QCursorJBridge(const QBitmap& arg1,const QBitmap& arg2) : QCursor(arg1,arg2) {};
	QCursorJBridge(const QPixmap& arg1,int arg2,int arg3) : QCursor(arg1,arg2,arg3) {};
	QCursorJBridge(const QPixmap& arg1,int arg2) : QCursor(arg1,arg2) {};
	QCursorJBridge(const QPixmap& arg1) : QCursor(arg1) {};
	QCursorJBridge(const QCursor& arg1) : QCursor(arg1) {};
	~QCursorJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCursor_bitmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QCursor*) QtSupport::getQt(env, obj))->bitmap(), "org.kde.qt.QBitmap");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCursor_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCursor_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCursor_hotSpot(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPoint(((QCursor*) QtSupport::getQt(env, obj))->hotSpot()), "org.kde.qt.QPoint", TRUE);
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCursor_mask(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QCursor*) QtSupport::getQt(env, obj))->mask(), "org.kde.qt.QBitmap");
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCursor_newQCursor__Lorg_kde_qt_QBitmap_2Lorg_kde_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 QCursorJBridge((const QBitmap&)*(const QBitmap*) QtSupport::getQt(env, bitmap), (const QBitmap&)*(const QBitmap*) QtSupport::getQt(env, mask), (int) hotX, (int) hotY));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCursor_pos(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPoint(QCursorJBridge::pos()), "org.kde.qt.QPoint", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCursor_setPos__Lorg_kde_qt_QPoint_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	QCursorJBridge::setPos((const QPoint&)*(const QPoint*) QtSupport::getQt(env, arg1));
	return;
}

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

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

