//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqcanvas.h>
#include <tqpointarray.h>
#include <tqpainter.h>

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

class TQCanvasEllipseJBridge : public TQCanvasEllipse
{
public:
	TQCanvasEllipseJBridge(TQCanvas* arg1) : TQCanvasEllipse(arg1) {};
	TQCanvasEllipseJBridge(int arg1,int arg2,TQCanvas* arg3) : TQCanvasEllipse(arg1,arg2,arg3) {};
	TQCanvasEllipseJBridge(int arg1,int arg2,int arg3,int arg4,TQCanvas* arg5) : TQCanvasEllipse(arg1,arg2,arg3,arg4,arg5) {};
	void protected_drawShape(TQPainter& arg1) {
		TQCanvasEllipse::drawShape(arg1);
		return;
	}
	~TQCanvasEllipseJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasEllipse_areaPoints(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPointArray(((TQCanvasEllipse*) QtSupport::getQt(env, obj))->areaPoints()), "org.trinitydesktop.qt.TQPointArray", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasEllipse_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCanvasEllipse_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasEllipse_drawShape(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvasEllipseJBridge*) QtSupport::getQt(env, obj))->protected_drawShape((TQPainter&)*(TQPainter*) QtSupport::getQt(env, arg1));
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasEllipse_newTQCanvasEllipse__IIIILorg_trinitydesktop_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 TQCanvasEllipseJBridge((int) width, (int) height, (int) startangle, (int) angle, (TQCanvas*) QtSupport::getQt(env, canvas)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

