//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <kwordwrap.h>
#include <tqstring.h>
#include <tqfontmetrics.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KWordWrap.h>

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KWordWrap_formatText__Lorg_trinitydesktop_qt_QFontMetrics_2Lorg_trinitydesktop_qt_QRect_2ILjava_lang_String_2(JNIEnv* env, jclass cls, jobject fm, jobject r, jint flags, jstring str)
{
	(void) cls;
static TQString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KWordWrap::formatText((TQFontMetrics&)*(TQFontMetrics*) QtSupport::getQt(env, fm), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, r), (int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str)), "org.trinitydesktop.koala.KWordWrap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KWordWrap_formatText__Lorg_trinitydesktop_qt_QFontMetrics_2Lorg_trinitydesktop_qt_QRect_2ILjava_lang_String_2I(JNIEnv* env, jclass cls, jobject fm, jobject r, jint flags, jstring str, jint len)
{
	(void) cls;
static TQString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KWordWrap::formatText((TQFontMetrics&)*(TQFontMetrics*) QtSupport::getQt(env, fm), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, r), (int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (int) len), "org.trinitydesktop.koala.KWordWrap");
	return xret;
}

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

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

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

