Wt::WPoint Class Reference

Utility class that defines a 2D point. More...

#include <Wt/WPoint>

List of all members.

Public Member Functions

 WPoint ()
 Default constructor.
 WPoint (int x, int y)
 Construct a point.
bool isNull () const
 Check for a null point.
void setX (int x)
 Changes the X coordinate.
void setY (int y)
 Changes the Y coordinate.
int x () const
 Returns the X coordinate.
int y () const
 Returns the Y coordinate.
bool operator== (const WPoint &other) const
 Comparison operator.
bool operator!= (const WPoint &other) const
 Comparison operator.


Detailed Description

Utility class that defines a 2D point.

See also:
WImagePolygonArea

Constructor & Destructor Documentation

Wt::WPoint::WPoint (  ) 

Default constructor.

Constructs a null point.

See also:
isNull()

Wt::WPoint::WPoint ( int  x,
int  y 
) [inline]

Construct a point.

Constructs a point (x, y).


Member Function Documentation

bool Wt::WPoint::isNull (  )  const

Check for a null point.

See also:
WPoint()


Generated on Mon Jan 26 14:14:09 2009 for Wt by doxygen 1.5.6