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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasPolygonalItem_boundingRect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QCanvasPolygonalItem*) QtSupport::getQt(env, obj))->boundingRect()), "org.kde.qt.QRect", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasPolygonalItem_brush(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QBrush(((QCanvasPolygonalItem*) QtSupport::getQt(env, obj))->brush()), "org.kde.qt.QBrush", TRUE);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasPolygonalItem_pen(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPen(((QCanvasPolygonalItem*) QtSupport::getQt(env, obj))->pen()), "org.kde.qt.QPen", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasPolygonalItem_setBrush(JNIEnv* env, jobject obj, jobject b)
{
	((QCanvasPolygonalItem*) QtSupport::getQt(env, obj))->setBrush((QBrush)*(QBrush*) QtSupport::getQt(env, b));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasPolygonalItem_setPen(JNIEnv* env, jobject obj, jobject p)
{
	((QCanvasPolygonalItem*) QtSupport::getQt(env, obj))->setPen((QPen)*(QPen*) QtSupport::getQt(env, p));
	return;
}

