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