#ifndef PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H #define PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H #include #include #include #include #include #include #include #include #include #include class PythonQtShell_QGraphicsLayout : public QGraphicsLayout { public: PythonQtShell_QGraphicsLayout(QGraphicsLayoutItem* parent = 0):QGraphicsLayout(parent),_wrapper(NULL) {}; virtual int count() const; virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; virtual void invalidate(); virtual QGraphicsLayoutItem* itemAt(int i) const; virtual void removeAt(int index); virtual void setGeometry(const QRectF& rect); virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint) const; virtual void updateGeometry(); virtual void widgetEvent(QEvent* e); PythonQtInstanceWrapper* _wrapper; }; class PythonQtPublicPromoter_QGraphicsLayout : public QGraphicsLayout { public: inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsLayout::getContentsMargins(left, top, right, bottom); } inline void promoted_widgetEvent(QEvent* e) { QGraphicsLayout::widgetEvent(e); } inline void promoted_invalidate() { QGraphicsLayout::invalidate(); } }; class PythonQtWrapper_QGraphicsLayout : public QObject { Q_OBJECT public: public slots: QGraphicsLayout* new_QGraphicsLayout(QGraphicsLayoutItem* parent = 0); void delete_QGraphicsLayout(QGraphicsLayout* obj) { delete obj; } void getContentsMargins(QGraphicsLayout* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; void activate(QGraphicsLayout* theWrappedObject); void widgetEvent(QGraphicsLayout* theWrappedObject, QEvent* e); bool isActivated(QGraphicsLayout* theWrappedObject) const; void setContentsMargins(QGraphicsLayout* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom); void invalidate(QGraphicsLayout* theWrappedObject); }; #endif // PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H