PythonQtWrapper_QRectF.h
92 lines
| 4.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QRECTF_H | ||
#define PYTHONQTWRAPPER_QRECTF_H | ||||
#include <qrect.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
class PythonQtWrapper_QRectF : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QRectF* new_QRectF(); | ||||
QRectF* new_QRectF(const QPointF& topleft, const QPointF& bottomRight); | ||||
QRectF* new_QRectF(const QPointF& topleft, const QSizeF& size); | ||||
QRectF* new_QRectF(const QRect& rect); | ||||
QRectF* new_QRectF(qreal left, qreal top, qreal width, qreal height); | ||||
florianlink
|
r24 | QRectF* new_QRectF(const QRectF& other) { | ||
QRectF* a = new QRectF(); | ||||
*((QRectF*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QRectF(QRectF* obj) { delete obj; } | ||
florianlink
|
r24 | void setWidth(QRectF* theWrappedObject, qreal w); | ||
florianlink
|
r28 | bool isEmpty(QRectF* theWrappedObject) const; | ||
qreal width(QRectF* theWrappedObject) const; | ||||
void moveBottomRight(QRectF* theWrappedObject, const QPointF& p); | ||||
void setTopLeft(QRectF* theWrappedObject, const QPointF& p); | ||||
QRectF translated(QRectF* theWrappedObject, qreal dx, qreal dy) const; | ||||
florianlink
|
r24 | bool intersects(QRectF* theWrappedObject, const QRectF& r) const; | ||
florianlink
|
r28 | void translate(QRectF* theWrappedObject, qreal dx, qreal dy); | ||
void setTopRight(QRectF* theWrappedObject, const QPointF& p); | ||||
void moveRight(QRectF* theWrappedObject, qreal pos); | ||||
florianlink
|
r24 | bool contains(QRectF* theWrappedObject, const QPointF& p) const; | ||
florianlink
|
r28 | void moveTo(QRectF* theWrappedObject, const QPointF& p); | ||
QPointF bottomRight(QRectF* theWrappedObject) const; | ||||
florianlink
|
r24 | void setBottom(QRectF* theWrappedObject, qreal pos); | ||
florianlink
|
r28 | void translate(QRectF* theWrappedObject, const QPointF& p); | ||
qreal bottom(QRectF* theWrappedObject) const; | ||||
void moveTo(QRectF* theWrappedObject, qreal x, qreal t); | ||||
florianlink
|
r24 | QPointF center(QRectF* theWrappedObject) const; | ||
florianlink
|
r28 | void setHeight(QRectF* theWrappedObject, qreal h); | ||
void setLeft(QRectF* theWrappedObject, qreal pos); | ||||
florianlink
|
r24 | QRectF normalized(QRectF* theWrappedObject) const; | ||
florianlink
|
r28 | void readFrom(QRectF* theWrappedObject, QDataStream& arg__1); | ||
void setRect(QRectF* theWrappedObject, qreal x, qreal y, qreal w, qreal h); | ||||
QRectF adjusted(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) const; | ||||
qreal left(QRectF* theWrappedObject) const; | ||||
void moveLeft(QRectF* theWrappedObject, qreal pos); | ||||
florianlink
|
r13 | QPointF topRight(QRectF* theWrappedObject) const; | ||
florianlink
|
r28 | bool isNull(QRectF* theWrappedObject) const; | ||
florianlink
|
r24 | void setRight(QRectF* theWrappedObject, qreal pos); | ||
florianlink
|
r28 | void moveTopLeft(QRectF* theWrappedObject, const QPointF& p); | ||
florianlink
|
r24 | void moveTop(QRectF* theWrappedObject, qreal pos); | ||
florianlink
|
r28 | QRectF translated(QRectF* theWrappedObject, const QPointF& p) const; | ||
QSizeF size(QRectF* theWrappedObject) const; | ||||
void setX(QRectF* theWrappedObject, qreal pos); | ||||
QPointF bottomLeft(QRectF* theWrappedObject) const; | ||||
bool operator_equal(QRectF* theWrappedObject, const QRectF& arg__2); | ||||
florianlink
|
r24 | void moveBottomLeft(QRectF* theWrappedObject, const QPointF& p); | ||
florianlink
|
r28 | bool isValid(QRectF* theWrappedObject) const; | ||
QRectF intersected(QRectF* theWrappedObject, const QRectF& other) const; | ||||
void moveTopRight(QRectF* theWrappedObject, const QPointF& p); | ||||
qreal height(QRectF* theWrappedObject) const; | ||||
void moveBottom(QRectF* theWrappedObject, qreal pos); | ||||
void moveCenter(QRectF* theWrappedObject, const QPointF& p); | ||||
bool contains(QRectF* theWrappedObject, const QRectF& r) const; | ||||
void setBottomRight(QRectF* theWrappedObject, const QPointF& p); | ||||
QPointF topLeft(QRectF* theWrappedObject) const; | ||||
qreal y(QRectF* theWrappedObject) const; | ||||
void writeTo(QRectF* theWrappedObject, QDataStream& arg__1); | ||||
qreal top(QRectF* theWrappedObject) const; | ||||
QRect toRect(QRectF* theWrappedObject) const; | ||||
qreal x(QRectF* theWrappedObject) const; | ||||
void setSize(QRectF* theWrappedObject, const QSizeF& s); | ||||
QRect toAlignedRect(QRectF* theWrappedObject) const; | ||||
florianlink
|
r24 | void adjust(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); | ||
void setBottomLeft(QRectF* theWrappedObject, const QPointF& p); | ||||
void setCoords(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); | ||||
florianlink
|
r28 | void setTop(QRectF* theWrappedObject, qreal pos); | ||
QRectF united(QRectF* theWrappedObject, const QRectF& other) const; | ||||
void setY(QRectF* theWrappedObject, qreal pos); | ||||
bool contains(QRectF* theWrappedObject, qreal x, qreal y) const; | ||||
qreal right(QRectF* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QRECTF_H | ||||