#include <KoRect.h>
Graphe de collaboration de KoRect:
Fonctions membres publiques | |
KoRect () | |
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) | |
~KoRect () | |
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 | setTopLeft (const KoPoint &topleft) |
void | setBottomRight (const KoPoint &bottomright) |
void | setTopRight (const KoPoint &topright) |
void | setBottomLeft (const KoPoint &bottomleft) |
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) const |
bool | contains (const double &x, const double &y) const |
Helper function for the above function. | |
bool | contains (const KoRect &r) const |
Helper function for the above function. | |
KoRect | unite (const KoRect &r) const |
KoRect | intersect (const KoRect &r) const |
bool | intersects (const KoRect &r) const |
KoRect | transform (const QMatrix &m) const |
KoRect | translate (double dx, double dy) const |
QRect | toQRect () const |
Fonctions membres publiques statiques | |
static KoRect | fromQRect (const QRect &rect) |
Attributs privés | |
KoPoint | m_tl |
KoPoint | m_br |
Définition à la ligne 31 du fichier KoRect.h.
KoRect::KoRect | ( | ) | [inline] |
Définition à la ligne 34 du fichier KoRect.h.
Référencé par fromQRect(), transform(), et translate().
Voici le graphe d'appel pour cette fonction :
KoRect::KoRect | ( | const double & | left, | |
const double & | top, | |||
const double & | width, | |||
const double & | height | |||
) | [inline] |
bool KoRect::isNull | ( | void | ) | const [inline] |
Définition à la ligne 44 du fichier KoRect.h.
Référencé par KoRectTest::testEmptyRect(), KoRectTest::testNonEmptyRect(), et KoRectTest::testUnion().
bool KoRect::isEmpty | ( | ) | const [inline] |
Définition à la ligne 46 du fichier KoRect.h.
Référencé par operator|(), operator|=(), KoRectTest::testEmptyRect(), KoRectTest::testNonEmptyRect(), et KoRectTest::testUnion().
Voici le graphe d'appel pour cette fonction :
KoRect KoRect::normalize | ( | ) | const |
Définition à la ligne 21 du fichier KoRect.cpp.
Références bottom(), left(), m_br, m_tl, right(), KoPoint::setX(), KoPoint::setY(), et top().
Voici le graphe d'appel pour cette fonction :
double KoRect::left | ( | ) | const [inline] |
Définition à la ligne 51 du fichier KoRect.h.
Référencé par center(), contains(), KoGuides::diffNextGuide(), intersects(), KoGuideLineDia::KoGuideLineDia(), normalize(), operator &(), operator &=(), operator<<(), operator|(), operator|=(), KoGuides::repaintSnapping(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), toQRect(), translate(), et KoZoomHandler::zoomRectOld().
Voici le graphe d'appel pour cette fonction :
double KoRect::top | ( | ) | const [inline] |
Définition à la ligne 52 du fichier KoRect.h.
Référencé par center(), contains(), KoGuides::diffNextGuide(), intersects(), normalize(), operator &(), operator &=(), operator<<(), operator|(), operator|=(), KoGuides::repaintSnapping(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), toQRect(), translate(), et KoZoomHandler::zoomRectOld().
Voici le graphe d'appel pour cette fonction :
double KoRect::right | ( | ) | const [inline] |
Définition à la ligne 53 du fichier KoRect.h.
Référencé par center(), contains(), KoGuides::diffNextGuide(), intersects(), KoGuideLineDia::KoGuideLineDia(), normalize(), operator &(), operator &=(), operator|(), operator|=(), KoGuides::repaintSnapping(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), et KoZoomHandler::zoomRectOld().
Voici le graphe d'appel pour cette fonction :
double KoRect::bottom | ( | ) | const [inline] |
Définition à la ligne 54 du fichier KoRect.h.
Référencé par center(), contains(), KoGuides::diffNextGuide(), intersects(), normalize(), operator &(), operator &=(), operator|(), operator|=(), KoGuides::repaintSnapping(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), et KoZoomHandler::zoomRectOld().
Voici le graphe d'appel pour cette fonction :
double KoRect::x | ( | ) | const [inline] |
Définition à la ligne 61 du fichier KoRect.h.
Référencé par transform().
Voici le graphe d'appel pour cette fonction :
double KoRect::y | ( | ) | const [inline] |
Définition à la ligne 62 du fichier KoRect.h.
Référencé par transform().
Voici le graphe d'appel pour cette fonction :
void KoRect::setRight | ( | const double & | right | ) | [inline] |
void KoRect::setBottom | ( | const double & | bottom | ) | [inline] |
KoPoint KoRect::topLeft | ( | ) | const [inline] |
Définition à la ligne 72 du fichier KoRect.h.
Référencé par operator!=(), operator==(), KoTextZoomHandler::ptToLayoutUnitPt(), et transform().
Voici le graphe d'appel pour cette fonction :
KoPoint KoRect::bottomRight | ( | ) | const [inline] |
Définition à la ligne 73 du fichier KoRect.h.
Référencé par operator!=(), operator==(), KoTextZoomHandler::ptToLayoutUnitPt(), et transform().
Voici le graphe d'appel pour cette fonction :
KoPoint KoRect::center | ( | ) | const |
void KoRect::setTopLeft | ( | const KoPoint & | topleft | ) |
void KoRect::setBottomRight | ( | const KoPoint & | bottomright | ) |
void KoRect::setTopRight | ( | const KoPoint & | topright | ) |
Définition à la ligne 51 du fichier KoRect.cpp.
Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
void KoRect::setBottomLeft | ( | const KoPoint & | bottomleft | ) |
Définition à la ligne 57 du fichier KoRect.cpp.
Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
void KoRect::moveTopLeft | ( | const KoPoint & | topleft | ) |
Définition à la ligne 69 du fichier KoRect.cpp.
Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
void KoRect::moveBottomRight | ( | const KoPoint & | bottomright | ) |
Définition à la ligne 76 du fichier KoRect.cpp.
Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
void KoRect::moveTopRight | ( | const KoPoint & | topright | ) |
Définition à la ligne 83 du fichier KoRect.cpp.
Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
void KoRect::moveBottomLeft | ( | const KoPoint & | bottomleft | ) |
Définition à la ligne 91 du fichier KoRect.cpp.
Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
void KoRect::moveBy | ( | const double & | dx, | |
const double & | dy | |||
) |
Définition à la ligne 99 du fichier KoRect.cpp.
Références m_br, m_tl, KoPoint::rx(), et KoPoint::ry().
Voici le graphe d'appel pour cette fonction :
void KoRect::setRect | ( | const double & | x, | |
const double & | y, | |||
const double & | width, | |||
const double & | height | |||
) |
Définition à la ligne 107 du fichier KoRect.cpp.
Références m_br, m_tl, et KoPoint::setCoords().
Voici le graphe d'appel pour cette fonction :
void KoRect::setRect | ( | const KoRect & | rect | ) |
void KoRect::setCoords | ( | const double & | x1, | |
const double & | y1, | |||
const double & | x2, | |||
const double & | y2 | |||
) |
Définition à la ligne 119 du fichier KoRect.cpp.
Références m_br, m_tl, et KoPoint::setCoords().
Référencé par operator &(), operator|(), et KoZoomHandler::unzoomRectOld().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoSize KoRect::size | ( | ) | const |
Définition à la ligne 131 du fichier KoRect.cpp.
Références height(), et width().
Référencé par setSize().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
double KoRect::width | ( | ) | const [inline] |
Définition à la ligne 95 du fichier KoRect.h.
Référencé par operator<<(), size(), toQRect(), et translate().
Voici le graphe d'appel pour cette fonction :
double KoRect::height | ( | ) | const [inline] |
Définition à la ligne 96 du fichier KoRect.h.
Référencé par operator<<(), size(), toQRect(), et translate().
Voici le graphe d'appel pour cette fonction :
void KoRect::setWidth | ( | const double & | width | ) | [inline] |
void KoRect::setHeight | ( | const double & | height | ) | [inline] |
void KoRect::setSize | ( | const KoSize & | size | ) |
Définition à la ligne 125 du fichier KoRect.cpp.
Références KoSize::height(), setHeight(), setWidth(), size(), et KoSize::width().
Voici le graphe d'appel pour cette fonction :
Définition à la ligne 136 du fichier KoRect.cpp.
Références bottom(), isEmpty(), left(), m_br, m_tl, right(), KoPoint::setX(), KoPoint::setY(), top(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
Définition à la ligne 156 du fichier KoRect.cpp.
Références bottom(), left(), m_br, m_tl, right(), KoPoint::setX(), KoPoint::setY(), top(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
bool KoRect::contains | ( | const KoPoint & | p | ) | const |
Returns if the point is contained in the rect.
p | the point to test Will return true if the point is contained in the 2d area this rect represents, this means that it will return true on everthing from the topleft() to the bottomright(); Note that for KoRect(0, 0, 100, 100) the KoPoint(0, 0) as well as KoPoint(100, 100) are mathmatically contained in the rect, this in contrary to pixel based rectangles. |
Définition à la ligne 169 du fichier KoRect.cpp.
Références m_br, m_tl, KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
bool KoRect::contains | ( | const double & | x, | |
const double & | y | |||
) | const |
Helper function for the above function.
Définition à la ligne 173 du fichier KoRect.cpp.
Références m_br, m_tl, KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
bool KoRect::contains | ( | const KoRect & | r | ) | const |
Helper function for the above function.
Définition à la ligne 177 du fichier KoRect.cpp.
Références bottom(), left(), m_br, m_tl, right(), top(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
Définition à la ligne 182 du fichier KoRect.cpp.
Définition à la ligne 186 du fichier KoRect.cpp.
bool KoRect::intersects | ( | const KoRect & | r | ) | const |
Définition à la ligne 190 du fichier KoRect.cpp.
Références bottom(), left(), m_br, m_tl, right(), top(), KoPoint::x(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
KoRect KoRect::transform | ( | const QMatrix & | m | ) | const |
Définition à la ligne 229 du fichier KoRect.cpp.
Références bottomRight(), KoRect(), m_br, m_tl, testguiform::result, topLeft(), x(), KoPoint::x(), y(), et KoPoint::y().
Voici le graphe d'appel pour cette fonction :
KoRect KoRect::translate | ( | double | dx, | |
double | dy | |||
) | const |
QRect KoRect::toQRect | ( | ) | const |
KoRect KoRect::fromQRect | ( | const QRect & | rect | ) | [static] |
Définition à la ligne 271 du fichier KoRect.cpp.
Références KoRect().
Voici le graphe d'appel pour cette fonction :
KoPoint KoRect::m_tl [private] |
Définition à la ligne 127 du fichier KoRect.h.
Référencé par contains(), intersects(), moveBottomLeft(), moveBottomRight(), moveBy(), moveTopLeft(), moveTopRight(), normalize(), operator &=(), operator|=(), setBottomLeft(), setCoords(), setRect(), setTopLeft(), setTopRight(), et transform().
KoPoint KoRect::m_br [private] |
Définition à la ligne 127 du fichier KoRect.h.
Référencé par contains(), intersects(), moveBottomLeft(), moveBottomRight(), moveBy(), moveTopLeft(), moveTopRight(), normalize(), operator &=(), operator|=(), setBottomLeft(), setBottomRight(), setCoords(), setRect(), setTopRight(), et transform().