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

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

class QCanvasLineJBridge : public QCanvasLine
{
public:
	QCanvasLineJBridge(QCanvas* arg1) : QCanvasLine(arg1) {};
	void protected_drawShape(QPainter& arg1) {
		QCanvasLine::drawShape(arg1);
		return;
	}
	QPointArray protected_areaPoints() {
		return (QPointArray) QCanvasLine::areaPoints();
	}
	~QCanvasLineJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasLine_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCanvasLine_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasLine_endPoint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPoint(((QCanvasLine*) QtSupport::getQt(env, obj))->endPoint()), "org.kde.qt.QPoint", TRUE);
	return xret;
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasLine_setPoints(JNIEnv* env, jobject obj, jint x1, jint y1, jint x2, jint y2)
{
	((QCanvasLine*) QtSupport::getQt(env, obj))->setPoints((int) x1, (int) y1, (int) x2, (int) y2);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasLine_startPoint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPoint(((QCanvasLine*) QtSupport::getQt(env, obj))->startPoint()), "org.kde.qt.QPoint", TRUE);
	return xret;
}

