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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QLayout_activate(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQLayout*) QtSupport::getQt(env, obj))->activate();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_addItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQLayout*) QtSupport::getQt(env, obj))->addItem((TQLayoutItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_add(JNIEnv* env, jobject obj, jobject w)
{
	((TQLayout*) QtSupport::getQt(env, obj))->add((TQWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QLayout_alignment(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQLayoutItem*)(TQLayout*) QtSupport::getQt(env, obj))->alignment();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QLayout_autoAdd(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQLayout*) QtSupport::getQt(env, obj))->autoAdd();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QLayout_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQLayout*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QLayout_defaultBorder(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQLayout*) QtSupport::getQt(env, obj))->defaultBorder();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_freeze__(JNIEnv* env, jobject obj)
{
	((TQLayout*) QtSupport::getQt(env, obj))->freeze();
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_invalidate(JNIEnv* env, jobject obj)
{
	((TQLayout*) QtSupport::getQt(env, obj))->invalidate();
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QLayout_isEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQLayout*) QtSupport::getQt(env, obj))->isEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QLayout_isTopLevel(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQLayout*) QtSupport::getQt(env, obj))->isTopLevel();
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QLayout_margin(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQLayout*) QtSupport::getQt(env, obj))->margin();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QLayout_menuBar(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQLayout*) QtSupport::getQt(env, obj))->menuBar(), "org.trinitydesktop.qt.TQMenuBar");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QLayout_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQLayout*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_removeItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQLayout*) QtSupport::getQt(env, obj))->removeItem((TQLayoutItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_remove(JNIEnv* env, jobject obj, jobject w)
{
	((TQLayout*) QtSupport::getQt(env, obj))->remove((TQWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QLayout_resizeMode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQLayout*) QtSupport::getQt(env, obj))->resizeMode();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_setAlignment(JNIEnv* env, jobject obj, jint a)
{
	((TQLayoutItem*)(TQLayout*) QtSupport::getQt(env, obj))->setAlignment((int) a);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_setAutoAdd(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQLayout*) QtSupport::getQt(env, obj))->setAutoAdd((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_setEnabled(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQLayout*) QtSupport::getQt(env, obj))->setEnabled((bool) arg1);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_setMargin(JNIEnv* env, jobject obj, jint arg1)
{
	((TQLayout*) QtSupport::getQt(env, obj))->setMargin((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_setMenuBar(JNIEnv* env, jobject obj, jobject w)
{
	((TQLayout*) QtSupport::getQt(env, obj))->setMenuBar((TQMenuBar*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_setResizeMode(JNIEnv* env, jobject obj, jint arg1)
{
	((TQLayout*) QtSupport::getQt(env, obj))->setResizeMode((TQLayout::ResizeMode) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QLayout_setSpacing(JNIEnv* env, jobject obj, jint arg1)
{
	((TQLayout*) QtSupport::getQt(env, obj))->setSpacing((int) arg1);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QLayout_spacerItem(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQLayoutItem*)(TQLayout*) QtSupport::getQt(env, obj))->spacerItem(), "org.trinitydesktop.qt.TQSpacerItem");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QLayout_spacing(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQLayout*) QtSupport::getQt(env, obj))->spacing();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QLayout_supportsMargin(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQLayout*) QtSupport::getQt(env, obj))->supportsMargin();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QLayout_totalHeightForWidth(JNIEnv* env, jobject obj, jint w)
{
	jint xret = (jint) ((TQLayout*) QtSupport::getQt(env, obj))->totalHeightForWidth((int) w);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QLayout_totalMaximumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQLayout*) QtSupport::getQt(env, obj))->totalMaximumSize()), "org.trinitydesktop.qt.TQSize", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QLayout_totalMinimumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQLayout*) QtSupport::getQt(env, obj))->totalMinimumSize()), "org.trinitydesktop.qt.TQSize", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QLayout_totalSizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQLayout*) QtSupport::getQt(env, obj))->totalSizeHint()), "org.trinitydesktop.qt.TQSize", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QLayout_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQLayout::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QLayout_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQLayout::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

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

