//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqfont.h>
#include <tqstring.h>
#include <tqcanvas.h>
#include <tqpainter.h>
#include <tqcolor.h>

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

class TQCanvasTextJBridge : public TQCanvasText
{
public:
	TQCanvasTextJBridge(TQCanvas* arg1) : TQCanvasText(arg1) {};
	TQCanvasTextJBridge(const TQString& arg1,TQCanvas* arg2) : TQCanvasText(arg1,arg2) {};
	TQCanvasTextJBridge(const TQString& arg1,TQFont arg2,TQCanvas* arg3) : TQCanvasText(arg1,arg2,arg3) {};
	void protected_draw(TQPainter& arg1) {
		TQCanvasText::draw(arg1);
		return;
	}
	~TQCanvasTextJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasText_color(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQColor(((TQCanvasText*) QtSupport::getQt(env, obj))->color()), "org.trinitydesktop.qt.TQColor", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasText_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCanvasText_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasText_draw(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvasTextJBridge*) QtSupport::getQt(env, obj))->protected_draw((TQPainter&)*(TQPainter*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasText_font(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(((TQCanvasText*) QtSupport::getQt(env, obj))->font()), "org.trinitydesktop.qt.TQFont", TRUE);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasText_newTQCanvasText__Ljava_lang_String_2Lorg_trinitydesktop_qt_QCanvas_2(JNIEnv* env, jobject obj, jstring arg1, jobject canvas)
{
static TQString* _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCanvasTextJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (TQCanvas*) QtSupport::getQt(env, canvas)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasText_newTQCanvasText__Ljava_lang_String_2Lorg_trinitydesktop_qt_QFont_2Lorg_trinitydesktop_qt_QCanvas_2(JNIEnv* env, jobject obj, jstring arg1, jobject arg2, jobject canvas)
{
static TQString* _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCanvasTextJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (TQFont)*(TQFont*) QtSupport::getQt(env, arg2), (TQCanvas*) QtSupport::getQt(env, canvas)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasText_setColor(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvasText*) QtSupport::getQt(env, obj))->setColor((const TQColor&)*(const TQColor*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasText_setFont(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvasText*) QtSupport::getQt(env, obj))->setFont((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasText_setTextFlags(JNIEnv* env, jobject obj, jint arg1)
{
	((TQCanvasText*) QtSupport::getQt(env, obj))->setTextFlags((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasText_setText(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQCanvasText*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasText_textFlags(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCanvasText*) QtSupport::getQt(env, obj))->textFlags();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QCanvasText_text(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQCanvasText*) QtSupport::getQt(env, obj))->text();
	return QtSupport::fromTQString(env, &_qstring);
}

