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

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

class TQFontMetricsJBridge : public TQFontMetrics
{
public:
	TQFontMetricsJBridge(const TQFont& arg1) : TQFontMetrics(arg1) {};
	TQFontMetricsJBridge(const TQFont& arg1,TQFont::Script arg2) : TQFontMetrics(arg1,arg2) {};
	TQFontMetricsJBridge(const TQFontMetrics& arg1) : TQFontMetrics(arg1) {};
	~TQFontMetricsJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_ascent(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->ascent();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_boundingRect__C(JNIEnv* env, jobject obj, jchar arg1)
{
static TQChar* _qchar_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQFontMetrics*) QtSupport::getQt(env, obj))->boundingRect((TQChar)*(TQChar*) QtSupport::toTQChar(env, arg1, &_qchar_arg1))), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_boundingRect__IIIIILjava_lang_String_2(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h, jint flags, jstring str)
{
static TQString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQFontMetrics*) QtSupport::getQt(env, obj))->boundingRect((int) x, (int) y, (int) w, (int) h, (int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str))), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_boundingRect__IIIIILjava_lang_String_2I(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h, jint flags, jstring str, jint len)
{
static TQString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQFontMetrics*) QtSupport::getQt(env, obj))->boundingRect((int) x, (int) y, (int) w, (int) h, (int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (int) len)), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_boundingRect__IIIIILjava_lang_String_2II(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h, jint flags, jstring str, jint len, jint tabstops)
{
static TQString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQFontMetrics*) QtSupport::getQt(env, obj))->boundingRect((int) x, (int) y, (int) w, (int) h, (int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (int) len, (int) tabstops)), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_boundingRect__IIIIILjava_lang_String_2II_3I(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h, jint flags, jstring str, jint len, jint tabstops, jintArray tabarray)
{
static TQString* _qstring_str = 0;
	int* _int_tabarray = QtSupport::toIntPtr(env, tabarray);
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQFontMetrics*) QtSupport::getQt(env, obj))->boundingRect((int) x, (int) y, (int) w, (int) h, (int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (int) len, (int) tabstops,  (int*) _int_tabarray)), "org.trinitydesktop.qt.TQRect", true);
	env->SetIntArrayRegion(tabarray, 0, 1, (jint *) _int_tabarray);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_boundingRect__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQFontMetrics*) QtSupport::getQt(env, obj))->boundingRect((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1))), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_boundingRect__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jint len)
{
static TQString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQFontMetrics*) QtSupport::getQt(env, obj))->boundingRect((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (int) len)), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_charWidth(JNIEnv* env, jobject obj, jstring str, jint pos)
{
static TQString* _qstring_str = 0;
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->charWidth((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (int) pos);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_descent(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->descent();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QFontMetrics_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_height(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->height();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_inFont(JNIEnv* env, jobject obj, jchar arg1)
{
static TQChar* _qchar_arg1 = 0;
	jboolean xret = (jboolean) ((TQFontMetrics*) QtSupport::getQt(env, obj))->inFont((TQChar)*(TQChar*) QtSupport::toTQChar(env, arg1, &_qchar_arg1));
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_leading(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->leading();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_leftBearing(JNIEnv* env, jobject obj, jchar arg1)
{
static TQChar* _qchar_arg1 = 0;
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->leftBearing((TQChar)*(TQChar*) QtSupport::toTQChar(env, arg1, &_qchar_arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_lineSpacing(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->lineSpacing();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_lineWidth(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->lineWidth();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_maxWidth(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->maxWidth();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_minLeftBearing(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->minLeftBearing();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_minRightBearing(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->minRightBearing();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_newTQFontMetrics__Lorg_trinitydesktop_qt_QFontMetrics_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQFontMetricsJBridge((const TQFontMetrics&)*(const TQFontMetrics*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_newTQFontMetrics__Lorg_trinitydesktop_qt_QFont_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQFontMetricsJBridge((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_newTQFontMetrics__Lorg_trinitydesktop_qt_QFont_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQFontMetricsJBridge((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1), (TQFont::Script) arg2));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_overlinePos(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->overlinePos();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_rightBearing(JNIEnv* env, jobject obj, jchar arg1)
{
static TQChar* _qchar_arg1 = 0;
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->rightBearing((TQChar)*(TQChar*) QtSupport::toTQChar(env, arg1, &_qchar_arg1));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_size__ILjava_lang_String_2(JNIEnv* env, jobject obj, jint flags, jstring str)
{
static TQString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQFontMetrics*) QtSupport::getQt(env, obj))->size((int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str))), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_size__ILjava_lang_String_2I(JNIEnv* env, jobject obj, jint flags, jstring str, jint len)
{
static TQString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQFontMetrics*) QtSupport::getQt(env, obj))->size((int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (int) len)), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_size__ILjava_lang_String_2II(JNIEnv* env, jobject obj, jint flags, jstring str, jint len, jint tabstops)
{
static TQString* _qstring_str = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQFontMetrics*) QtSupport::getQt(env, obj))->size((int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (int) len, (int) tabstops)), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_size__ILjava_lang_String_2II_3I(JNIEnv* env, jobject obj, jint flags, jstring str, jint len, jint tabstops, jintArray tabarray)
{
static TQString* _qstring_str = 0;
	int* _int_tabarray = QtSupport::toIntPtr(env, tabarray);
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQFontMetrics*) QtSupport::getQt(env, obj))->size((int) flags, (const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (int) len, (int) tabstops,  (int*) _int_tabarray)), "org.trinitydesktop.qt.TQSize", true);
	env->SetIntArrayRegion(tabarray, 0, 1, (jint *) _int_tabarray);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_strikeOutPos(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->strikeOutPos();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_underlinePos(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->underlinePos();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_width__C(JNIEnv* env, jobject obj, jchar arg1)
{
static TQChar* _qchar_arg1 = 0;
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->width((TQChar)*(TQChar*) QtSupport::toTQChar(env, arg1, &_qchar_arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_width__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->width((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontMetrics_width__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jint len)
{
static TQString* _qstring_arg1 = 0;
	jint xret = (jint) ((TQFontMetrics*) QtSupport::getQt(env, obj))->width((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (int) len);
	return xret;
}

