#include <qrect.h>
Public Member Functions |
|
| QRectF () | |
| QRectF (const QPointF &topleft, const QSizeF &size) | |
| QRectF (const QPointF &topleft, const QPointF &bottomRight) | |
| QRectF (qreal left, qreal top, qreal width, qreal height) | |
| QRectF (const QRect &rect) | |
| bool | isNull () const |
| bool | isEmpty () const |
| bool | isValid () const |
| QRectF | normalized () const |
| qreal | left () const |
| qreal | top () const |
| qreal | right () const |
| qreal | bottom () const |
| qreal | x () const |
| qreal | y () const |
| void | setLeft (qreal pos) |
| void | setTop (qreal pos) |
| void | setRight (qreal pos) |
| void | setBottom (qreal pos) |
| void | setX (qreal pos) |
| void | setY (qreal pos) |
| QPointF | topLeft () const |
| QPointF | bottomRight () const |
| QPointF | topRight () const |
| QPointF | bottomLeft () const |
| QPointF | center () const |
| void | setTopLeft (const QPointF &p) |
| void | setBottomRight (const QPointF &p) |
| void | setTopRight (const QPointF &p) |
| void | setBottomLeft (const QPointF &p) |
| void | moveLeft (qreal pos) |
| void | moveTop (qreal pos) |
| void | moveRight (qreal pos) |
| void | moveBottom (qreal pos) |
| void | moveTopLeft (const QPointF &p) |
| void | moveBottomRight (const QPointF &p) |
| void | moveTopRight (const QPointF &p) |
| void | moveBottomLeft (const QPointF &p) |
| void | moveCenter (const QPointF &p) |
| void | translate (qreal dx, qreal dy) |
| void | translate (const QPointF &p) |
| QRectF | translated (qreal dx, qreal dy) const |
| QRectF | translated (const QPointF &p) const |
| void | moveTo (qreal x, qreal t) |
| void | moveTo (const QPointF &p) |
| void | setRect (qreal x, qreal y, qreal w, qreal h) |
| void | getRect (qreal *x, qreal *y, qreal *w, qreal *h) const |
| void | setCoords (qreal x1, qreal y1, qreal x2, qreal y2) |
| void | getCoords (qreal *x1, qreal *y1, qreal *x2, qreal *y2) const |
| void | adjust (qreal x1, qreal y1, qreal x2, qreal y2) |
| QRectF | adjusted (qreal x1, qreal y1, qreal x2, qreal y2) const |
| QSizeF | size () const |
| qreal | width () const |
| qreal | height () const |
| void | setWidth (qreal w) |
| void | setHeight (qreal h) |
| void | setSize (const QSizeF &s) |
| QRectF | operator| (const QRectF &r) const |
| QRectF | operator& (const QRectF &r) const |
| QRectF & | operator|= (const QRectF &r) |
| QRectF & | operator&= (const QRectF &r) |
| bool | contains (const QPointF &p) const |
| bool | contains (qreal x, qreal y) const |
| bool | contains (const QRectF &r) const |
| QRectF | unite (const QRectF &r) const |
| QRectF | united (const QRectF &other) const |
| QRectF | intersect (const QRectF &r) const |
| QRectF | intersected (const QRectF &other) const |
| bool | intersects (const QRectF &r) const |
| QRect | toRect () const |
| QRect | toAlignedRect () const |
Friends |
|
| Q_CORE_EXPORT_INLINE bool | operator== (const QRectF &, const QRectF &) |
| Q_CORE_EXPORT_INLINE bool | operator!= (const QRectF &, const QRectF &) |
| QRectF | ( | qreal | left, |
| qreal | top, | ||
| qreal | width, | ||
| qreal | height | ||
| ) | [inline] |
| bool isNull | ( | ) | const [inline] |
| bool isEmpty | ( | ) | const [inline] |
| bool isValid | ( | ) | const [inline] |
| QRectF normalized | ( | ) | const |
| qreal left | ( | ) | const [inline] |
| qreal top | ( | ) | const [inline] |
| qreal right | ( | ) | const [inline] |
| qreal bottom | ( | ) | const [inline] |
| qreal x | ( | ) | const [inline] |
| qreal y | ( | ) | const [inline] |
| void setLeft | ( | qreal | pos | ) | [inline] |
| void setTop | ( | qreal | pos | ) | [inline] |
| void setRight | ( | qreal | pos | ) | [inline] |
| void setBottom | ( | qreal | pos | ) | [inline] |
| void setX | ( | qreal | pos | ) | [inline] |
| void setY | ( | qreal | pos | ) | [inline] |
| QPointF topLeft | ( | ) | const [inline] |
| QPointF bottomRight | ( | ) | const [inline] |
| QPointF topRight | ( | ) | const [inline] |
| QPointF bottomLeft | ( | ) | const [inline] |
| QPointF center | ( | ) | const [inline] |
| void setTopLeft | ( | const QPointF & | p | ) | [inline] |
| void setBottomRight | ( | const QPointF & | p | ) | [inline] |
| void setTopRight | ( | const QPointF & | p | ) | [inline] |
| void setBottomLeft | ( | const QPointF & | p | ) | [inline] |
| void moveLeft | ( | qreal | pos | ) | [inline] |
| void moveTop | ( | qreal | pos | ) | [inline] |
| void moveRight | ( | qreal | pos | ) | [inline] |
| void moveBottom | ( | qreal | pos | ) | [inline] |
| void moveTopLeft | ( | const QPointF & | p | ) | [inline] |
| void moveBottomRight | ( | const QPointF & | p | ) | [inline] |
| void moveTopRight | ( | const QPointF & | p | ) | [inline] |
| void moveBottomLeft | ( | const QPointF & | p | ) | [inline] |
| void moveCenter | ( | const QPointF & | p | ) | [inline] |
| void translate | ( | qreal | dx, |
| qreal | dy | ||
| ) | [inline] |
| void translate | ( | const QPointF & | p | ) | [inline] |
| QRectF translated | ( | qreal | dx, |
| qreal | dy | ||
| ) | const [inline] |
| void moveTo | ( | qreal | x, |
| qreal | t | ||
| ) | [inline] |
| void moveTo | ( | const QPointF & | p | ) | [inline] |
| void setRect | ( | qreal | x, |
| qreal | y, | ||
| qreal | w, | ||
| qreal | h | ||
| ) | [inline] |
| void getRect | ( | qreal * | x, |
| qreal * | y, | ||
| qreal * | w, | ||
| qreal * | h | ||
| ) | const [inline] |
| void setCoords | ( | qreal | x1, |
| qreal | y1, | ||
| qreal | x2, | ||
| qreal | y2 | ||
| ) | [inline] |
| void getCoords | ( | qreal * | x1, |
| qreal * | y1, | ||
| qreal * | x2, | ||
| qreal * | y2 | ||
| ) | const [inline] |
| void adjust | ( | qreal | x1, |
| qreal | y1, | ||
| qreal | x2, | ||
| qreal | y2 | ||
| ) | [inline] |
| QRectF adjusted | ( | qreal | x1, |
| qreal | y1, | ||
| qreal | x2, | ||
| qreal | y2 | ||
| ) | const [inline] |
| QSizeF size | ( | ) | const [inline] |
| qreal width | ( | ) | const [inline] |
| qreal height | ( | ) | const [inline] |
| void setWidth | ( | qreal | w | ) | [inline] |
| void setHeight | ( | qreal | h | ) | [inline] |
| void setSize | ( | const QSizeF & | s | ) | [inline] |
| bool contains | ( | const QPointF & | p | ) | const |
| bool contains | ( | qreal | x, |
| qreal | y | ||
| ) | const [inline] |
| bool contains | ( | const QRectF & | r | ) | const |
| bool intersects | ( | const QRectF & | r | ) | const |
| QRect toRect | ( | ) | const [inline] |
| QRect toAlignedRect | ( | ) | const |