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