//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/QWidgetItem.h>

class QWidgetItemJBridge : public QWidgetItem
{
public:
	QWidgetItemJBridge(QWidget* arg1) : QWidgetItem(arg1) {};
	~QWidgetItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QWidgetItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QWidgetItem_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QWidgetItem_hasHeightForWidth(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QWidgetItem*) QtSupport::getQt(env, obj))->hasHeightForWidth();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QWidgetItem_heightForWidth(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((QWidgetItem*) QtSupport::getQt(env, obj))->heightForWidth((int) arg1);
	return xret;
}

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

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

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

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

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

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

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

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

