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

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

class TQPaintEventJBridge : public TQPaintEvent
{
public:
	TQPaintEventJBridge(const TQRegion& arg1,bool arg2) : TQPaintEvent(arg1,arg2) {};
	TQPaintEventJBridge(const TQRegion& arg1) : TQPaintEvent(arg1) {};
	TQPaintEventJBridge(const TQRect& arg1,bool arg2) : TQPaintEvent(arg1,arg2) {};
	TQPaintEventJBridge(const TQRect& arg1) : TQPaintEvent(arg1) {};
	TQPaintEventJBridge(const TQRegion& arg1,const TQRect& arg2,bool arg3) : TQPaintEvent(arg1,arg2,arg3) {};
	TQPaintEventJBridge(const TQRegion& arg1,const TQRect& arg2) : TQPaintEvent(arg1,arg2) {};
	~TQPaintEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QPaintEvent_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPaintEvent_erased(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPaintEvent*) QtSupport::getQt(env, obj))->erased();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintEvent_newTQPaintEvent__Lorg_trinitydesktop_qt_QRect_2Z(JNIEnv* env, jobject obj, jobject paintRect, jboolean erased)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPaintEventJBridge((const TQRect&)*(const TQRect*) QtSupport::getQt(env, paintRect), (bool) erased));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintEvent_newTQPaintEvent__Lorg_trinitydesktop_qt_QRegion_2Lorg_trinitydesktop_qt_QRect_2(JNIEnv* env, jobject obj, jobject paintRegion, jobject paintRect)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPaintEventJBridge((const TQRegion&)*(const TQRegion*) QtSupport::getQt(env, paintRegion), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, paintRect)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintEvent_newTQPaintEvent__Lorg_trinitydesktop_qt_QRegion_2Lorg_trinitydesktop_qt_QRect_2Z(JNIEnv* env, jobject obj, jobject paintRegion, jobject paintRect, jboolean erased)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPaintEventJBridge((const TQRegion&)*(const TQRegion*) QtSupport::getQt(env, paintRegion), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, paintRect), (bool) erased));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintEvent_newTQPaintEvent__Lorg_trinitydesktop_qt_QRegion_2Z(JNIEnv* env, jobject obj, jobject paintRegion, jboolean erased)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPaintEventJBridge((const TQRegion&)*(const TQRegion*) QtSupport::getQt(env, paintRegion), (bool) erased));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPaintEvent_rect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQRect *) &((TQPaintEvent*) QtSupport::getQt(env, obj))->rect(), "org.trinitydesktop.qt.TQRect");
	return xret;
}

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

