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

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

class TQCanvasPolygonJBridge : public TQCanvasPolygon
{
public:
	TQCanvasPolygonJBridge(TQCanvas* arg1) : TQCanvasPolygon(arg1) {};
	void protected_drawShape(TQPainter& arg1) {
		TQCanvasPolygon::drawShape(arg1);
		return;
	}
	~TQCanvasPolygonJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPolygon_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCanvasPolygon_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPolygon_moveBy(JNIEnv* env, jobject obj, jdouble dx, jdouble dy)
{
	((TQCanvasPolygon*) QtSupport::getQt(env, obj))->moveBy((double) dx, (double) dy);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPolygon_setPoints(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvasPolygon*) QtSupport::getQt(env, obj))->setPoints((TQPointArray)*(TQPointArray*) QtSupport::getQt(env, arg1));
	return;
}

