PythonQtWrapper_QGraphicsLayout.h
56 lines
| 2.1 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H | ||
#define PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H | ||||
#include <qgraphicslayout.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qcoreevent.h> | ||||
#include <qgraphicslayout.h> | ||||
#include <qgraphicslayoutitem.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
florianlink
|
r24 | 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; | ||||
}; | ||||
florianlink
|
r28 | class PythonQtPublicPromoter_QGraphicsLayout : public QGraphicsLayout | ||
{ public: | ||||
inline void promoted_invalidate() { QGraphicsLayout::invalidate(); } | ||||
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); } | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QGraphicsLayout : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
florianlink
|
r24 | QGraphicsLayout* new_QGraphicsLayout(QGraphicsLayoutItem* parent = 0); | ||
florianlink
|
r13 | void delete_QGraphicsLayout(QGraphicsLayout* obj) { delete obj; } | ||
bool isActivated(QGraphicsLayout* theWrappedObject) const; | ||||
void setContentsMargins(QGraphicsLayout* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom); | ||||
florianlink
|
r24 | void invalidate(QGraphicsLayout* theWrappedObject); | ||
florianlink
|
r28 | void activate(QGraphicsLayout* theWrappedObject); | ||
florianlink
|
r24 | void getContentsMargins(QGraphicsLayout* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; | ||
florianlink
|
r13 | void widgetEvent(QGraphicsLayout* theWrappedObject, QEvent* e); | ||
}; | ||||
#endif // PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H | ||||