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

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

class QCanvasPolygonJBridge : public QCanvasPolygon
{
public:
	QCanvasPolygonJBridge(QCanvas* arg1) : QCanvasPolygon(arg1) {};
	void protected_drawShape(QPainter& arg1) {
		QCanvasPolygon::drawShape(arg1);
		return;
	}
	~QCanvasPolygonJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasPolygon_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCanvasPolygon_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasPolygon_setPoints(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvasPolygon*) QtSupport::getQt(env, obj))->setPoints((QPointArray)*(QPointArray*) QtSupport::getQt(env, arg1));
	return;
}

