/***************************************************************************
                            qt_QSize.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_QSize.h"
}

#include <qsize.h>

class QSizeBridge : public QSize
{
public:
	QSizeBridge() : QSize() {}
	QSizeBridge(int w, int h) : QSize(w, h) {}
};

qt_QSize * qt_new_QSize(){
	return (qt_QSize *) new QSizeBridge();
}
qt_QSize * qt_new_QSize1(int w, int h){
	return (qt_QSize *) new QSizeBridge((int)w, (int)h);
}
int qt_QSize_isNull( qt_QSize* instPointer){
	return (int) ((QSizeBridge*)instPointer)->isNull();
}
int qt_QSize_isEmpty( qt_QSize* instPointer){
	return (int) ((QSizeBridge*)instPointer)->isEmpty();
}
int qt_QSize_isValid( qt_QSize* instPointer){
	return (int) ((QSizeBridge*)instPointer)->isValid();
}
int qt_QSize_width( qt_QSize* instPointer){
	return (int) ((QSizeBridge*)instPointer)->width();
}
int qt_QSize_height( qt_QSize* instPointer){
	return (int) ((QSizeBridge*)instPointer)->height();
}
void qt_QSize_setWidth( qt_QSize* instPointer,int w){
	((QSizeBridge*)instPointer)->setWidth((int)w);
	return;
}
void qt_QSize_setHeight( qt_QSize* instPointer,int h){
	((QSizeBridge*)instPointer)->setHeight((int)h);
	return;
}
void qt_QSize_transpose( qt_QSize* instPointer){
	((QSizeBridge*)instPointer)->transpose();
	return;
}
qt_QSize * qt_QSize_expandedTo( qt_QSize* instPointer,qt_QSize * arg1){
	QSize _s= ((QSizeBridge*)instPointer)->expandedTo((QSize&)* (QSize*)arg1);
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QSize_boundedTo( qt_QSize* instPointer,qt_QSize * arg1){
	QSize _s= ((QSizeBridge*)instPointer)->boundedTo((QSize&)* (QSize*)arg1);
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
short qt_QSize_rwidth( qt_QSize* instPointer){
	return (short) ((QSizeBridge*)instPointer)->rwidth();
}
short qt_QSize_rheight( qt_QSize* instPointer){
	return (short) ((QSizeBridge*)instPointer)->rheight();
}
