//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <qfont.h>
#include <qstring.h>
#include <qcanvas.h>
#include <qpainter.h>
#include <qcolor.h>

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

class QCanvasTextJBridge : public QCanvasText
{
public:
	QCanvasTextJBridge(QCanvas* arg1) : QCanvasText(arg1) {};
	QCanvasTextJBridge(const QString& arg1,QCanvas* arg2) : QCanvasText(arg1,arg2) {};
	QCanvasTextJBridge(const QString& arg1,QFont arg2,QCanvas* arg3) : QCanvasText(arg1,arg2,arg3) {};
	void protected_draw(QPainter& arg1) {
		QCanvasText::draw(arg1);
		return;
	}
	~QCanvasTextJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasText_boundingRect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QCanvasText*) QtSupport::getQt(env, obj))->boundingRect()), "org.kde.qt.QRect", TRUE);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasText_color(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(((QCanvasText*) QtSupport::getQt(env, obj))->color()), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasText_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCanvasText_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasText_draw(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvasTextJBridge*) QtSupport::getQt(env, obj))->protected_draw((QPainter&)*(QPainter*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasText_font(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(((QCanvasText*) QtSupport::getQt(env, obj))->font()), "org.kde.qt.QFont", TRUE);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasText_newQCanvasText__Ljava_lang_String_2Lorg_kde_qt_QCanvas_2(JNIEnv* env, jobject obj, jstring arg1, jobject canvas)
{
static QString* _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QCanvasTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (QCanvas*) QtSupport::getQt(env, canvas)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasText_newQCanvasText__Ljava_lang_String_2Lorg_kde_qt_QFont_2Lorg_kde_qt_QCanvas_2(JNIEnv* env, jobject obj, jstring arg1, jobject arg2, jobject canvas)
{
static QString* _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QCanvasTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (QFont)*(QFont*) QtSupport::getQt(env, arg2), (QCanvas*) QtSupport::getQt(env, canvas)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasText_setText(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	((QCanvasText*) QtSupport::getQt(env, obj))->setText((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QCanvasText_text(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QCanvasText*) QtSupport::getQt(env, obj))->text();
	return QtSupport::fromQString(env, &_qstring);
}

