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

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

class QCanvasSplineJBridge : public QCanvasSpline
{
public:
	QCanvasSplineJBridge(QCanvas* arg1) : QCanvasSpline(arg1) {};
	~QCanvasSplineJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QCanvasSpline_closed(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QCanvasSpline*) QtSupport::getQt(env, obj))->closed();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasSpline_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCanvasSpline_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasSpline_setControlPoints__Lorg_kde_qt_QPointArray_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvasSpline*) QtSupport::getQt(env, obj))->setControlPoints((QPointArray)*(QPointArray*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasSpline_setControlPoints__Lorg_kde_qt_QPointArray_2Z(JNIEnv* env, jobject obj, jobject arg1, jboolean closed)
{
	((QCanvasSpline*) QtSupport::getQt(env, obj))->setControlPoints((QPointArray)*(QPointArray*) QtSupport::getQt(env, arg1), (bool) closed);
	return;
}

