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

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

class QFontJBridge : public QFont
{
public:
	QFontJBridge() : QFont() {};
	QFontJBridge(const QString& arg1,int arg2,int arg3,bool arg4) : QFont(arg1,arg2,arg3,arg4) {};
	QFontJBridge(const QString& arg1,int arg2,int arg3) : QFont(arg1,arg2,arg3) {};
	QFontJBridge(const QString& arg1,int arg2) : QFont(arg1,arg2) {};
	QFontJBridge(const QString& arg1) : QFont(arg1) {};
	QFontJBridge(const QFont& arg1) : QFont(arg1) {};
	bool protected_dirty() {
		return (bool) QFont::dirty();
	}
	int protected_deciPointSize() {
		return (int) QFont::deciPointSize();
	}
	~QFontJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_cacheStatistics(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	QFontJBridge::cacheStatistics();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_cleanup(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	QFontJBridge::cleanup();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QFont_deciPointSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QFontJBridge*) QtSupport::getQt(env, obj))->protected_deciPointSize();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFont_defaultFont(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QFontJBridge::defaultFont()), "org.kde.qt.QFont", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFont_dirty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QFontJBridge*) QtSupport::getQt(env, obj))->protected_dirty();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QFont_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFont_fromString(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QFont*) QtSupport::getQt(env, obj))->fromString((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QFont_handle(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QFont*) QtSupport::getQt(env, obj))->handle();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_initialize(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	QFontJBridge::initialize();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_insertSubstitution(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	QFontJBridge::insertSubstitution((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_insertSubstitutions(JNIEnv* env, jclass cls, jstring arg1, jobjectArray arg2)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
static QStringList* _qlist_arg2 = 0;
	QFontJBridge::insertSubstitutions((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, arg2, &_qlist_arg2));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFont_isCopyOf(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QFont*) QtSupport::getQt(env, obj))->isCopyOf((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1));
	return xret;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_newQFont__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QFontJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_newQFont__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring family)
{
static QString* _qstring_family = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QFontJBridge((const QString&)*(QString*) QtSupport::toQString(env, family, &_qstring_family)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_newQFont__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring family, jint pointSize)
{
static QString* _qstring_family = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QFontJBridge((const QString&)*(QString*) QtSupport::toQString(env, family, &_qstring_family), (int) pointSize));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_newQFont__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring family, jint pointSize, jint weight)
{
static QString* _qstring_family = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QFontJBridge((const QString&)*(QString*) QtSupport::toQString(env, family, &_qstring_family), (int) pointSize, (int) weight));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_newQFont__Ljava_lang_String_2IIZ(JNIEnv* env, jobject obj, jstring family, jint pointSize, jint weight, jboolean italic)
{
static QString* _qstring_family = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QFontJBridge((const QString&)*(QString*) QtSupport::toQString(env, family, &_qstring_family), (int) pointSize, (int) weight, (bool) italic));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFont_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QFont*) QtSupport::getQt(env, obj))->operator==((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFont_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QFont*) QtSupport::getQt(env, obj))->operator!=((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1));
	return xret;
}

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

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

JNIEXPORT jfloat JNICALL
Java_org_kde_qt_QFont_pointSizeFloat(JNIEnv* env, jobject obj)
{
	jfloat xret = (jfloat) ((QFont*) QtSupport::getQt(env, obj))->pointSizeFloat();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_removeSubstitution(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
	QFontJBridge::removeSubstitution((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFont_resolve(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(((QFont*) QtSupport::getQt(env, obj))->resolve((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1))), "org.kde.qt.QFont", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setBold(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setBold((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setDefaultFont(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	QFontJBridge::setDefaultFont((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setFamily(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	((QFont*) QtSupport::getQt(env, obj))->setFamily((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setFixedPitch(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setFixedPitch((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setItalic(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setItalic((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setOverline(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setOverline((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setPixelSizeFloat(JNIEnv* env, jobject obj, jfloat arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setPixelSizeFloat((float) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setPixelSize(JNIEnv* env, jobject obj, jint arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setPixelSize((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setPointSizeFloat(JNIEnv* env, jobject obj, jfloat arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setPointSizeFloat((float) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setPointSize(JNIEnv* env, jobject obj, jint arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setPointSize((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setRawMode(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setRawMode((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setRawName(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	((QFont*) QtSupport::getQt(env, obj))->setRawName((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setStretch(JNIEnv* env, jobject obj, jint arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setStretch((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setStrikeOut(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setStrikeOut((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setStyleHint__I(JNIEnv* env, jobject obj, jint arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setStyleHint((QFont::StyleHint) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setStyleHint__II(JNIEnv* env, jobject obj, jint arg1, jint arg2)
{
	((QFont*) QtSupport::getQt(env, obj))->setStyleHint((QFont::StyleHint) arg1, (QFont::StyleStrategy) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setStyleStrategy(JNIEnv* env, jobject obj, jint s)
{
	((QFont*) QtSupport::getQt(env, obj))->setStyleStrategy((QFont::StyleStrategy) s);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setUnderline(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setUnderline((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFont_setWeight(JNIEnv* env, jobject obj, jint arg1)
{
	((QFont*) QtSupport::getQt(env, obj))->setWeight((int) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QFont_stretch(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QFont*) QtSupport::getQt(env, obj))->stretch();
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QFont_styleStrategy(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QFont*) QtSupport::getQt(env, obj))->styleStrategy();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFont_substitute(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_arg1 = 0;
	_qstring = QFontJBridge::substitute((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFont_substitutes(JNIEnv* env, jclass cls, jstring arg1)
{
	QStringList  _qlist;
	(void) cls;
static QString* _qstring_arg1 = 0;
	_qlist = QFontJBridge::substitutes((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFont_substitutions(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = QFontJBridge::substitutions();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

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

