GUI::Point Class Reference

Wrap a point. More...

#include <Point.h>

List of all members.

Public Member Functions

 Point (int x=0, int y=0)
 Construct a new point.
int getX () const
 Return the x coordinate.
void setX (int value)
 Set a new x coordinate.
int getY () const
 Return the y coordinate.
void setY (int value)
 Set a new y coordinate.
void setCoord (int x, int y)
 Set new point coordinates.

Friends

std::ostream & operator<< (std::ostream &os, const Point &obj)
 Overload std::ostream::operator<< for use in the model.
std::istream & operator>> (std::istream &os, const Point &obj)
 Overload std::istream::operator>> for use in the model.


Detailed Description

Wrap a point.


Constructor & Destructor Documentation

GUI::Point::Point ( int  x = 0,
int  y = 0 
)

Construct a new point.

Parameters:
x the x coordinate of the point (default 0)
y the y coordinate of the point (default 0)


Member Function Documentation

int GUI::Point::getX (  )  const

Return the x coordinate.

Returns:
the x coordinate

int GUI::Point::getY (  )  const

Return the y coordinate.

Returns:
the y coordinate

void GUI::Point::setCoord ( int  x,
int  y 
)

Set new point coordinates.

Parameters:
x new x coordinate
y new y coordinate

void GUI::Point::setX ( int  value  ) 

Set a new x coordinate.

Parameters:
value new x coordinate

void GUI::Point::setY ( int  value  ) 

Set a new y coordinate.

Parameters:
value new y coordinate


The documentation for this class was generated from the following files:
Generated on Wed Nov 15 22:21:10 2006 for Win32 by  doxygen 1.4.7