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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasPolygonalItem_areaPointsAdvanced(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPointArray(((TQCanvasPolygonalItem*) QtSupport::getQt(env, obj))->areaPointsAdvanced()), "org.trinitydesktop.qt.TQPointArray", TRUE);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasPolygonalItem_boundingRect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQCanvasPolygonalItem*) QtSupport::getQt(env, obj))->boundingRect()), "org.trinitydesktop.qt.TQRect", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasPolygonalItem_brush(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQBrush(((TQCanvasPolygonalItem*) QtSupport::getQt(env, obj))->brush()), "org.trinitydesktop.qt.TQBrush", TRUE);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasPolygonalItem_pen(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPen(((TQCanvasPolygonalItem*) QtSupport::getQt(env, obj))->pen()), "org.trinitydesktop.qt.TQPen", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPolygonalItem_setBrush(JNIEnv* env, jobject obj, jobject b)
{
	((TQCanvasPolygonalItem*) QtSupport::getQt(env, obj))->setBrush((TQBrush)*(TQBrush*) QtSupport::getQt(env, b));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPolygonalItem_setPen(JNIEnv* env, jobject obj, jobject p)
{
	((TQCanvasPolygonalItem*) QtSupport::getQt(env, obj))->setPen((TQPen)*(TQPen*) QtSupport::getQt(env, p));
	return;
}

