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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSize_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QSize_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

