Public Member Functions

mxgui::Point Class Reference
[Mxgui level 1]

#include <point.h>

List of all members.

Public Member Functions

 Point (short int x, short int y)
 Point ()
short int x () const
short int y () const
bool operator== (Point p)
bool operator!= (Point p)

Detailed Description

Point class. Points are immutable except they can be assigned with operator=

Constructor & Destructor Documentation

mxgui::Point::Point ( short int  x,
short int  y 
) [inline]

Constructor, create an instance of the Point class given x and y

mxgui::Point::Point (  )  [inline]

Default constructor, yields a point to (0,0)

Member Function Documentation

bool mxgui::Point::operator!= ( Point  p  )  [inline]

Compare two points for inequality

bool mxgui::Point::operator== ( Point  p  )  [inline]

Compare two points for equality

short int mxgui::Point::x (  )  const [inline]
x coordinate
short int mxgui::Point::y (  )  const [inline]
the y coordinate

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