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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QLayout_addItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((QLayout*) QtSupport::getQt(env, obj))->addItem((QLayoutItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QLayout_add(JNIEnv* env, jobject obj, jobject w)
{
	((QLayout*) QtSupport::getQt(env, obj))->add((QWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QLayout_alignment(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QLayoutItem*)(QLayout*) QtSupport::getQt(env, obj))->alignment();
	return xret;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QLayout_removeItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((QLayout*) QtSupport::getQt(env, obj))->removeItem((QLayoutItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QLayout_remove(JNIEnv* env, jobject obj, jobject w)
{
	((QLayout*) QtSupport::getQt(env, obj))->remove((QWidget*) QtSupport::getQt(env, w));
	return;
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QLayout_setMenuBar(JNIEnv* env, jobject obj, jobject w)
{
	((QLayout*) QtSupport::getQt(env, obj))->setMenuBar((QMenuBar*) QtSupport::getQt(env, w));
	return;
}

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

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

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

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

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

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QLayout_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QLayout::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QLayout_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QLayout::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

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

