#ifndef PYTHONQTWRAPPER_QRECT_H #define PYTHONQTWRAPPER_QRECT_H #include #include #include #include #include #include #include #include class PythonQtWrapper_QRect : public QObject { Q_OBJECT public: public slots: QRect* new_QRect(); QRect* new_QRect(const QPoint& topleft, const QPoint& bottomright); QRect* new_QRect(const QPoint& topleft, const QSize& size); QRect* new_QRect(int left, int top, int width, int height); QRect* new_QRect(const QRect& other) { QRect* a = new QRect(); *((QRect*)a) = other; return a; } void delete_QRect(QRect* obj) { delete obj; } bool contains(QRect* theWrappedObject, int x, int y) const; void moveTopRight(QRect* theWrappedObject, const QPoint& p); bool isValid(QRect* theWrappedObject) const; bool contains(QRect* theWrappedObject, int x, int y, bool proper) const; void moveTo(QRect* theWrappedObject, const QPoint& p); void writeTo(QRect* theWrappedObject, QDataStream& arg__1); void setWidth(QRect* theWrappedObject, int w); int bottom(QRect* theWrappedObject) const; QPoint bottomLeft(QRect* theWrappedObject) const; QRect normalized(QRect* theWrappedObject) const; void moveTop(QRect* theWrappedObject, int pos); void setHeight(QRect* theWrappedObject, int h); int left(QRect* theWrappedObject) const; void setBottomLeft(QRect* theWrappedObject, const QPoint& p); QRect adjusted(QRect* theWrappedObject, int x1, int y1, int x2, int y2) const; void setRect(QRect* theWrappedObject, int x, int y, int w, int h); int top(QRect* theWrappedObject) const; void moveLeft(QRect* theWrappedObject, int pos); bool contains(QRect* theWrappedObject, const QPoint& p, bool proper = false) const; bool contains(QRect* theWrappedObject, const QRect& r, bool proper = false) const; void setLeft(QRect* theWrappedObject, int pos); QPoint topLeft(QRect* theWrappedObject) const; bool isNull(QRect* theWrappedObject) const; void translate(QRect* theWrappedObject, int dx, int dy); void translate(QRect* theWrappedObject, const QPoint& p); void adjust(QRect* theWrappedObject, int x1, int y1, int x2, int y2); QRect intersected(QRect* theWrappedObject, const QRect& other) const; void moveCenter(QRect* theWrappedObject, const QPoint& p); void setBottom(QRect* theWrappedObject, int pos); void moveTo(QRect* theWrappedObject, int x, int t); QSize size(QRect* theWrappedObject) const; void moveBottomLeft(QRect* theWrappedObject, const QPoint& p); int y(QRect* theWrappedObject) const; void setRight(QRect* theWrappedObject, int pos); void moveTopLeft(QRect* theWrappedObject, const QPoint& p); QRect translated(QRect* theWrappedObject, int dx, int dy) const; void readFrom(QRect* theWrappedObject, QDataStream& arg__1); int height(QRect* theWrappedObject) const; void setTopRight(QRect* theWrappedObject, const QPoint& p); void setX(QRect* theWrappedObject, int x); void moveBottom(QRect* theWrappedObject, int pos); bool operator_equal(QRect* theWrappedObject, const QRect& arg__2); int right(QRect* theWrappedObject) const; void setY(QRect* theWrappedObject, int y); int width(QRect* theWrappedObject) const; QPoint center(QRect* theWrappedObject) const; bool intersects(QRect* theWrappedObject, const QRect& r) const; void setTop(QRect* theWrappedObject, int pos); void setSize(QRect* theWrappedObject, const QSize& s); QRect united(QRect* theWrappedObject, const QRect& other) const; void setTopLeft(QRect* theWrappedObject, const QPoint& p); QPoint bottomRight(QRect* theWrappedObject) const; void setBottomRight(QRect* theWrappedObject, const QPoint& p); QRect translated(QRect* theWrappedObject, const QPoint& p) const; QPoint topRight(QRect* theWrappedObject) const; void moveRight(QRect* theWrappedObject, int pos); int x(QRect* theWrappedObject) const; bool isEmpty(QRect* theWrappedObject) const; void moveBottomRight(QRect* theWrappedObject, const QPoint& p); void setCoords(QRect* theWrappedObject, int x1, int y1, int x2, int y2); QString toString(QRect*); }; #endif // PYTHONQTWRAPPER_QRECT_H