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

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

class TQCanvasLineJBridge : public TQCanvasLine
{
public:
	TQCanvasLineJBridge(TQCanvas* arg1) : TQCanvasLine(arg1) {};
	void protected_drawShape(TQPainter& arg1) {
		TQCanvasLine::drawShape(arg1);
		return;
	}
	TQPointArray protected_areaPoints() {
		return (TQPointArray) TQCanvasLine::areaPoints();
	}
	~TQCanvasLineJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasLine_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCanvasLine_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasLine_drawShape(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvasLineJBridge*) QtSupport::getQt(env, obj))->protected_drawShape((TQPainter&)*(TQPainter*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasLine_endPoint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPoint(((TQCanvasLine*) QtSupport::getQt(env, obj))->endPoint()), "org.trinitydesktop.qt.TQPoint", TRUE);
	return xret;
}

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasLine_startPoint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPoint(((TQCanvasLine*) QtSupport::getQt(env, obj))->startPoint()), "org.trinitydesktop.qt.TQPoint", TRUE);
	return xret;
}

