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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontInfo_bold(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFontInfo*) QtSupport::getQt(env, obj))->bold();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFontInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QFontInfo_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontInfo_exactMatch(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFontInfo*) QtSupport::getQt(env, obj))->exactMatch();
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontInfo_fixedPitch(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFontInfo*) QtSupport::getQt(env, obj))->fixedPitch();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontInfo_italic(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFontInfo*) QtSupport::getQt(env, obj))->italic();
	return xret;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontInfo_overline(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFontInfo*) QtSupport::getQt(env, obj))->overline();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontInfo_pixelSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontInfo*) QtSupport::getQt(env, obj))->pixelSize();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontInfo_pointSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontInfo*) QtSupport::getQt(env, obj))->pointSize();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontInfo_rawMode(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFontInfo*) QtSupport::getQt(env, obj))->rawMode();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontInfo_strikeOut(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFontInfo*) QtSupport::getQt(env, obj))->strikeOut();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontInfo_styleHint(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontInfo*) QtSupport::getQt(env, obj))->styleHint();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontInfo_underline(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFontInfo*) QtSupport::getQt(env, obj))->underline();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFontInfo_weight(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontInfo*) QtSupport::getQt(env, obj))->weight();
	return xret;
}

