//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <qpoint.h>
#include <qregion.h>
#include <qbitmap.h>
#include <qpointarray.h>

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

class QRegionJBridge : public QRegion
{
public:
	QRegionJBridge() : QRegion() {};
	QRegionJBridge(int arg1,int arg2,int arg3,int arg4,QRegion::RegionType arg5) : QRegion(arg1,arg2,arg3,arg4,arg5) {};
	QRegionJBridge(int arg1,int arg2,int arg3,int arg4) : QRegion(arg1,arg2,arg3,arg4) {};
	QRegionJBridge(const QRect& arg1,QRegion::RegionType arg2) : QRegion(arg1,arg2) {};
	QRegionJBridge(const QRect& arg1) : QRegion(arg1) {};
	QRegionJBridge(const QPointArray& arg1,bool arg2) : QRegion(arg1,arg2) {};
	QRegionJBridge(const QPointArray& arg1) : QRegion(arg1) {};
	QRegionJBridge(const QRegion& arg1) : QRegion(arg1) {};
	QRegionJBridge(const QBitmap& arg1) : QRegion(arg1) {};
	~QRegionJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegion_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QRegion_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegion_newQRegion__IIIII(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h, jint arg5)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegionJBridge((int) x, (int) y, (int) w, (int) h, (QRegion::RegionType) arg5));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegion_newQRegion__Lorg_kde_qt_QBitmap_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegionJBridge((const QBitmap&)*(const QBitmap*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegion_newQRegion__Lorg_kde_qt_QPointArray_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegionJBridge((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegion_newQRegion__Lorg_kde_qt_QPointArray_2Z(JNIEnv* env, jobject obj, jobject arg1, jboolean winding)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegionJBridge((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, arg1), (bool) winding));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegion_newQRegion__Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegionJBridge((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegion_newQRegion__Lorg_kde_qt_QRect_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegionJBridge((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1), (QRegion::RegionType) arg2));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegion_newQRegion__Lorg_kde_qt_QRegion_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegionJBridge((const QRegion&)*(const QRegion*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegion_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QRegion*) QtSupport::getQt(env, obj))->operator==((const QRegion&)*(const QRegion*) QtSupport::getQt(env, arg1));
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegion_op_1not_1equals(JNIEnv* env, jobject obj, jobject r)
{
	jboolean xret = (jboolean) ((QRegion*) QtSupport::getQt(env, obj))->operator!=((const QRegion&)*(const QRegion*) QtSupport::getQt(env, r));
	return xret;
}

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QRegion_rects(JNIEnv* env, jobject obj)
{
	QMemArray<QRect>  _qlist;
	_qlist = ((QRegion*) QtSupport::getQt(env, obj))->rects();
	return (jobject) QtSupport::arrayWithQRectList(env, (QMemArray<QRect>*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegion_setRects(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	((QRegion*) QtSupport::getQt(env, obj))->setRects((const QRect*) QtSupport::getQt(env, arg1), (int) arg2);
	return;
}

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

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

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

