//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqpoint.h>
#include <tqregion.h>
#include <tqbitmap.h>
#include <tqpointarray.h>

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

class TQRegionJBridge : public TQRegion
{
public:
	TQRegionJBridge() : TQRegion() {};
	TQRegionJBridge(int arg1,int arg2,int arg3,int arg4,TQRegion::RegionType arg5) : TQRegion(arg1,arg2,arg3,arg4,arg5) {};
	TQRegionJBridge(int arg1,int arg2,int arg3,int arg4) : TQRegion(arg1,arg2,arg3,arg4) {};
	TQRegionJBridge(const TQRect& arg1,TQRegion::RegionType arg2) : TQRegion(arg1,arg2) {};
	TQRegionJBridge(const TQRect& arg1) : TQRegion(arg1) {};
	TQRegionJBridge(const TQPointArray& arg1,bool arg2) : TQRegion(arg1,arg2) {};
	TQRegionJBridge(const TQPointArray& arg1) : TQRegion(arg1) {};
	TQRegionJBridge(const TQRegion& arg1) : TQRegion(arg1) {};
	TQRegionJBridge(const TQBitmap& arg1) : TQRegion(arg1) {};
	~TQRegionJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QRegion_boundingRect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQRegion*) QtSupport::getQt(env, obj))->boundingRect()), "org.trinitydesktop.qt.TQRect", TRUE);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QRegion_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QRegion_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QRegion_newTQRegion__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 TQRegionJBridge((int) x, (int) y, (int) w, (int) h, (TQRegion::RegionType) arg5));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QRegion_newTQRegion__Lorg_trinitydesktop_qt_QRect_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQRegionJBridge((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1), (TQRegion::RegionType) arg2));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QRegion_rects(JNIEnv* env, jobject obj)
{
	TQMemArray<TQRect>  _qlist;
	_qlist = ((TQRegion*) QtSupport::getQt(env, obj))->rects();
	return (jobject) QtSupport::arrayWithTQRectList(env, (TQMemArray<TQRect>*) &_qlist);
}

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

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

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

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

