//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <kwordwrap.h>
#include <qstring.h>
#include <qfontmetrics.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KWordWrap.h>

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KWordWrap_drawFadeoutText(JNIEnv* env, jclass cls, jobject p, jint x, jint y, jint maxW, jstring t)
{
	(void) cls;
static QString* _qstring_t = 0;
	KWordWrap::drawFadeoutText((QPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (int) maxW, (const QString&)*(QString*) QtSupport::toQString(env, t, &_qstring_t));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KWordWrap_drawText__Lorg_kde_qt_QPainter_2II(JNIEnv* env, jobject obj, jobject painter, jint x, jint y)
{
	((KWordWrap*) QtSupport::getQt(env, obj))->drawText((QPainter*) QtSupport::getQt(env, painter), (int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KWordWrap_drawText__Lorg_kde_qt_QPainter_2III(JNIEnv* env, jobject obj, jobject painter, jint x, jint y, jint flags)
{
	((KWordWrap*) QtSupport::getQt(env, obj))->drawText((QPainter*) QtSupport::getQt(env, painter), (int) x, (int) y, (int) flags);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KWordWrap_drawTruncateText(JNIEnv* env, jclass cls, jobject p, jint x, jint y, jint maxW, jstring t)
{
	(void) cls;
static QString* _qstring_t = 0;
	KWordWrap::drawTruncateText((QPainter*) QtSupport::getQt(env, p), (int) x, (int) y, (int) maxW, (const QString&)*(QString*) QtSupport::toQString(env, t, &_qstring_t));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KWordWrap_formatText__Lorg_kde_qt_QFontMetrics_2Lorg_kde_qt_QRect_2ILjava_lang_String_2(JNIEnv* env, jclass cls, jobject fm, jobject r, jint flags, jstring str)
{
	(void) cls;
static QString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KWordWrap::formatText((QFontMetrics&)*(QFontMetrics*) QtSupport::getQt(env, fm), (const QRect&)*(const QRect*) QtSupport::getQt(env, r), (int) flags, (const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str)), "org.kde.koala.KWordWrap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KWordWrap_formatText__Lorg_kde_qt_QFontMetrics_2Lorg_kde_qt_QRect_2ILjava_lang_String_2I(JNIEnv* env, jclass cls, jobject fm, jobject r, jint flags, jstring str, jint len)
{
	(void) cls;
static QString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KWordWrap::formatText((QFontMetrics&)*(QFontMetrics*) QtSupport::getQt(env, fm), (const QRect&)*(const QRect*) QtSupport::getQt(env, r), (int) flags, (const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (int) len), "org.kde.koala.KWordWrap");
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KWordWrap_truncatedString__Z(JNIEnv* env, jobject obj, jboolean dots)
{
	QString  _qstring;
	_qstring = ((KWordWrap*) QtSupport::getQt(env, obj))->truncatedString((bool) dots);
	return QtSupport::fromQString(env, &_qstring);
}

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

