PythonQtWrapper_QGraphicsLinearLayout.h
70 lines
| 3.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGRAPHICSLINEARLAYOUT_H | ||
#define PYTHONQTWRAPPER_QGRAPHICSLINEARLAYOUT_H | ||||
#include <qgraphicslinearlayout.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qcoreevent.h> | ||||
#include <qgraphicslayoutitem.h> | ||||
#include <qgraphicslinearlayout.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
florianlink
|
r24 | |||
class PythonQtShell_QGraphicsLinearLayout : public QGraphicsLinearLayout | ||||
{ | ||||
public: | ||||
PythonQtShell_QGraphicsLinearLayout(QGraphicsLayoutItem* parent = 0):QGraphicsLinearLayout(parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent = 0):QGraphicsLinearLayout(orientation, 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 index) const; | ||||
virtual void removeAt(int index); | ||||
virtual void widgetEvent(QEvent* e); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | |||
florianlink
|
r28 | class PythonQtPublicPromoter_QGraphicsLinearLayout : public QGraphicsLinearLayout | ||
{ public: | ||||
inline void promoted_invalidate() { QGraphicsLinearLayout::invalidate(); } | ||||
inline QGraphicsLayoutItem* promoted_itemAt(int index) const { return QGraphicsLinearLayout::itemAt(index); } | ||||
inline int promoted_count() const { return QGraphicsLinearLayout::count(); } | ||||
inline void promoted_removeAt(int index) { QGraphicsLinearLayout::removeAt(index); } | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QGraphicsLinearLayout : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QGraphicsLinearLayout* new_QGraphicsLinearLayout(QGraphicsLayoutItem* parent = 0); | ||||
QGraphicsLinearLayout* new_QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent = 0); | ||||
void delete_QGraphicsLinearLayout(QGraphicsLinearLayout* obj) { delete obj; } | ||||
florianlink
|
r24 | qreal itemSpacing(QGraphicsLinearLayout* theWrappedObject, int index) const; | ||
florianlink
|
r13 | void setSpacing(QGraphicsLinearLayout* theWrappedObject, qreal spacing); | ||
florianlink
|
r28 | void setOrientation(QGraphicsLinearLayout* theWrappedObject, Qt::Orientation orientation); | ||
void addItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item); | ||||
florianlink
|
r24 | void invalidate(QGraphicsLinearLayout* theWrappedObject); | ||
int stretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const; | ||||
QGraphicsLayoutItem* itemAt(QGraphicsLinearLayout* theWrappedObject, int index) const; | ||||
void setStretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, int stretch); | ||||
void removeItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item); | ||||
void setGeometry(QGraphicsLinearLayout* theWrappedObject, const QRectF& rect); | ||||
florianlink
|
r28 | void setItemSpacing(QGraphicsLinearLayout* theWrappedObject, int index, qreal spacing); | ||
florianlink
|
r13 | qreal spacing(QGraphicsLinearLayout* theWrappedObject) const; | ||
florianlink
|
r24 | void insertStretch(QGraphicsLinearLayout* theWrappedObject, int index, int stretch = 1); | ||
florianlink
|
r28 | QSizeF sizeHint(QGraphicsLinearLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; | ||
int count(QGraphicsLinearLayout* theWrappedObject) const; | ||||
florianlink
|
r24 | void insertItem(QGraphicsLinearLayout* theWrappedObject, int index, QGraphicsLayoutItem* item); | ||
void addStretch(QGraphicsLinearLayout* theWrappedObject, int stretch = 1); | ||||
void setAlignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment); | ||||
Qt::Alignment alignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const; | ||||
florianlink
|
r28 | Qt::Orientation orientation(QGraphicsLinearLayout* theWrappedObject) const; | ||
void removeAt(QGraphicsLinearLayout* theWrappedObject, int index); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QGRAPHICSLINEARLAYOUT_H | ||||