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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPolygonScanner_processSpans(JNIEnv* env, jobject obj, jint n, jobject point, jintArray width)
{
	int* _int_width = QtSupport::toIntPtr(env, width);
	((QPolygonScanner*) QtSupport::getQt(env, obj))->processSpans((int) n, (QPoint*) QtSupport::getQt(env, point),  (int*) _int_width);
	env->SetIntArrayRegion(width, 0, 1, (jint *) _int_width);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPolygonScanner_scan__Lorg_kde_qt_QPointArray_2Z(JNIEnv* env, jobject obj, jobject pa, jboolean winding)
{
	((QPolygonScanner*) QtSupport::getQt(env, obj))->scan((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, pa), (bool) winding);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPolygonScanner_scan__Lorg_kde_qt_QPointArray_2ZI(JNIEnv* env, jobject obj, jobject pa, jboolean winding, jint index)
{
	((QPolygonScanner*) QtSupport::getQt(env, obj))->scan((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, pa), (bool) winding, (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPolygonScanner_scan__Lorg_kde_qt_QPointArray_2ZII(JNIEnv* env, jobject obj, jobject pa, jboolean winding, jint index, jint npoints)
{
	((QPolygonScanner*) QtSupport::getQt(env, obj))->scan((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, pa), (bool) winding, (int) index, (int) npoints);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPolygonScanner_scan__Lorg_kde_qt_QPointArray_2ZIII(JNIEnv* env, jobject obj, jobject pa, jboolean winding, jint index, jint npoints, jint edges)
{
	((QPolygonScanner*) QtSupport::getQt(env, obj))->scan((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, pa), (bool) winding, (int) index, (int) npoints, (QPolygonScanner::Edge) edges);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPolygonScanner_scan__Lorg_kde_qt_QPointArray_2ZIIZ(JNIEnv* env, jobject obj, jobject pa, jboolean winding, jint index, jint npoints, jboolean stitchable)
{
	((QPolygonScanner*) QtSupport::getQt(env, obj))->scan((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, pa), (bool) winding, (int) index, (int) npoints, (bool) stitchable);
	return;
}

