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

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

class QPaintEventJBridge : public QPaintEvent
{
public:
	QPaintEventJBridge(const QRegion& arg1,bool arg2) : QPaintEvent(arg1,arg2) {};
	QPaintEventJBridge(const QRegion& arg1) : QPaintEvent(arg1) {};
	QPaintEventJBridge(const QRect& arg1,bool arg2) : QPaintEvent(arg1,arg2) {};
	QPaintEventJBridge(const QRect& arg1) : QPaintEvent(arg1) {};
	QPaintEventJBridge(const QRegion& arg1,const QRect& arg2,bool arg3) : QPaintEvent(arg1,arg2,arg3) {};
	QPaintEventJBridge(const QRegion& arg1,const QRect& arg2) : QPaintEvent(arg1,arg2) {};
	~QPaintEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QPaintEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QPaintEvent_finalize(env, obj);
	return;
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPaintEvent_newQPaintEvent__Lorg_kde_qt_QRegion_2Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject paintRegion, jobject paintRect)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPaintEventJBridge((const QRegion&)*(const QRegion*) QtSupport::getQt(env, paintRegion), (const QRect&)*(const QRect*) QtSupport::getQt(env, paintRect)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPaintEvent_newQPaintEvent__Lorg_kde_qt_QRegion_2Lorg_kde_qt_QRect_2Z(JNIEnv* env, jobject obj, jobject paintRegion, jobject paintRect, jboolean erased)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPaintEventJBridge((const QRegion&)*(const QRegion*) QtSupport::getQt(env, paintRegion), (const QRect&)*(const QRect*) QtSupport::getQt(env, paintRect), (bool) erased));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

