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

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

class QSizeJBridge : public QSize
{
public:
	QSizeJBridge() : QSize() {};
	QSizeJBridge(int arg1,int arg2) : QSize(arg1,arg2) {};
	~QSizeJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSize_boundedTo(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QSize*) QtSupport::getQt(env, obj))->boundedTo((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1))), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSize_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSize_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSize_expandedTo(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QSize*) QtSupport::getQt(env, obj))->expandedTo((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1))), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSize_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QSize*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSize_height(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QSize*) QtSupport::getQt(env, obj))->height();
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSize_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSize*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSize_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSize*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSize_op_1div_1assign__D(JNIEnv* env, jobject obj, jdouble c)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QSize *) &((QSize*) QtSupport::getQt(env, obj))->operator/=((double) c), "org.kde.qt.QSize");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSize_op_1div_1assign__I(JNIEnv* env, jobject obj, jint c)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QSize *) &((QSize*) QtSupport::getQt(env, obj))->operator/=((int) c), "org.kde.qt.QSize");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSize_op_1minus_1assign(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QSize *) &((QSize*) QtSupport::getQt(env, obj))->operator-=((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1)), "org.kde.qt.QSize");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSize_op_1mult_1assign__D(JNIEnv* env, jobject obj, jdouble c)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QSize *) &((QSize*) QtSupport::getQt(env, obj))->operator*=((double) c), "org.kde.qt.QSize");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSize_op_1mult_1assign__I(JNIEnv* env, jobject obj, jint c)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QSize *) &((QSize*) QtSupport::getQt(env, obj))->operator*=((int) c), "org.kde.qt.QSize");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSize_op_1plus_1assign(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QSize *) &((QSize*) QtSupport::getQt(env, obj))->operator+=((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1)), "org.kde.qt.QSize");
	return xret;
}

JNIEXPORT jshort JNICALL
Java_org_kde_qt_QSize_rheight(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((QSize*) QtSupport::getQt(env, obj))->rheight();
	return xret;
}

JNIEXPORT jshort JNICALL
Java_org_kde_qt_QSize_rwidth(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((QSize*) QtSupport::getQt(env, obj))->rwidth();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSize_scale__III(JNIEnv* env, jobject obj, jint w, jint h, jint mode)
{
	((QSize*) QtSupport::getQt(env, obj))->scale((int) w, (int) h, (QSize::ScaleMode) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSize_scale__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject s, jint mode)
{
	((QSize*) QtSupport::getQt(env, obj))->scale((const QSize&)*(const QSize*) QtSupport::getQt(env, s), (QSize::ScaleMode) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSize_setHeight(JNIEnv* env, jobject obj, jint h)
{
	((QSize*) QtSupport::getQt(env, obj))->setHeight((int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSize_setWidth(JNIEnv* env, jobject obj, jint w)
{
	((QSize*) QtSupport::getQt(env, obj))->setWidth((int) w);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSize_transpose(JNIEnv* env, jobject obj)
{
	((QSize*) QtSupport::getQt(env, obj))->transpose();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSize_width(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QSize*) QtSupport::getQt(env, obj))->width();
	return xret;
}

