/***************************************************************************
                            qt_QWidgetItem.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_QWidgetItem.h"
}

#include <qlayout.h>

class QWidgetItemBridge : public QWidgetItem
{
public:
	QWidgetItemBridge(QWidget* w) : QWidgetItem(w) {}
};

qt_QWidgetItem * qt_new_QWidgetItem(qt_QWidget * w){
	return (qt_QWidgetItem *) new QWidgetItemBridge((QWidget*)w);
}
//qt_QSize * qt_QWidgetItem_sizeHint( qt_QWidgetItem* instPointer){
//	QSize _s= ((QWidgetItemBridge*)instPointer)->sizeHint();
//	return (qt_QSize *)new QSize(_s.width(),_s.height());
//}
qt_QSize * qt_QWidgetItem_minimumSize( qt_QWidgetItem* instPointer){
	QSize _s= ((QWidgetItemBridge*)instPointer)->minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QWidgetItem_maximumSize( qt_QWidgetItem* instPointer){
	QSize _s= ((QWidgetItemBridge*)instPointer)->maximumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
int qt_QWidgetItem_expanding( qt_QWidgetItem* instPointer){
	return (int) ((QWidgetItemBridge*)instPointer)->expanding();
}
int qt_QWidgetItem_isEmpty( qt_QWidgetItem* instPointer){
	return (int) ((QWidgetItemBridge*)instPointer)->isEmpty();
}
void qt_QWidgetItem_setGeometry( qt_QWidgetItem* instPointer,qt_QRect* arg1){
	((QWidgetItemBridge*)instPointer)->setGeometry((QRect&)* (QRect*)arg1);
	return;
}
qt_QRect* qt_QWidgetItem_geometry( qt_QWidgetItem* instPointer){
	QRect _r= ((QWidgetItemBridge*)instPointer)->geometry();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
qt_QWidget * qt_QWidgetItem_widget( qt_QWidgetItem* instPointer){
	return (qt_QWidget *) ((QWidgetItemBridge*)instPointer)->widget();
}
int qt_QWidgetItem_hasHeightForWidth( qt_QWidgetItem* instPointer){
	return (int) ((QWidgetItemBridge*)instPointer)->hasHeightForWidth();
}
int qt_QWidgetItem_heightForWidth( qt_QWidgetItem* instPointer,int arg1){
	return (int) ((QWidgetItemBridge*)instPointer)->heightForWidth((int)arg1);
}
//qt_QSize * qt_QWidgetItem_widgetSizeHint( qt_QWidgetItem* instPointer){
//	return (qt_QSize *) (const QSize *)&((QWidgetItemBridge*)instPointer)->widgetSizeHint();
//}
