//Auto-generated by kalyptus. DO NOT EDIT.
#include <qcanvas.h>
#include <qpointarray.h>
#include <qpainter.h>

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

class QCanvasEllipseJBridge : public QCanvasEllipse
{
public:
	QCanvasEllipseJBridge(QCanvas* arg1) : QCanvasEllipse(arg1) {};
	QCanvasEllipseJBridge(int arg1,int arg2,QCanvas* arg3) : QCanvasEllipse(arg1,arg2,arg3) {};
	QCanvasEllipseJBridge(int arg1,int arg2,int arg3,int arg4,QCanvas* arg5) : QCanvasEllipse(arg1,arg2,arg3,arg4,arg5) {};
	void protected_drawShape(QPainter& arg1) {
		QCanvasEllipse::drawShape(arg1);
		return;
	}
	~QCanvasEllipseJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvasEllipse_angleLength(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvasEllipse*) QtSupport::getQt(env, obj))->angleLength();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvasEllipse_angleStart(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvasEllipse*) QtSupport::getQt(env, obj))->angleStart();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QCanvasEllipse_collidesWith(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QCanvasEllipse*) QtSupport::getQt(env, obj))->collidesWith((const QCanvasItem*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasEllipse_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCanvasEllipse_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasEllipse_drawShape(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvasEllipseJBridge*) QtSupport::getQt(env, obj))->protected_drawShape((QPainter&)*(QPainter*) QtSupport::getQt(env, arg1));
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasEllipse_newQCanvasEllipse__IIIILorg_kde_qt_QCanvas_2(JNIEnv* env, jobject obj, jint width, jint height, jint startangle, jint angle, jobject canvas)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QCanvasEllipseJBridge((int) width, (int) height, (int) startangle, (int) angle, (QCanvas*) QtSupport::getQt(env, canvas)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasEllipse_newQCanvasEllipse__IILorg_kde_qt_QCanvas_2(JNIEnv* env, jobject obj, jint width, jint height, jobject canvas)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QCanvasEllipseJBridge((int) width, (int) height, (QCanvas*) QtSupport::getQt(env, canvas)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvasEllipse_rtti(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvasEllipse*) QtSupport::getQt(env, obj))->rtti();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasEllipse_setAngles(JNIEnv* env, jobject obj, jint start, jint length)
{
	((QCanvasEllipse*) QtSupport::getQt(env, obj))->setAngles((int) start, (int) length);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasEllipse_setSize(JNIEnv* env, jobject obj, jint w, jint h)
{
	((QCanvasEllipse*) QtSupport::getQt(env, obj))->setSize((int) w, (int) h);
	return;
}

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

