//Auto-generated by kalyptus. DO NOT EDIT.
#include <smoke.h>
#include <qt_smoke.h>
#include <qsizepolicy.h>
#include <qlayout.h>
#include <qrect.h>
#include <qsize.h>

class x_QLayoutItem : public QLayoutItem {
public:
    static void x_0(Smoke::Stack x) {
	// QLayoutItem(int)
	x_QLayoutItem* xret = new x_QLayoutItem((int)x[1].s_int);
	x[0].s_class = (void*)xret;
    }
    x_QLayoutItem(int x1) : QLayoutItem(x1) {
    }
    static void x_1(Smoke::Stack x) {
	// QLayoutItem()
	x_QLayoutItem* xret = new x_QLayoutItem();
	x[0].s_class = (void*)xret;
    }
    x_QLayoutItem() : QLayoutItem() {
    }
    void x_2(Smoke::Stack x) const {
	// hasHeightForWidth()
	bool xret = this->QLayoutItem::hasHeightForWidth();
	x[0].s_bool = xret;
    }
    void x_3(Smoke::Stack x) const {
	// heightForWidth(int)
	int xret = this->QLayoutItem::heightForWidth((int)x[1].s_int);
	x[0].s_int = xret;
    }
    void x_4(Smoke::Stack x) {
	// invalidate()
	this->QLayoutItem::invalidate();
	(void)x; // noop (for compiler warning)
    }
    void x_5(Smoke::Stack x) {
	// widget()
	QWidget* xret = this->QLayoutItem::widget();
	x[0].s_class = (void*)xret;
    }
    void x_6(Smoke::Stack x) {
	// iterator()
	QLayoutIterator xret = this->QLayoutItem::iterator();
	x[0].s_class = (void*)new QLayoutIterator(xret);
    }
    void x_7(Smoke::Stack x) {
	// layout()
	QLayout* xret = this->QLayoutItem::layout();
	x[0].s_class = (void*)xret;
    }
    void x_8(Smoke::Stack x) {
	// spacerItem()
	QSpacerItem* xret = this->QLayoutItem::spacerItem();
	x[0].s_class = (void*)xret;
    }
    void x_9(Smoke::Stack x) const {
	// alignment()
	int xret = this->QLayoutItem::alignment();
	x[0].s_int = xret;
    }
    void x_10(Smoke::Stack x) {
	// setAlignment(int)
	this->QLayoutItem::setAlignment((int)x[1].s_int);
	(void)x; // noop (for compiler warning)
    }
    static void x_11(Smoke::Stack x) {
	// QLayoutItem(const QLayoutItem&)
	x_QLayoutItem* xret = new x_QLayoutItem(*(const QLayoutItem *)x[1].s_class);
	x[0].s_class = (void*)xret;
    }
    x_QLayoutItem(const QLayoutItem& x1) : QLayoutItem(x1) {
    }
    virtual QSizePolicy::ExpandData expanding() const {
	Smoke::StackItem x[1];
	qt_Smoke->binding->callMethod(5237, (void*)this, x, true /*pure virtual*/);
	QSizePolicy::ExpandData *xptr = (QSizePolicy::ExpandData *)x[0].s_class;
	QSizePolicy::ExpandData xret(*xptr);
	delete xptr;
	return xret;
	// ABSTRACT
    }
    virtual QRect geometry() const {
	Smoke::StackItem x[1];
	qt_Smoke->binding->callMethod(5239, (void*)this, x, true /*pure virtual*/);
	QRect *xptr = (QRect *)x[0].s_class;
	QRect xret(*xptr);
	delete xptr;
	return xret;
	// ABSTRACT
    }
    virtual bool hasHeightForWidth() const {
	Smoke::StackItem x[1];
	if(qt_Smoke->binding->callMethod(5241, (void*)this, x)) return (bool)x[0].s_bool;
	return this->QLayoutItem::hasHeightForWidth();
    }
    virtual int heightForWidth(int x1) const {
	Smoke::StackItem x[2];
	x[1].s_int = x1;
	if(qt_Smoke->binding->callMethod(5242, (void*)this, x)) return (int)x[0].s_int;
	return this->QLayoutItem::heightForWidth(x1);
    }
    virtual void invalidate() {
	Smoke::StackItem x[1];
	if(qt_Smoke->binding->callMethod(5243, (void*)this, x)) return;
	this->QLayoutItem::invalidate();
    }
    virtual bool isEmpty() const {
	Smoke::StackItem x[1];
	qt_Smoke->binding->callMethod(5240, (void*)this, x, true /*pure virtual*/);
	return (bool)x[0].s_bool;
	// ABSTRACT
    }
    virtual QLayoutIterator iterator() {
	Smoke::StackItem x[1];
	if(qt_Smoke->binding->callMethod(5245, (void*)this, x)) {
	    QLayoutIterator *xptr = (QLayoutIterator *)x[0].s_class;
	    QLayoutIterator xret(*xptr);
	    delete xptr;
	    return xret;
	}
	return this->QLayoutItem::iterator();
    }
    virtual QLayout* layout() {
	Smoke::StackItem x[1];
	if(qt_Smoke->binding->callMethod(5246, (void*)this, x)) return (QLayout*)x[0].s_class;
	return this->QLayoutItem::layout();
    }
    virtual QSize maximumSize() const {
	Smoke::StackItem x[1];
	qt_Smoke->binding->callMethod(5236, (void*)this, x, true /*pure virtual*/);
	QSize *xptr = (QSize *)x[0].s_class;
	QSize xret(*xptr);
	delete xptr;
	return xret;
	// ABSTRACT
    }
    virtual QSize minimumSize() const {
	Smoke::StackItem x[1];
	qt_Smoke->binding->callMethod(5235, (void*)this, x, true /*pure virtual*/);
	QSize *xptr = (QSize *)x[0].s_class;
	QSize xret(*xptr);
	delete xptr;
	return xret;
	// ABSTRACT
    }
    virtual void setAlignment(int x1) {
	Smoke::StackItem x[2];
	x[1].s_int = x1;
	if(qt_Smoke->binding->callMethod(5249, (void*)this, x)) return;
	this->QLayoutItem::setAlignment(x1);
    }
    virtual void setGeometry(const QRect& x1) {
	Smoke::StackItem x[2];
	x[1].s_class = (void*)&x1;
	qt_Smoke->binding->callMethod(5238, (void*)this, x, true /*pure virtual*/);
	return;
	// ABSTRACT
    }
    virtual QSize sizeHint() const {
	Smoke::StackItem x[1];
	qt_Smoke->binding->callMethod(5234, (void*)this, x, true /*pure virtual*/);
	QSize *xptr = (QSize *)x[0].s_class;
	QSize xret(*xptr);
	delete xptr;
	return xret;
	// ABSTRACT
    }
    virtual QSpacerItem* spacerItem() {
	Smoke::StackItem x[1];
	if(qt_Smoke->binding->callMethod(5247, (void*)this, x)) return (QSpacerItem*)x[0].s_class;
	return this->QLayoutItem::spacerItem();
    }
    virtual QWidget* widget() {
	Smoke::StackItem x[1];
	if(qt_Smoke->binding->callMethod(5244, (void*)this, x)) return (QWidget*)x[0].s_class;
	return this->QLayoutItem::widget();
    }
    ~x_QLayoutItem() { qt_Smoke->binding->deleted(182, (void*)this); }
};
void xcall_QLayoutItem(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_QLayoutItem *xself = (x_QLayoutItem*)obj;
    switch(xi) {
	case 0: x_QLayoutItem::x_0(args);	break;
	case 1: x_QLayoutItem::x_1(args);	break;
	case 2: xself->x_2(args);	break;
	case 3: xself->x_3(args);	break;
	case 4: xself->x_4(args);	break;
	case 5: xself->x_5(args);	break;
	case 6: xself->x_6(args);	break;
	case 7: xself->x_7(args);	break;
	case 8: xself->x_8(args);	break;
	case 9: xself->x_9(args);	break;
	case 10: xself->x_10(args);	break;
	case 11: x_QLayoutItem::x_11(args);	break;
	case 12: delete (QLayoutItem*)xself;	break;
    }
}
