#include <coordinates.h>
Public Types | |
| typedef struct GenRect< Coord > | Type |
Public Member Functions | |
| GenRect () | |
| GenRect (Coord x1, Coord y1, Coord x2, Coord y2) | |
| bool | contains (Coord x, Coord y) const |
| bool | operator== (const GenRect< Coord > &rc) const |
Static Public Member Functions | |
| static bool | isInitialized (Type rc) |
Public Attributes | |
| Coord | xleft |
| Coord | yleft |
| Coord | xright |
| Coord | yright |
Generic rectangle.
| typedef struct GenRect< Coord > _JM_NAMESPACE::GenRect< Coord >::Type |
| _JM_NAMESPACE::GenRect< Coord >::GenRect | ( | ) | [inline] |
| _JM_NAMESPACE::GenRect< Coord >::GenRect | ( | Coord | x1, | |
| Coord | y1, | |||
| Coord | x2, | |||
| Coord | y2 | |||
| ) | [inline] |
| bool _JM_NAMESPACE::GenRect< Coord >::contains | ( | Coord | x, | |
| Coord | y | |||
| ) | const [inline] |
True if the rectangle contains the point.
| x | x-coordinate of point. | |
| y | y-coordinate of point. |
References _JM_NAMESPACE::max(), _JM_NAMESPACE::min(), _JM_NAMESPACE::GenRect< Coord >::xleft, _JM_NAMESPACE::GenRect< Coord >::xright, _JM_NAMESPACE::GenRect< Coord >::yleft, and _JM_NAMESPACE::GenRect< Coord >::yright.
Referenced by PdfOpCmpPt::operator()().
| static bool _JM_NAMESPACE::GenRect< Coord >::isInitialized | ( | Type | rc | ) | [inline, static] |
Is initialized.
References _JM_NAMESPACE::COORDINATE_INVALID, and _JM_NAMESPACE::GenRect< Coord >::xleft.
Referenced by PdfOpCmpRc::operator()().
| bool _JM_NAMESPACE::GenRect< Coord >::operator== | ( | const GenRect< Coord > & | rc | ) | const [inline] |
Equality operator.
References _JM_NAMESPACE::GenRect< Coord >::xleft, _JM_NAMESPACE::GenRect< Coord >::xright, _JM_NAMESPACE::GenRect< Coord >::yleft, and _JM_NAMESPACE::GenRect< Coord >::yright.
| Coord _JM_NAMESPACE::GenRect< Coord >::xleft |
Left x coordinate.
Referenced by _JM_NAMESPACE::GenRect< Coord >::contains(), _JM_NAMESPACE::GenRect< Coord >::GenRect(), _JM_NAMESPACE::GenRect< Coord >::isInitialized(), _JM_NAMESPACE::operator<<(), _JM_NAMESPACE::GenRect< Coord >::operator==(), _JM_NAMESPACE::rectangle_intersect(), and _JM_NAMESPACE::rectangle_merge().
| Coord _JM_NAMESPACE::GenRect< Coord >::xright |
| Coord _JM_NAMESPACE::GenRect< Coord >::yleft |
| Coord _JM_NAMESPACE::GenRect< Coord >::yright |