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

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

class QRectJBridge : public QRect
{
public:
	QRectJBridge() : QRect() {};
	QRectJBridge(const QPoint& arg1,const QPoint& arg2) : QRect(arg1,arg2) {};
	QRectJBridge(const QPoint& arg1,const QSize& arg2) : QRect(arg1,arg2) {};
	QRectJBridge(int arg1,int arg2,int arg3,int arg4) : QRect(arg1,arg2,arg3,arg4) {};
	~QRectJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_addCoords(JNIEnv* env, jobject obj, jint x1, jint y1, jint x2, jint y2)
{
	((QRect*) QtSupport::getQt(env, obj))->addCoords((int) x1, (int) y1, (int) x2, (int) y2);
	return;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRect_bottom(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QRect*) QtSupport::getQt(env, obj))->bottom();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRect_contains__II(JNIEnv* env, jobject obj, jint x, jint y)
{
	jboolean xret = (jboolean) ((QRect*) QtSupport::getQt(env, obj))->contains((int) x, (int) y);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRect_contains__IIZ(JNIEnv* env, jobject obj, jint x, jint y, jboolean proper)
{
	jboolean xret = (jboolean) ((QRect*) QtSupport::getQt(env, obj))->contains((int) x, (int) y, (bool) proper);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRect_contains__Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject p)
{
	jboolean xret = (jboolean) ((QRect*) QtSupport::getQt(env, obj))->contains((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRect_contains__Lorg_kde_qt_QPoint_2Z(JNIEnv* env, jobject obj, jobject p, jboolean proper)
{
	jboolean xret = (jboolean) ((QRect*) QtSupport::getQt(env, obj))->contains((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p), (bool) proper);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRect_contains__Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject r)
{
	jboolean xret = (jboolean) ((QRect*) QtSupport::getQt(env, obj))->contains((const QRect&)*(const QRect*) QtSupport::getQt(env, r));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRect_contains__Lorg_kde_qt_QRect_2Z(JNIEnv* env, jobject obj, jobject r, jboolean proper)
{
	jboolean xret = (jboolean) ((QRect*) QtSupport::getQt(env, obj))->contains((const QRect&)*(const QRect*) QtSupport::getQt(env, r), (bool) proper);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_coords(JNIEnv* env, jobject obj, jintArray x1, jintArray y1, jintArray x2, jintArray y2)
{
	int* _int_x1 = QtSupport::toIntPtr(env, x1);
	int* _int_y1 = QtSupport::toIntPtr(env, y1);
	int* _int_x2 = QtSupport::toIntPtr(env, x2);
	int* _int_y2 = QtSupport::toIntPtr(env, y2);
	((QRect*) QtSupport::getQt(env, obj))->coords( (int*) _int_x1,  (int*) _int_y1,  (int*) _int_x2,  (int*) _int_y2);
	env->SetIntArrayRegion(x1, 0, 1, (jint *) _int_x1);
	env->SetIntArrayRegion(y1, 0, 1, (jint *) _int_y1);
	env->SetIntArrayRegion(x2, 0, 1, (jint *) _int_x2);
	env->SetIntArrayRegion(y2, 0, 1, (jint *) _int_y2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QRect_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRect_intersects(JNIEnv* env, jobject obj, jobject r)
{
	jboolean xret = (jboolean) ((QRect*) QtSupport::getQt(env, obj))->intersects((const QRect&)*(const QRect*) QtSupport::getQt(env, r));
	return xret;
}

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

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

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRect_left(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QRect*) QtSupport::getQt(env, obj))->left();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveBottomLeft(JNIEnv* env, jobject obj, jobject p)
{
	((QRect*) QtSupport::getQt(env, obj))->moveBottomLeft((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveBottomRight(JNIEnv* env, jobject obj, jobject p)
{
	((QRect*) QtSupport::getQt(env, obj))->moveBottomRight((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveBottom(JNIEnv* env, jobject obj, jint pos)
{
	((QRect*) QtSupport::getQt(env, obj))->moveBottom((int) pos);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveBy(JNIEnv* env, jobject obj, jint dx, jint dy)
{
	((QRect*) QtSupport::getQt(env, obj))->moveBy((int) dx, (int) dy);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveCenter(JNIEnv* env, jobject obj, jobject p)
{
	((QRect*) QtSupport::getQt(env, obj))->moveCenter((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveLeft(JNIEnv* env, jobject obj, jint pos)
{
	((QRect*) QtSupport::getQt(env, obj))->moveLeft((int) pos);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveRight(JNIEnv* env, jobject obj, jint pos)
{
	((QRect*) QtSupport::getQt(env, obj))->moveRight((int) pos);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveTopLeft(JNIEnv* env, jobject obj, jobject p)
{
	((QRect*) QtSupport::getQt(env, obj))->moveTopLeft((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveTopRight(JNIEnv* env, jobject obj, jobject p)
{
	((QRect*) QtSupport::getQt(env, obj))->moveTopRight((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_moveTop(JNIEnv* env, jobject obj, jint pos)
{
	((QRect*) QtSupport::getQt(env, obj))->moveTop((int) pos);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_newQRect__IIII(JNIEnv* env, jobject obj, jint left, jint top, jint width, jint height)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRectJBridge((int) left, (int) top, (int) width, (int) height));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_newQRect__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject topleft, jobject bottomright)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRectJBridge((const QPoint&)*(const QPoint*) QtSupport::getQt(env, topleft), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, bottomright)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_newQRect__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QSize_2(JNIEnv* env, jobject obj, jobject topleft, jobject size)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRectJBridge((const QPoint&)*(const QPoint*) QtSupport::getQt(env, topleft), (const QSize&)*(const QSize*) QtSupport::getQt(env, size)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QRect_op_1or(JNIEnv* env, jobject obj, jobject r)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QRect*) QtSupport::getQt(env, obj))->operator|((const QRect&)*(const QRect*) QtSupport::getQt(env, r))), "org.kde.qt.QRect", TRUE);
	return xret;
}

JNIEXPORT jshort JNICALL
Java_org_kde_qt_QRect_rBottom(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((QRect*) QtSupport::getQt(env, obj))->rBottom();
	return xret;
}

JNIEXPORT jshort JNICALL
Java_org_kde_qt_QRect_rLeft(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((QRect*) QtSupport::getQt(env, obj))->rLeft();
	return xret;
}

JNIEXPORT jshort JNICALL
Java_org_kde_qt_QRect_rRight(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((QRect*) QtSupport::getQt(env, obj))->rRight();
	return xret;
}

JNIEXPORT jshort JNICALL
Java_org_kde_qt_QRect_rTop(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((QRect*) QtSupport::getQt(env, obj))->rTop();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_rect(JNIEnv* env, jobject obj, jintArray x, jintArray y, jintArray w, jintArray h)
{
	int* _int_x = QtSupport::toIntPtr(env, x);
	int* _int_y = QtSupport::toIntPtr(env, y);
	int* _int_w = QtSupport::toIntPtr(env, w);
	int* _int_h = QtSupport::toIntPtr(env, h);
	((QRect*) QtSupport::getQt(env, obj))->rect( (int*) _int_x,  (int*) _int_y,  (int*) _int_w,  (int*) _int_h);
	env->SetIntArrayRegion(x, 0, 1, (jint *) _int_x);
	env->SetIntArrayRegion(y, 0, 1, (jint *) _int_y);
	env->SetIntArrayRegion(w, 0, 1, (jint *) _int_w);
	env->SetIntArrayRegion(h, 0, 1, (jint *) _int_h);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRect_right(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QRect*) QtSupport::getQt(env, obj))->right();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setBottomLeft(JNIEnv* env, jobject obj, jobject p)
{
	((QRect*) QtSupport::getQt(env, obj))->setBottomLeft((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setBottomRight(JNIEnv* env, jobject obj, jobject p)
{
	((QRect*) QtSupport::getQt(env, obj))->setBottomRight((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setBottom(JNIEnv* env, jobject obj, jint pos)
{
	((QRect*) QtSupport::getQt(env, obj))->setBottom((int) pos);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setCoords(JNIEnv* env, jobject obj, jint x1, jint y1, jint x2, jint y2)
{
	((QRect*) QtSupport::getQt(env, obj))->setCoords((int) x1, (int) y1, (int) x2, (int) y2);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setLeft(JNIEnv* env, jobject obj, jint pos)
{
	((QRect*) QtSupport::getQt(env, obj))->setLeft((int) pos);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setRect(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h)
{
	((QRect*) QtSupport::getQt(env, obj))->setRect((int) x, (int) y, (int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setRight(JNIEnv* env, jobject obj, jint pos)
{
	((QRect*) QtSupport::getQt(env, obj))->setRight((int) pos);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setSize(JNIEnv* env, jobject obj, jobject s)
{
	((QRect*) QtSupport::getQt(env, obj))->setSize((const QSize&)*(const QSize*) QtSupport::getQt(env, s));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setTopLeft(JNIEnv* env, jobject obj, jobject p)
{
	((QRect*) QtSupport::getQt(env, obj))->setTopLeft((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setTopRight(JNIEnv* env, jobject obj, jobject p)
{
	((QRect*) QtSupport::getQt(env, obj))->setTopRight((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setTop(JNIEnv* env, jobject obj, jint pos)
{
	((QRect*) QtSupport::getQt(env, obj))->setTop((int) pos);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setX(JNIEnv* env, jobject obj, jint x)
{
	((QRect*) QtSupport::getQt(env, obj))->setX((int) x);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRect_setY(JNIEnv* env, jobject obj, jint y)
{
	((QRect*) QtSupport::getQt(env, obj))->setY((int) y);
	return;
}

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

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRect_top(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QRect*) QtSupport::getQt(env, obj))->top();
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRect_x(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QRect*) QtSupport::getQt(env, obj))->x();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRect_y(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QRect*) QtSupport::getQt(env, obj))->y();
	return xret;
}

