/***************************************************************************
                            qt_QSpacerItem.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_QSpacerItem.h"
}

#include <qlayout.h>

class QSpacerItemBridge : public QSpacerItem
{
public:
	QSpacerItemBridge(int w, int h, QSizePolicy::SizeType hData, QSizePolicy::SizeType vData) : QSpacerItem(w, h, hData, vData) {}
};

qt_QSpacerItem * qt_new_QSpacerItem(int w, int h, int hData, int vData){
	return (qt_QSpacerItem *) new QSpacerItemBridge((int)w, (int)h, (QSizePolicy::SizeType)hData, (QSizePolicy::SizeType)vData);
}
void qt_QSpacerItem_changeSize( qt_QSpacerItem* instPointer,int w, int h, int hData, int vData){
	((QSpacerItemBridge*)instPointer)->changeSize((int)w, (int)h, (QSizePolicy::SizeType)hData, (QSizePolicy::SizeType)vData);
	return;
}
qt_QSize * qt_QSpacerItem_sizeHint( qt_QSpacerItem* instPointer){
	QSize _s= ((QSpacerItemBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QSpacerItem_minimumSize( qt_QSpacerItem* instPointer){
	QSize _s= ((QSpacerItemBridge*)instPointer)->minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QSpacerItem_maximumSize( qt_QSpacerItem* instPointer){
	QSize _s= ((QSpacerItemBridge*)instPointer)->maximumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
int qt_QSpacerItem_expanding( qt_QSpacerItem* instPointer){
	return (int) ((QSpacerItemBridge*)instPointer)->expanding();
}
int qt_QSpacerItem_isEmpty( qt_QSpacerItem* instPointer){
	return (int) ((QSpacerItemBridge*)instPointer)->isEmpty();
}
void qt_QSpacerItem_setGeometry( qt_QSpacerItem* instPointer,qt_QRect* arg1){
	((QSpacerItemBridge*)instPointer)->setGeometry((QRect&)* (QRect*)arg1);
	return;
}
qt_QRect* qt_QSpacerItem_geometry( qt_QSpacerItem* instPointer){
	QRect _r= ((QSpacerItemBridge*)instPointer)->geometry();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
qt_QSpacerItem* qt_QSpacerItem_spacerItem( qt_QSpacerItem* instPointer){
	return (qt_QSpacerItem*) ((QSpacerItemBridge*)instPointer)->spacerItem();
}
