PythonQtWrapper_QGraphicsLayoutItem.h
76 lines
| 4.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGRAPHICSLAYOUTITEM_H | ||
#define PYTHONQTWRAPPER_QGRAPHICSLAYOUTITEM_H | ||||
#include <qgraphicslayoutitem.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qgraphicslayoutitem.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
florianlink
|
r24 | class PythonQtShell_QGraphicsLayoutItem : public QGraphicsLayoutItem | ||
{ | ||||
public: | ||||
PythonQtShell_QGraphicsLayoutItem(QGraphicsLayoutItem* parent = 0, bool isLayout = false):QGraphicsLayoutItem(parent, isLayout),_wrapper(NULL) {}; | ||||
virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; | ||||
virtual void setGeometry(const QRectF& rect); | ||||
virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; | ||||
virtual void updateGeometry(); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r28 | class PythonQtPublicPromoter_QGraphicsLayoutItem : public QGraphicsLayoutItem | ||
{ public: | ||||
inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsLayoutItem::getContentsMargins(left, top, right, bottom); } | ||||
florianlink
|
r73 | inline void promoted_setGeometry(const QRectF& rect) { QGraphicsLayoutItem::setGeometry(rect); } | ||
florianlink
|
r28 | inline void promoted_updateGeometry() { QGraphicsLayoutItem::updateGeometry(); } | ||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QGraphicsLayoutItem : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
florianlink
|
r24 | QGraphicsLayoutItem* new_QGraphicsLayoutItem(QGraphicsLayoutItem* parent = 0, bool isLayout = false); | ||
florianlink
|
r13 | void delete_QGraphicsLayoutItem(QGraphicsLayoutItem* obj) { delete obj; } | ||
florianlink
|
r28 | void setPreferredWidth(QGraphicsLayoutItem* theWrappedObject, qreal width); | ||
florianlink
|
r24 | void setMinimumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height); | ||
QSizeF minimumSize(QGraphicsLayoutItem* theWrappedObject) const; | ||||
florianlink
|
r73 | QGraphicsLayoutItem* parentLayoutItem(QGraphicsLayoutItem* theWrappedObject) const; | ||
QRectF contentsRect(QGraphicsLayoutItem* theWrappedObject) const; | ||||
qreal maximumWidth(QGraphicsLayoutItem* theWrappedObject) const; | ||||
void setMaximumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width); | ||||
florianlink
|
r24 | QRectF geometry(QGraphicsLayoutItem* theWrappedObject) const; | ||
florianlink
|
r28 | void setMaximumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height); | ||
florianlink
|
r73 | QSizeF effectiveSizeHint(QGraphicsLayoutItem* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; | ||
florianlink
|
r28 | qreal maximumHeight(QGraphicsLayoutItem* theWrappedObject) const; | ||
florianlink
|
r73 | qreal minimumWidth(QGraphicsLayoutItem* theWrappedObject) const; | ||
QSizePolicy sizePolicy(QGraphicsLayoutItem* theWrappedObject) const; | ||||
bool isLayout(QGraphicsLayoutItem* theWrappedObject) const; | ||||
void setSizePolicy(QGraphicsLayoutItem* theWrappedObject, const QSizePolicy& policy); | ||||
qreal minimumHeight(QGraphicsLayoutItem* theWrappedObject) const; | ||||
void setMinimumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h); | ||||
florianlink
|
r28 | QSizeF maximumSize(QGraphicsLayoutItem* theWrappedObject) const; | ||
florianlink
|
r24 | qreal preferredWidth(QGraphicsLayoutItem* theWrappedObject) const; | ||
florianlink
|
r73 | void setMinimumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size); | ||
void setMaximumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h); | ||||
void setPreferredSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h); | ||||
qreal preferredHeight(QGraphicsLayoutItem* theWrappedObject) const; | ||||
void setMaximumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size); | ||||
florianlink
|
r28 | void setMinimumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width); | ||
florianlink
|
r73 | void setParentLayoutItem(QGraphicsLayoutItem* theWrappedObject, QGraphicsLayoutItem* parent); | ||
void getContentsMargins(QGraphicsLayoutItem* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; | ||||
void setPreferredHeight(QGraphicsLayoutItem* theWrappedObject, qreal height); | ||||
void setPreferredSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size); | ||||
QSizeF preferredSize(QGraphicsLayoutItem* theWrappedObject) const; | ||||
void setGeometry(QGraphicsLayoutItem* theWrappedObject, const QRectF& rect); | ||||
void setSizePolicy(QGraphicsLayoutItem* theWrappedObject, QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType = QSizePolicy::DefaultType); | ||||
florianlink
|
r28 | void updateGeometry(QGraphicsLayoutItem* theWrappedObject); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QGRAPHICSLAYOUTITEM_H | ||||