/***************************************************************************
                            qt_QLayoutItem.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_QLayoutItem.h"
}

#include <qlayout.h>

void qt_del_QLayoutItem( qt_QLayoutItem* p ){
	delete (QLayoutItem*) p;
}
qt_QSize * qt_QLayoutItem_sizeHint( qt_QLayoutItem* instPointer){
	QSize _s= ((QLayoutItem*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QLayoutItem_minimumSize( qt_QLayoutItem* instPointer){
	QSize _s= ((QLayoutItem*)instPointer)->minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QLayoutItem_maximumSize( qt_QLayoutItem* instPointer){
	QSize _s= ((QLayoutItem*)instPointer)->maximumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
int qt_QLayoutItem_expanding( qt_QLayoutItem* instPointer){
	return (int) ((QLayoutItem*)instPointer)->expanding();
}
void qt_QLayoutItem_setGeometry( qt_QLayoutItem* instPointer,qt_QRect* arg1){
	((QLayoutItem*)instPointer)->setGeometry((QRect&)* (QRect*)arg1);
	return;
}
qt_QRect* qt_QLayoutItem_geometry( qt_QLayoutItem* instPointer){
	QRect _r= ((QLayoutItem*)instPointer)->geometry();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QLayoutItem_isEmpty( qt_QLayoutItem* instPointer){
	return (int) ((QLayoutItem*)instPointer)->isEmpty();
}
int qt_QLayoutItem_hasHeightForWidth( qt_QLayoutItem* instPointer){
	return (int) ((QLayoutItem*)instPointer)->hasHeightForWidth();
}
int qt_QLayoutItem_heightForWidth( qt_QLayoutItem* instPointer,int arg1){
	return (int) ((QLayoutItem*)instPointer)->heightForWidth((int)arg1);
}
void qt_QLayoutItem_invalidate( qt_QLayoutItem* instPointer){
	((QLayoutItem*)instPointer)->invalidate();
	return;
}
qt_QWidget * qt_QLayoutItem_widget( qt_QLayoutItem* instPointer){
	return (qt_QWidget *) ((QLayoutItem*)instPointer)->widget();
}
qt_QLayoutIterator* qt_QLayoutItem_iterator( qt_QLayoutItem* instPointer){
	return (qt_QLayoutIterator*)new QLayoutIterator(((QLayoutItem*)instPointer)->iterator());
}
qt_QLayout * qt_QLayoutItem_layout( qt_QLayoutItem* instPointer){
	return (qt_QLayout *) ((QLayoutItem*)instPointer)->layout();
}
qt_QSpacerItem* qt_QLayoutItem_spacerItem( qt_QLayoutItem* instPointer){
	return (qt_QSpacerItem*) ((QLayoutItem*)instPointer)->spacerItem();
}
int qt_QLayoutItem_alignment( qt_QLayoutItem* instPointer){
	return (int) ((QLayoutItem*)instPointer)->alignment();
}
void qt_QLayoutItem_setAlignment( qt_QLayoutItem* instPointer,int a){
	((QLayoutItem*)instPointer)->setAlignment((int)a);
	return;
}
