/***************************************************************************
                            qt_QFont.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QFont.h"
}

#include <qfont.h>
#include <qstringlist.h>

class QFontBridge : public QFont
{
public:
	QFontBridge() : QFont() {}
	QFontBridge(const QString& family, int pointSize, int weight, bool italic) : QFont(family, pointSize, weight, italic) {}
	QFontBridge(const QFont& arg1) : QFont(arg1) {}
	~QFontBridge() {}
	bool  protected_dirty() {
		return (bool ) QFont::dirty();
	}
	int  protected_deciPointSize() {
		return (int ) QFont::deciPointSize();
	}
};

qt_QFont * qt_new_QFont(){
	return (qt_QFont *) new QFontBridge();
}
qt_QFont * qt_new_QFont1(qt_QString * family, int pointSize, int weight, int italic){
	return (qt_QFont *) new QFontBridge((QString&)* (QString*)family, (int)pointSize, (int)weight, (bool)italic);
}
qt_QFont * qt_new_QFont2(qt_QFont * arg1){
	return (qt_QFont *) new QFontBridge((QFont&)* (QFont*)arg1);
}
void qt_del_QFont( qt_QFont* p ){
	delete (QFontBridge*) p;
}
qt_QString * qt_QFont_family( qt_QFont* instPointer){
	return (qt_QString *)new QString(((QFontBridge*)instPointer)->family());
}
void qt_QFont_setFamily( qt_QFont* instPointer,qt_QString * arg1){
	((QFontBridge*)instPointer)->setFamily((QString&)* (QString*)arg1);
	return;
}
int qt_QFont_pointSize( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->pointSize();
}
float qt_QFont_pointSizeFloat( qt_QFont* instPointer){
	return (float) ((QFontBridge*)instPointer)->pointSizeFloat();
}
void qt_QFont_setPointSize( qt_QFont* instPointer,int arg1){
	((QFontBridge*)instPointer)->setPointSize((int)arg1);
	return;
}
void qt_QFont_setPointSizeFloat( qt_QFont* instPointer,float arg1){
	((QFontBridge*)instPointer)->setPointSizeFloat((float)arg1);
	return;
}
int qt_QFont_pixelSize( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->pixelSize();
}
void qt_QFont_setPixelSize( qt_QFont* instPointer,int arg1){
	((QFontBridge*)instPointer)->setPixelSize((int)arg1);
	return;
}
void qt_QFont_setPixelSizeFloat( qt_QFont* instPointer,float arg1){
	((QFontBridge*)instPointer)->setPixelSizeFloat((float)arg1);
	return;
}
int qt_QFont_weight( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->weight();
}
void qt_QFont_setWeight( qt_QFont* instPointer,int arg1){
	((QFontBridge*)instPointer)->setWeight((int)arg1);
	return;
}
int qt_QFont_bold( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->bold();
}
void qt_QFont_setBold( qt_QFont* instPointer,int arg1){
	((QFontBridge*)instPointer)->setBold((bool)arg1);
	return;
}
int qt_QFont_italic( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->italic();
}
void qt_QFont_setItalic( qt_QFont* instPointer,int arg1){
	((QFontBridge*)instPointer)->setItalic((bool)arg1);
	return;
}
int qt_QFont_underline( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->underline();
}
void qt_QFont_setUnderline( qt_QFont* instPointer,int arg1){
	((QFontBridge*)instPointer)->setUnderline((bool)arg1);
	return;
}
int qt_QFont_strikeOut( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->strikeOut();
}
void qt_QFont_setStrikeOut( qt_QFont* instPointer,int arg1){
	((QFontBridge*)instPointer)->setStrikeOut((bool)arg1);
	return;
}
int qt_QFont_fixedPitch( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->fixedPitch();
}
void qt_QFont_setFixedPitch( qt_QFont* instPointer,int arg1){
	((QFontBridge*)instPointer)->setFixedPitch((bool)arg1);
	return;
}
int qt_QFont_styleHint( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->styleHint();
}
int qt_QFont_styleStrategy( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->styleStrategy();
}
void qt_QFont_setStyleHint( qt_QFont* instPointer,int arg1, int arg2){
	((QFontBridge*)instPointer)->setStyleHint((QFont::StyleHint)arg1, (QFont::StyleStrategy)arg2);
	return;
}
void qt_QFont_setStyleStrategy( qt_QFont* instPointer,int s){
	((QFontBridge*)instPointer)->setStyleStrategy((QFont::StyleStrategy)s);
	return;
}
int qt_QFont_rawMode( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->rawMode();
}
void qt_QFont_setRawMode( qt_QFont* instPointer,int arg1){
	((QFontBridge*)instPointer)->setRawMode((bool)arg1);
	return;
}
int qt_QFont_exactMatch( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->exactMatch();
}
int qt_QFont_isCopyOf( qt_QFont* instPointer,qt_QFont * arg1){
	return (int) ((QFontBridge*)instPointer)->isCopyOf((QFont&)* (QFont*)arg1);
}
void * qt_QFont_handle( qt_QFont* instPointer){
	return (void *) ((QFontBridge*)instPointer)->handle();
}
Qt::HANDLE qt_QFont_handle1( qt_QFont* instPointer){
	return (Qt::HANDLE) ((QFontBridge*)instPointer)->handle();
}
void qt_QFont_setRawName( qt_QFont* instPointer,qt_QString * arg1){
	((QFontBridge*)instPointer)->setRawName((QString&)* (QString*)arg1);
	return;
}
qt_QString * qt_QFont_rawName( qt_QFont* instPointer){
	return (qt_QString *)new QString(((QFontBridge*)instPointer)->rawName());
}
qt_QString * qt_QFont_key( qt_QFont* instPointer){
	return (qt_QString *)new QString(((QFontBridge*)instPointer)->key());
}
qt_QString * qt_QFont_toString( qt_QFont* instPointer){
	return (qt_QString *)new QString(((QFontBridge*)instPointer)->toString());
}
int qt_QFont_fromString( qt_QFont* instPointer,qt_QString * arg1){
	return (int) ((QFontBridge*)instPointer)->fromString((QString&)* (QString*)arg1);
}
//void qt_QFont_qwsRenderToDisk( qt_QFont* instPointer,int all){
//	((QFontBridge*)instPointer)->qwsRenderToDisk((bool)all);
//	return;
//}
qt_QString * qt_QFont_defaultFamily( qt_QFont* instPointer){
	return (qt_QString *)new QString(((QFontBridge*)instPointer)->defaultFamily());
}
qt_QString * qt_QFont_lastResortFamily( qt_QFont* instPointer){
	return (qt_QString *)new QString(((QFontBridge*)instPointer)->lastResortFamily());
}
qt_QString * qt_QFont_lastResortFont( qt_QFont* instPointer){
	return (qt_QString *)new QString(((QFontBridge*)instPointer)->lastResortFont());
}
qt_QString * qt_QFont_substitute( qt_QString * arg1){
	return (qt_QString *)new QString(QFontBridge::substitute((QString&)* (QString*)arg1));
}
qt_QStringList* qt_QFont_substitutes( qt_QString * arg1){
	return (qt_QStringList*)new QStringList(QFontBridge::substitutes((QString&)* (QString*)arg1));
}
qt_QStringList* qt_QFont_substitutions( ){
	return (qt_QStringList*)new QStringList(QFontBridge::substitutions());
}
void qt_QFont_insertSubstitution( qt_QString * arg1, qt_QString * arg2){
	QFontBridge::insertSubstitution((QString&)* (QString*)arg1, (QString&)* (QString*)arg2);
	return;
}
void qt_QFont_insertSubstitutions( qt_QString * arg1, qt_QStringList* arg2){
	QFontBridge::insertSubstitutions((QString&)* (QString*)arg1, (QStringList&)* (QStringList*)arg2);
	return;
}
void qt_QFont_removeSubstitution( qt_QString * arg1){
	QFontBridge::removeSubstitution((QString&)* (QString*)arg1);
	return;
}
void qt_QFont_initialize( ){
	QFontBridge::initialize();
	return;
}
void qt_QFont_cleanup( ){
	QFontBridge::cleanup();
	return;
}
void qt_QFont_cacheStatistics( ){
	QFontBridge::cacheStatistics();
	return;
}
qt_QFont * qt_QFont_defaultFont( ){
	return (qt_QFont *)new QFont(QFontBridge::defaultFont());
}
void qt_QFont_setDefaultFont( qt_QFont * arg1){
	QFontBridge::setDefaultFont((QFont&)* (QFont*)arg1);
	return;
}
int qt_QFont_dirty( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->protected_dirty();
}
int qt_QFont_deciPointSize( qt_QFont* instPointer){
	return (int) ((QFontBridge*)instPointer)->protected_deciPointSize();
}
