//Auto-generated by kalyptus. DO NOT EDIT.
#include <qfontinfo.h>
#include <qfont.h>
#include <qstring.h>

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

class QFontInfoJBridge : public QFontInfo
{
public:
	QFontInfoJBridge(const QFont& arg1) : QFontInfo(arg1) {};
	QFontInfoJBridge(const QFont& arg1,QFont::Script arg2) : QFontInfo(arg1,arg2) {};
	QFontInfoJBridge(const QFontInfo& arg1) : QFontInfo(arg1) {};
	~QFontInfoJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFontInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QFontInfo_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

