okular
Okular::NormalizedRect Class Reference
#include <area.h>
Public Member Functions | |
NormalizedRect () | |
NormalizedRect (double left, double top, double right, double bottom) | |
NormalizedRect (const QRect &rectangle, double xScale, double yScale) | |
NormalizedRect (const NormalizedRect &) | |
NormalizedPoint | center () const |
bool | contains (double x, double y) const |
double | distanceSqr (double x, double y, double xScale, double yScale) const |
QRect | geometry (int xScale, int yScale) const |
bool | intersects (const NormalizedRect &other) const |
bool | intersects (const NormalizedRect *other) const |
bool | intersects (double left, double top, double right, double bottom) const |
bool | isBottom (const NormalizedPoint &pt) const |
bool | isBottomOrLevel (const NormalizedPoint &pt) const |
bool | isLeft (const NormalizedPoint &pt) const |
bool | isNull () const |
bool | isRight (const NormalizedPoint &pt) const |
bool | isTop (const NormalizedPoint &pt) const |
bool | isTopOrLevel (const NormalizedPoint &pt) const |
NormalizedRect | operator& (const NormalizedRect &other) const |
NormalizedRect & | operator= (const NormalizedRect &other) |
bool | operator== (const NormalizedRect &other) const |
NormalizedRect | operator| (const NormalizedRect &other) const |
NormalizedRect & | operator|= (const NormalizedRect &other) |
QRect | roundedGeometry (int xScale, int yScale) const |
void | transform (const QTransform &matrix) |
Static Public Member Functions | |
static NormalizedRect | fromQRectF (const QRectF &rect) |
Public Attributes | |
double | bottom |
double | left |
double | right |
double | top |
Detailed Description
NormalizedRect is a helper class which stores the coordinates of a normalized rect, which is a rectangle of.
- See also
- NormalizedPoints.
Constructor & Destructor Documentation
NormalizedRect::NormalizedRect | ( | ) |
NormalizedRect::NormalizedRect | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom | ||
) |
NormalizedRect::NormalizedRect | ( | const QRect & | rectangle, |
double | xScale, | ||
double | yScale | ||
) |
NormalizedRect::NormalizedRect | ( | const NormalizedRect & | rect | ) |
Member Function Documentation
NormalizedPoint NormalizedRect::center | ( | ) | const |
bool NormalizedRect::contains | ( | double | x, |
double | y | ||
) | const |
|
inline |
|
static |
QRect NormalizedRect::geometry | ( | int | xScale, |
int | yScale | ||
) | const |
bool NormalizedRect::intersects | ( | const NormalizedRect & | other | ) | const |
bool NormalizedRect::intersects | ( | const NormalizedRect * | other | ) | const |
bool NormalizedRect::intersects | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom | ||
) | const |
|
inline |
|
inline |
|
inline |
bool NormalizedRect::isNull | ( | ) | const |
|
inline |
|
inline |
|
inline |
NormalizedRect NormalizedRect::operator& | ( | const NormalizedRect & | other | ) | const |
NormalizedRect & NormalizedRect::operator= | ( | const NormalizedRect & | other | ) |
bool NormalizedRect::operator== | ( | const NormalizedRect & | other | ) | const |
NormalizedRect NormalizedRect::operator| | ( | const NormalizedRect & | other | ) | const |
NormalizedRect & NormalizedRect::operator|= | ( | const NormalizedRect & | other | ) |
QRect NormalizedRect::roundedGeometry | ( | int | xScale, |
int | yScale | ||
) | const |
void NormalizedRect::transform | ( | const QTransform & | matrix | ) |
Member Data Documentation
double Okular::NormalizedRect::bottom |
double Okular::NormalizedRect::left |
double Okular::NormalizedRect::right |
double Okular::NormalizedRect::top |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.