KoRect Class Reference
A rect whose coordinates are floating-point values ( "double"s ). More...
#include <koRect.h>
Collaboration diagram for KoRect:

Public Member Functions | |
KoRect (const KoPoint &topleft, const KoPoint &bottomright) | |
KoRect (const KoPoint &topleft, const KoSize &size) | |
KoRect (const double &left, const double &top, const double &width, const double &height) | |
bool | isNull () const |
bool | isEmpty () const |
bool | isValid () const |
KoRect | normalize () const |
double | left () const |
double | top () const |
double | right () const |
double | bottom () const |
double & | rLeft () |
double & | rTop () |
double & | rRight () |
double & | rBottom () |
double | x () const |
double | y () const |
void | setLeft (const double &left) |
void | setTop (const double &top) |
void | setRight (const double &right) |
void | setBottom (const double &bottom) |
void | setX (const double &x) |
void | setY (const double &y) |
KoPoint | topLeft () const |
KoPoint | bottomRight () const |
KoPoint | topRight () const |
KoPoint | bottomLeft () const |
KoPoint | center () const |
void | moveTopLeft (const KoPoint &topleft) |
void | moveBottomRight (const KoPoint &bottomright) |
void | moveTopRight (const KoPoint &topright) |
void | moveBottomLeft (const KoPoint &bottomleft) |
void | moveBy (const double &dx, const double &dy) |
void | setRect (const double &x, const double &y, const double &width, const double &height) |
void | setRect (const KoRect &rect) |
void | setCoords (const double &x1, const double &y1, const double &x2, const double &y2) |
KoSize | size () const |
double | width () const |
double | height () const |
void | setWidth (const double &width) |
void | setHeight (const double &height) |
void | setSize (const KoSize &size) |
KoRect & | operator|= (const KoRect &rhs) |
KoRect & | operator &= (const KoRect &rhs) |
bool | contains (const KoPoint &p, bool proper=false) const |
bool | contains (const double &x, const double &y, bool proper=false) const |
bool | contains (const KoRect &r, bool proper=false) const |
KoRect | unite (const KoRect &r) const |
KoRect | intersect (const KoRect &r) const |
bool | intersects (const KoRect &r) const |
KoRect | transform (const QWMatrix &m) const |
KoRect | translate (double dx, double dy) const |
QRect | toQRect () const |
Static Public Member Functions | |
static KoRect | fromQRect (const QRect &rect) |
Detailed Description
A rect whose coordinates are floating-point values ( "double"s ).The API isn't documented, it's a perfect mirror of QRect.
Definition at line 31 of file koRect.h.
The documentation for this class was generated from the following files: