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

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

class TQCanvasSplineJBridge : public TQCanvasSpline
{
public:
	TQCanvasSplineJBridge(TQCanvas* arg1) : TQCanvasSpline(arg1) {};
	~TQCanvasSplineJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasSpline_controlPoints(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPointArray(((TQCanvasSpline*) QtSupport::getQt(env, obj))->controlPoints()), "org.trinitydesktop.qt.TQPointArray", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSpline_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCanvasSpline_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSpline_setControlPoints__Lorg_trinitydesktop_qt_QPointArray_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvasSpline*) QtSupport::getQt(env, obj))->setControlPoints((TQPointArray)*(TQPointArray*) QtSupport::getQt(env, arg1));
	return;
}

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

