|
My Project
|
when concerting QRect with QRectF and RECT, we ensure that their left, top and width, height are the same. More...
#include <ParaRect.h>
Public Member Functions | |
| QRect (const QPoint &topleft, const QPoint &bottomright) | |
| QRect (const QPoint &topleft, const QSize &size) | |
| QRect (int32 left, int32 top, int32 width, int32 height) | |
| QRect (const RECT &r) | |
| QRect (const QRectF &rect) | |
| operator RECT () const | |
| bool | isNull () const |
| bool | isEmpty () const |
| bool | isValid () const |
| int32 | left () const |
| int32 | top () const |
| int32 | right () const |
| int32 | bottom () const |
| QRect | normalized () const |
| int32 | x () const |
| int32 | y () const |
| void | setLeft (int32 pos) |
| void | setTop (int32 pos) |
| void | setRight (int32 pos) |
| void | setBottom (int32 pos) |
| void | setX (int32 x) |
| void | setY (int32 y) |
| void | setTopLeft (const QPoint &p) |
| void | setBottomRight (const QPoint &p) |
| void | setTopRight (const QPoint &p) |
| void | setBottomLeft (const QPoint &p) |
| QPoint | topLeft () const |
| QPoint | bottomRight () const |
| QPoint | topRight () const |
| QPoint | bottomLeft () const |
| QPoint | center () const |
| void | moveLeft (int32 pos) |
| void | moveTop (int32 pos) |
| void | moveRight (int32 pos) |
| void | moveBottom (int32 pos) |
| void | moveTopLeft (const QPoint &p) |
| void | moveBottomRight (const QPoint &p) |
| void | moveTopRight (const QPoint &p) |
| void | moveBottomLeft (const QPoint &p) |
| void | moveCenter (const QPoint &p) |
| void | translate (int32 dx, int32 dy) |
| void | translate (const QPoint &p) |
| QRect | translated (int32 dx, int32 dy) const |
| QRect | translated (const QPoint &p) const |
| void | moveTo (int32 x, int32 t) |
| void | moveTo (const QPoint &p) |
| void | setRect (int32 x, int32 y, int32 w, int32 h) |
| void | getRect (int32 *x, int32 *y, int32 *w, int32 *h) const |
| void | setCoords (int32 x1, int32 y1, int32 x2, int32 y2) |
| void | getCoords (int32 *x1, int32 *y1, int32 *x2, int32 *y2) const |
| void | adjust (int32 x1, int32 y1, int32 x2, int32 y2) |
| QRect | adjusted (int32 x1, int32 y1, int32 x2, int32 y2) const |
| QSize | size () const |
| int32 | width () const |
| int32 | height () const |
| void | setWidth (int32 w) |
| void | setHeight (int32 h) |
| void | setSize (const QSize &s) |
| QRect | operator| (const QRect &r) const |
| QRect | operator & (const QRect &r) const |
| QRect & | operator|= (const QRect &r) |
| QRect & | operator &= (const QRect &r) |
| bool | contains (const QRect &r, bool proper=false) const |
| bool | contains (const QPoint &p, bool proper=false) const |
| bool | contains (int32 x, int32 y) const |
| bool | contains (int32 x, int32 y, bool proper) const |
| QRect | united (const QRect &other) const |
| QRect | intersected (const QRect &other) const |
| bool | intersects (const QRect &r) const |
| QRect | marginsAdded (const QMargins &margins) const |
| QRect | marginsRemoved (const QMargins &margins) const |
| QRect & | operator+= (const QMargins &margins) |
| QRect & | operator-= (const QMargins &margins) |
Friends | |
| bool | operator== (const QRect &, const QRect &) |
| bool | operator!= (const QRect &, const QRect &) |
when concerting QRect with QRectF and RECT, we ensure that their left, top and width, height are the same.
however, QRect's internal bottom right may be 1 pixel smaller than QRectF and RECT. width = right - left + 1 height = bottom - top + 1
Returns the bounding rectangle of this rectangle and the given rectangle.
1.8.12