/***************************************************************************
                            qt_QLayout.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_QLayout.h"
}

#include <qlayout.h>

void qt_del_QLayout( qt_QLayout* p ){
	delete (QLayout*) p;
}
int qt_QLayout_margin( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->margin();
}
int qt_QLayout_spacing( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->spacing();
}
void qt_QLayout_setMargin( qt_QLayout* instPointer,int arg1){
	((QLayout*)instPointer)->setMargin((int)arg1);
	return;
}
void qt_QLayout_setSpacing( qt_QLayout* instPointer,int arg1){
	((QLayout*)instPointer)->setSpacing((int)arg1);
	return;
}
int qt_QLayout_defaultBorder( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->defaultBorder();
}
void qt_QLayout_freeze( qt_QLayout* instPointer,int w, int h){
	((QLayout*)instPointer)->freeze((int)w, (int)h);
	return;
}
void qt_QLayout_freeze1( qt_QLayout* instPointer){
	((QLayout*)instPointer)->freeze();
	return;
}
void qt_QLayout_setResizeMode( qt_QLayout* instPointer,int arg1){
	((QLayout*)instPointer)->setResizeMode((QLayout::ResizeMode)arg1);
	return;
}
int qt_QLayout_resizeMode( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->resizeMode();
}
void qt_QLayout_setMenuBar( qt_QLayout* instPointer,qt_QMenuBar * w){
	((QLayout*)instPointer)->setMenuBar((QMenuBar*)w);
	return;
}
qt_QMenuBar * qt_QLayout_menuBar( qt_QLayout* instPointer){
	return (qt_QMenuBar *) ((QLayout*)instPointer)->menuBar();
}
qt_QWidget * qt_QLayout_mainWidget( qt_QLayout* instPointer){
	return (qt_QWidget *) ((QLayout*)instPointer)->mainWidget();
}
int qt_QLayout_isTopLevel( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->isTopLevel();
}
void qt_QLayout_setAutoAdd( qt_QLayout* instPointer,int arg1){
	((QLayout*)instPointer)->setAutoAdd((bool)arg1);
	return;
}
int qt_QLayout_autoAdd( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->autoAdd();
}
void qt_QLayout_invalidate( qt_QLayout* instPointer){
	((QLayout*)instPointer)->invalidate();
	return;
}
qt_QRect* qt_QLayout_geometry( qt_QLayout* instPointer){
	QRect _r= ((QLayout*)instPointer)->geometry();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QLayout_activate( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->activate();
}
void qt_QLayout_add( qt_QLayout* instPointer,qt_QWidget * w){
	((QLayout*)instPointer)->add((QWidget*)w);
	return;
}
void qt_QLayout_addItem( qt_QLayout* instPointer,qt_QLayoutItem* arg1){
	((QLayout*)instPointer)->addItem((QLayoutItem*)arg1);
	return;
}
int qt_QLayout_expanding( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->expanding();
}
qt_QSize * qt_QLayout_minimumSize( qt_QLayout* instPointer){
	QSize _s= ((QLayout*)instPointer)->minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QLayout_maximumSize( qt_QLayout* instPointer){
	QSize _s= ((QLayout*)instPointer)->maximumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QLayout_setGeometry( qt_QLayout* instPointer,qt_QRect* arg1){
	((QLayout*)instPointer)->setGeometry((QRect&)* (QRect*)arg1);
	return;
}
qt_QLayoutIterator* qt_QLayout_iterator( qt_QLayout* instPointer){
	return (qt_QLayoutIterator*)new QLayoutIterator(((QLayout*)instPointer)->iterator());
}
int qt_QLayout_isEmpty( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->isEmpty();
}
int qt_QLayout_totalHeightForWidth( qt_QLayout* instPointer,int w){
	return (int) ((QLayout*)instPointer)->totalHeightForWidth((int)w);
}
qt_QSize * qt_QLayout_totalMinimumSize( qt_QLayout* instPointer){
	QSize _s= ((QLayout*)instPointer)->totalMinimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QLayout_totalMaximumSize( qt_QLayout* instPointer){
	QSize _s= ((QLayout*)instPointer)->totalMaximumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QLayout_totalSizeHint( qt_QLayout* instPointer){
	QSize _s= ((QLayout*)instPointer)->totalSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QLayout * qt_QLayout_layout( qt_QLayout* instPointer){
	return (qt_QLayout *) ((QLayout*)instPointer)->layout();
}
int qt_QLayout_supportsMargin( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->supportsMargin();
}
void qt_QLayout_setEnabled( qt_QLayout* instPointer,int arg1){
	((QLayout*)instPointer)->setEnabled((bool)arg1);
	return;
}
int qt_QLayout_isEnabled( qt_QLayout* instPointer){
	return (int) ((QLayout*)instPointer)->isEnabled();
}
qt_QLayoutItem* qt_QLayout_QLayoutItem(qt_QLayout* instPointer){
	return (qt_QLayoutItem*) (QLayoutItem *) (QLayout *) instPointer;
}
qt_QObject * qt_QLayout_QObject(qt_QLayout* instPointer){
	return (qt_QObject *) (QObject *) (QLayout *) instPointer;
}
