/***************************************************************************
                            qt_QBoxLayout.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_QBoxLayout.h"
}

#include <qlayout.h>

class QBoxLayoutBridge : public QBoxLayout
{
public:
	QBoxLayoutBridge(QWidget* parent, Direction arg1, int border, int spacing, const char* name) : QBoxLayout(parent, arg1, border, spacing, name) {}
	QBoxLayoutBridge(QLayout* parentLayout, Direction arg1, int spacing, const char* name) : QBoxLayout(parentLayout, arg1, spacing, name) {}
	QBoxLayoutBridge(Direction arg1, int spacing, const char* name) : QBoxLayout(arg1, spacing, name) {}
	~QBoxLayoutBridge() {}
	void protected_insertItem(int index, QLayoutItem* arg1) {
		QBoxLayout::insertItem(index, arg1);
		return;
	}
	void childEvent(QChildEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", e, "QChildEvent")) {
			QLayout::childEvent(e);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QBoxLayout * qt_new_QBoxLayout(qt_QWidget * parent, int arg1, int border, int spacing, char* name){
	return (qt_QBoxLayout *) new QBoxLayoutBridge((QWidget*)parent, (QBoxLayout::Direction)arg1, (int)border, (int)spacing, (char*)name);
}
qt_QBoxLayout * qt_new_QBoxLayout1(qt_QLayout * parentLayout, int arg1, int spacing, char* name){
	return (qt_QBoxLayout *) new QBoxLayoutBridge((QLayout*)parentLayout, (QBoxLayout::Direction)arg1, (int)spacing, (char*)name);
}
qt_QBoxLayout * qt_new_QBoxLayout2(int arg1, int spacing, char* name){
	return (qt_QBoxLayout *) new QBoxLayoutBridge((QBoxLayout::Direction)arg1, (int)spacing, (char*)name);
}
void qt_del_QBoxLayout( qt_QBoxLayout* p ){
	delete (QBoxLayoutBridge*) p;
}
void qt_QBoxLayout_addItem( qt_QBoxLayout* instPointer,qt_QLayoutItem* arg1){
	((QBoxLayoutBridge*)instPointer)->addItem((QLayoutItem*)arg1);
	return;
}
int qt_QBoxLayout_direction( qt_QBoxLayout* instPointer){
	return (int) ((QBoxLayoutBridge*)instPointer)->direction();
}
void qt_QBoxLayout_setDirection( qt_QBoxLayout* instPointer,int arg1){
	((QBoxLayoutBridge*)instPointer)->setDirection((QBoxLayout::Direction)arg1);
	return;
}
void qt_QBoxLayout_addSpacing( qt_QBoxLayout* instPointer,int size){
	((QBoxLayoutBridge*)instPointer)->addSpacing((int)size);
	return;
}
void qt_QBoxLayout_addStretch( qt_QBoxLayout* instPointer,int stretch){
	((QBoxLayoutBridge*)instPointer)->addStretch((int)stretch);
	return;
}
void qt_QBoxLayout_addWidget( qt_QBoxLayout* instPointer,qt_QWidget * arg1, int stretch, int alignment){
	((QBoxLayoutBridge*)instPointer)->addWidget((QWidget*)arg1, (int)stretch, (int)alignment);
	return;
}
void qt_QBoxLayout_addLayout( qt_QBoxLayout* instPointer,qt_QLayout * layout, int stretch){
	((QBoxLayoutBridge*)instPointer)->addLayout((QLayout*)layout, (int)stretch);
	return;
}
void qt_QBoxLayout_addStrut( qt_QBoxLayout* instPointer,int arg1){
	((QBoxLayoutBridge*)instPointer)->addStrut((int)arg1);
	return;
}
void qt_QBoxLayout_insertSpacing( qt_QBoxLayout* instPointer,int index, int size){
	((QBoxLayoutBridge*)instPointer)->insertSpacing((int)index, (int)size);
	return;
}
void qt_QBoxLayout_insertStretch( qt_QBoxLayout* instPointer,int index, int stretch){
	((QBoxLayoutBridge*)instPointer)->insertStretch((int)index, (int)stretch);
	return;
}
void qt_QBoxLayout_insertWidget( qt_QBoxLayout* instPointer,int index, qt_QWidget * widget, int stretch, int alignment){
	((QBoxLayoutBridge*)instPointer)->insertWidget((int)index, (QWidget*)widget, (int)stretch, (int)alignment);
	return;
}
void qt_QBoxLayout_insertLayout( qt_QBoxLayout* instPointer,int index, qt_QLayout * layout, int stretch){
	((QBoxLayoutBridge*)instPointer)->insertLayout((int)index, (QLayout*)layout, (int)stretch);
	return;
}
int qt_QBoxLayout_setStretchFactor( qt_QBoxLayout* instPointer,qt_QWidget * arg1, int stretch){
	return (int) ((QBoxLayoutBridge*)instPointer)->setStretchFactor((QWidget*)arg1, (int)stretch);
}
int qt_QBoxLayout_setStretchFactor1( qt_QBoxLayout* instPointer,qt_QLayout * l, int stretch){
	return (int) ((QBoxLayoutBridge*)instPointer)->setStretchFactor((QLayout*)l, (int)stretch);
}
qt_QSize * qt_QBoxLayout_sizeHint( qt_QBoxLayout* instPointer){
	QSize _s= ((QBoxLayoutBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QBoxLayout_minimumSize( qt_QBoxLayout* instPointer){
	QSize _s= ((QBoxLayoutBridge*)instPointer)->minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QBoxLayout_maximumSize( qt_QBoxLayout* instPointer){
	QSize _s= ((QBoxLayoutBridge*)instPointer)->maximumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
int qt_QBoxLayout_hasHeightForWidth( qt_QBoxLayout* instPointer){
	return (int) ((QBoxLayoutBridge*)instPointer)->hasHeightForWidth();
}
int qt_QBoxLayout_heightForWidth( qt_QBoxLayout* instPointer,int arg1){
	return (int) ((QBoxLayoutBridge*)instPointer)->heightForWidth((int)arg1);
}
int qt_QBoxLayout_expanding( qt_QBoxLayout* instPointer){
	return (int) ((QBoxLayoutBridge*)instPointer)->expanding();
}
void qt_QBoxLayout_invalidate( qt_QBoxLayout* instPointer){
	((QBoxLayoutBridge*)instPointer)->invalidate();
	return;
}
qt_QLayoutIterator* qt_QBoxLayout_iterator( qt_QBoxLayout* instPointer){
	return (qt_QLayoutIterator*)new QLayoutIterator(((QBoxLayoutBridge*)instPointer)->iterator());
}
void qt_QBoxLayout_setGeometry( qt_QBoxLayout* instPointer,qt_QRect* arg1){
	((QBoxLayoutBridge*)instPointer)->setGeometry((QRect&)* (QRect*)arg1);
	return;
}
int qt_QBoxLayout_findWidget( qt_QBoxLayout* instPointer,qt_QWidget * w){
	return (int) ((QBoxLayoutBridge*)instPointer)->findWidget((QWidget*)w);
}
void qt_QBoxLayout_insertItem( qt_QBoxLayout* instPointer,int index, qt_QLayoutItem* arg1){
	((QBoxLayoutBridge*)instPointer)->protected_insertItem((int)index, (QLayoutItem*)arg1);
	return;
}
