//Auto-generated by kalyptus. DO NOT EDIT.
#include <qsizepolicy.h>
#include <qrect.h>
#include <qlayout.h>
#include <qsize.h>

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

class QSpacerItemJBridge : public QSpacerItem
{
public:
	QSpacerItemJBridge(int arg1,int arg2,QSizePolicy::SizeType arg3,QSizePolicy::SizeType arg4) : QSpacerItem(arg1,arg2,arg3,arg4) {};
	QSpacerItemJBridge(int arg1,int arg2,QSizePolicy::SizeType arg3) : QSpacerItem(arg1,arg2,arg3) {};
	QSpacerItemJBridge(int arg1,int arg2) : QSpacerItem(arg1,arg2) {};
	~QSpacerItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QSpacerItem_changeSize__II(JNIEnv* env, jobject obj, jint w, jint h)
{
	((QSpacerItem*) QtSupport::getQt(env, obj))->changeSize((int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSpacerItem_changeSize__III(JNIEnv* env, jobject obj, jint w, jint h, jint hData)
{
	((QSpacerItem*) QtSupport::getQt(env, obj))->changeSize((int) w, (int) h, (QSizePolicy::SizeType) hData);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSpacerItem_changeSize__IIII(JNIEnv* env, jobject obj, jint w, jint h, jint hData, jint vData)
{
	((QSpacerItem*) QtSupport::getQt(env, obj))->changeSize((int) w, (int) h, (QSizePolicy::SizeType) hData, (QSizePolicy::SizeType) vData);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSpacerItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSpacerItem_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSpacerItem_expanding(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QSpacerItem*) QtSupport::getQt(env, obj))->expanding();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSpacerItem_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((QLayoutItem*)(QSpacerItem*)QtSupport::getQt(env, obj))->layout() == 0 && ((QLayoutItem*)(QSpacerItem*)QtSupport::getQt(env, obj))->widget() == 0 && ((QLayoutItem*)(QSpacerItem*)QtSupport::getQt(env, obj))->spacerItem() == 0) {
		delete (QSpacerItem*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSpacerItem_geometry(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QSpacerItem*) QtSupport::getQt(env, obj))->geometry()), "org.kde.qt.QRect", TRUE);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSpacerItem_isEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSpacerItem*) QtSupport::getQt(env, obj))->isEmpty();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSpacerItem_maximumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QSpacerItem*) QtSupport::getQt(env, obj))->maximumSize()), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSpacerItem_minimumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QSpacerItem*) QtSupport::getQt(env, obj))->minimumSize()), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSpacerItem_newQSpacerItem__II(JNIEnv* env, jobject obj, jint w, jint h)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSpacerItemJBridge((int) w, (int) h));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSpacerItem_newQSpacerItem__III(JNIEnv* env, jobject obj, jint w, jint h, jint hData)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSpacerItemJBridge((int) w, (int) h, (QSizePolicy::SizeType) hData));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSpacerItem_newQSpacerItem__IIII(JNIEnv* env, jobject obj, jint w, jint h, jint hData, jint vData)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSpacerItemJBridge((int) w, (int) h, (QSizePolicy::SizeType) hData, (QSizePolicy::SizeType) vData));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSpacerItem_setGeometry(JNIEnv* env, jobject obj, jobject arg1)
{
	((QSpacerItem*) QtSupport::getQt(env, obj))->setGeometry((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSpacerItem_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QSpacerItem*) QtSupport::getQt(env, obj))->sizeHint()), "org.kde.qt.QSize", TRUE);
	return xret;
}

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

