//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsizepolicy.h>
#include <tqrect.h>
#include <tqlayout.h>
#include <tqsize.h>

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

class TQWidgetItemJBridge : public TQWidgetItem
{
public:
	TQWidgetItemJBridge(TQWidget* arg1) : TQWidgetItem(arg1) {};
	~TQWidgetItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWidgetItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QWidgetItem_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWidgetItem_geometry(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQWidgetItem*) QtSupport::getQt(env, obj))->geometry()), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWidgetItem_maximumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQWidgetItem*) QtSupport::getQt(env, obj))->maximumSize()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWidgetItem_minimumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQWidgetItem*) QtSupport::getQt(env, obj))->minimumSize()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWidgetItem_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQWidgetItem*) QtSupport::getQt(env, obj))->sizeHint()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWidgetItem_widget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQWidgetItem*) QtSupport::getQt(env, obj))->widget(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

