_JM_NAMESPACE::GenRect< Coord > Struct Template Reference

#include <coordinates.h>

List of all members.

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

Detailed Description

template<typename Coord>
struct _JM_NAMESPACE::GenRect< Coord >

Generic rectangle.


Member Typedef Documentation

template<typename Coord>
typedef struct GenRect< Coord > _JM_NAMESPACE::GenRect< Coord >::Type

Constructor & Destructor Documentation

template<typename Coord>
_JM_NAMESPACE::GenRect< Coord >::GenRect (  )  [inline]
template<typename Coord>
_JM_NAMESPACE::GenRect< Coord >::GenRect ( Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2 
) [inline]

Member Function Documentation

template<typename Coord>
bool _JM_NAMESPACE::GenRect< Coord >::contains ( Coord  x,
Coord  y 
) const [inline]

True if the rectangle contains the point.

Parameters:
x x-coordinate of point.
y y-coordinate of point.
Returns:
True if the specified point is in the rectangle, false otherwise.

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()().

template<typename Coord>
static bool _JM_NAMESPACE::GenRect< Coord >::isInitialized ( Type  rc  )  [inline, static]
template<typename Coord>
bool _JM_NAMESPACE::GenRect< Coord >::operator== ( const GenRect< Coord > &  rc  )  const [inline]

Member Data Documentation

template<typename Coord>
Coord _JM_NAMESPACE::GenRect< Coord >::xleft
template<typename Coord>
Coord _JM_NAMESPACE::GenRect< Coord >::xright
template<typename Coord>
Coord _JM_NAMESPACE::GenRect< Coord >::yleft
template<typename Coord>
Coord _JM_NAMESPACE::GenRect< Coord >::yright

The documentation for this struct was generated from the following file: