ifm::Point Class Reference

List of all members.


Detailed Description

Gui toolkit independant representation of a point.

Public Member Functions

 operator GuiPoint () const
bool operator!= (const Point &p) const
Pointoperator+= (const Point &p)
Pointoperator-= (const Point &p)
bool operator== (const Point &p) const
 Point (const GuiPoint &)
 Point (int xx, int yy)
 Point ()

Public Attributes

int x
int y

Constructor & Destructor Documentation

ifm::Point::Point (  ) 

Default constructor, initializes values to 0.

ifm::Point::Point ( int  xx,
int  yy 
)

Constructs a Point from an x and y value.

Parameters:
xx X value
yy Y value

ifm::Point::Point ( const GuiPoint &   ) 

Allow implicit conversions for compatability with gui toolkits.


Member Function Documentation

ifm::Point::operator GuiPoint (  )  const

Allow implicit conversions for compatability with gui toolkits.

bool ifm::Point::operator!= ( const Point p  )  const

Returns:
True if this position is not equal to the given position.

Point & ifm::Point::operator+= ( const Point p  ) 

Add the x and y values of position p to this position's x and y values.

Point & ifm::Point::operator-= ( const Point p  ) 

Subtract the x and y values of position p from this position's x and y values.

bool ifm::Point::operator== ( const Point p  )  const

Returns:
True if this position is equal to the given position.


Member Data Documentation


doxygen Get IFM - Interface Management System at SourceForge.net. Fast, secure and Free Open Source software downloads