/***************************************************************************
                            qt_QGridLayout.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_QGridLayout.h"
}

#include <qlayout.h>

class QGridLayoutBridge : public QGridLayout
{
public:
	QGridLayoutBridge(QWidget* parent, int nRows, int nCols, int border, int spacing, const char* name) : QGridLayout(parent, nRows, nCols, border, spacing, name) {}
	QGridLayoutBridge(int nRows, int nCols, int spacing, const char* name) : QGridLayout(nRows, nCols, spacing, name) {}
	QGridLayoutBridge(QLayout* parentLayout, int nRows, int nCols, int spacing, const char* name) : QGridLayout(parentLayout, nRows, nCols, spacing, name) {}
	~QGridLayoutBridge() {}
	bool  protected_findWidget(QWidget* w, int* r, int* c) {
		return (bool ) QGridLayout::findWidget(w, r, c);
	}
	void protected_add(QLayoutItem* arg1, int row, int col) {
		QGridLayout::add(arg1, row, col);
		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_QGridLayout * qt_new_QGridLayout(qt_QWidget * parent, int nRows, int nCols, int border, int spacing, char* name){
	return (qt_QGridLayout *) new QGridLayoutBridge((QWidget*)parent, (int)nRows, (int)nCols, (int)border, (int)spacing, (char*)name);
}
qt_QGridLayout * qt_new_QGridLayout1(int nRows, int nCols, int spacing, char* name){
	return (qt_QGridLayout *) new QGridLayoutBridge((int)nRows, (int)nCols, (int)spacing, (char*)name);
}
qt_QGridLayout * qt_new_QGridLayout2(qt_QLayout * parentLayout, int nRows, int nCols, int spacing, char* name){
	return (qt_QGridLayout *) new QGridLayoutBridge((QLayout*)parentLayout, (int)nRows, (int)nCols, (int)spacing, (char*)name);
}
void qt_del_QGridLayout( qt_QGridLayout* p ){
	delete (QGridLayoutBridge*) p;
}
qt_QSize * qt_QGridLayout_sizeHint( qt_QGridLayout* instPointer){
	QSize _s= ((QGridLayoutBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QGridLayout_minimumSize( qt_QGridLayout* instPointer){
	QSize _s= ((QGridLayoutBridge*)instPointer)->minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QGridLayout_maximumSize( qt_QGridLayout* instPointer){
	QSize _s= ((QGridLayoutBridge*)instPointer)->maximumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QGridLayout_setRowStretch( qt_QGridLayout* instPointer,int row, int stretch){
	((QGridLayoutBridge*)instPointer)->setRowStretch((int)row, (int)stretch);
	return;
}
void qt_QGridLayout_setColStretch( qt_QGridLayout* instPointer,int col, int stretch){
	((QGridLayoutBridge*)instPointer)->setColStretch((int)col, (int)stretch);
	return;
}
int qt_QGridLayout_rowStretch( qt_QGridLayout* instPointer,int row){
	return (int) ((QGridLayoutBridge*)instPointer)->rowStretch((int)row);
}
int qt_QGridLayout_colStretch( qt_QGridLayout* instPointer,int col){
	return (int) ((QGridLayoutBridge*)instPointer)->colStretch((int)col);
}
int qt_QGridLayout_numRows( qt_QGridLayout* instPointer){
	return (int) ((QGridLayoutBridge*)instPointer)->numRows();
}
int qt_QGridLayout_numCols( qt_QGridLayout* instPointer){
	return (int) ((QGridLayoutBridge*)instPointer)->numCols();
}
qt_QRect* qt_QGridLayout_cellGeometry( qt_QGridLayout* instPointer,int row, int col){
	QRect _r= ((QGridLayoutBridge*)instPointer)->cellGeometry((int)row, (int)col);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QGridLayout_hasHeightForWidth( qt_QGridLayout* instPointer){
	return (int) ((QGridLayoutBridge*)instPointer)->hasHeightForWidth();
}
int qt_QGridLayout_heightForWidth( qt_QGridLayout* instPointer,int arg1){
	return (int) ((QGridLayoutBridge*)instPointer)->heightForWidth((int)arg1);
}
int qt_QGridLayout_expanding( qt_QGridLayout* instPointer){
	return (int) ((QGridLayoutBridge*)instPointer)->expanding();
}
void qt_QGridLayout_invalidate( qt_QGridLayout* instPointer){
	((QGridLayoutBridge*)instPointer)->invalidate();
	return;
}
void qt_QGridLayout_addItem( qt_QGridLayout* instPointer,qt_QLayoutItem* arg1){
	((QGridLayoutBridge*)instPointer)->addItem((QLayoutItem*)arg1);
	return;
}
void qt_QGridLayout_addItem1( qt_QGridLayout* instPointer,qt_QLayoutItem* item, int row, int col){
	((QGridLayoutBridge*)instPointer)->addItem((QLayoutItem*)item, (int)row, (int)col);
	return;
}
void qt_QGridLayout_addMultiCell( qt_QGridLayout* instPointer,qt_QLayoutItem* arg1, int fromRow, int toRow, int fromCol, int toCol, int align){
	((QGridLayoutBridge*)instPointer)->addMultiCell((QLayoutItem*)arg1, (int)fromRow, (int)toRow, (int)fromCol, (int)toCol, (int)align);
	return;
}
void qt_QGridLayout_addWidget( qt_QGridLayout* instPointer,qt_QWidget * arg1, int row, int col, int align){
	((QGridLayoutBridge*)instPointer)->addWidget((QWidget*)arg1, (int)row, (int)col, (int)align);
	return;
}
void qt_QGridLayout_addMultiCellWidget( qt_QGridLayout* instPointer,qt_QWidget * arg1, int fromRow, int toRow, int fromCol, int toCol, int align){
	((QGridLayoutBridge*)instPointer)->addMultiCellWidget((QWidget*)arg1, (int)fromRow, (int)toRow, (int)fromCol, (int)toCol, (int)align);
	return;
}
void qt_QGridLayout_addLayout( qt_QGridLayout* instPointer,qt_QLayout * layout, int row, int col){
	((QGridLayoutBridge*)instPointer)->addLayout((QLayout*)layout, (int)row, (int)col);
	return;
}
void qt_QGridLayout_addMultiCellLayout( qt_QGridLayout* instPointer,qt_QLayout * layout, int fromRow, int toRow, int fromCol, int toCol, int align){
	((QGridLayoutBridge*)instPointer)->addMultiCellLayout((QLayout*)layout, (int)fromRow, (int)toRow, (int)fromCol, (int)toCol, (int)align);
	return;
}
void qt_QGridLayout_addRowSpacing( qt_QGridLayout* instPointer,int row, int minsize){
	((QGridLayoutBridge*)instPointer)->addRowSpacing((int)row, (int)minsize);
	return;
}
void qt_QGridLayout_addColSpacing( qt_QGridLayout* instPointer,int col, int minsize){
	((QGridLayoutBridge*)instPointer)->addColSpacing((int)col, (int)minsize);
	return;
}
void qt_QGridLayout_expand( qt_QGridLayout* instPointer,int rows, int cols){
	((QGridLayoutBridge*)instPointer)->expand((int)rows, (int)cols);
	return;
}
void qt_QGridLayout_setOrigin( qt_QGridLayout* instPointer,int arg1){
	((QGridLayoutBridge*)instPointer)->setOrigin((QGridLayout::Corner)arg1);
	return;
}
int qt_QGridLayout_origin( qt_QGridLayout* instPointer){
	return (int) ((QGridLayoutBridge*)instPointer)->origin();
}
qt_QLayoutIterator* qt_QGridLayout_iterator( qt_QGridLayout* instPointer){
	return (qt_QLayoutIterator*)new QLayoutIterator(((QGridLayoutBridge*)instPointer)->iterator());
}
void qt_QGridLayout_setGeometry( qt_QGridLayout* instPointer,qt_QRect* arg1){
	((QGridLayoutBridge*)instPointer)->setGeometry((QRect&)* (QRect*)arg1);
	return;
}
int qt_QGridLayout_findWidget( qt_QGridLayout* instPointer,qt_QWidget * w, int* r, int* c){
	return (int) ((QGridLayoutBridge*)instPointer)->protected_findWidget((QWidget*)w, (int*)r, (int*)c);
}
void qt_QGridLayout_add( qt_QGridLayout* instPointer,qt_QLayoutItem* arg1, int row, int col){
	((QGridLayoutBridge*)instPointer)->protected_add((QLayoutItem*)arg1, (int)row, (int)col);
	return;
}
