CompPoint Class Reference

A 2D coordinate (likely in screen space) that can only be mutated through set() methods, since it's data members are private. More...

#include <point.h>

List of all members.

Public Types

typedef std::vector< CompPointvector
typedef std::vector< CompPoint * > ptrVector
typedef std::list< CompPointlist
typedef std::list< CompPoint * > ptrList

Public Member Functions

 CompPoint (int, int)
int x () const
 Get the x coordinate of this point.
int y () const
 Get the y coordinate of this point.
void set (int, int)
 Set the x and y coordinate of this point.
void setX (int)
 Set the x coordinate of this point.
void setY (int)
 Set the y coordinate of this point.
bool operator== (const CompPoint &) const
bool operator!= (const CompPoint &) const
CompPointoperator-= (const CompPoint &)
 Takes from both co-ordinates.
CompPointoperator+= (const CompPoint &)
 Adds to both co-ordinates.
CompPoint operator+ (const CompPoint &) const
 Retuns an added point.
CompPoint operator- (const CompPoint &) const
 Returns a subtracted point.


Detailed Description

A 2D coordinate (likely in screen space) that can only be mutated through set() methods, since it's data members are private.

Member Function Documentation

int CompPoint::x (  )  const [inline]

Get the x coordinate of this point.

int CompPoint::y (  )  const [inline]

Get the y coordinate of this point.

void CompPoint::set ( int  ,
int   
)

Set the x and y coordinate of this point.

void CompPoint::setX ( int   ) 

Set the x coordinate of this point.

void CompPoint::setY ( int   ) 

Set the y coordinate of this point.

CompPoint& CompPoint::operator-= ( const CompPoint  ) 

Takes from both co-ordinates.

CompPoint& CompPoint::operator+= ( const CompPoint  ) 

Adds to both co-ordinates.

CompPoint CompPoint::operator+ ( const CompPoint  )  const

Retuns an added point.

CompPoint CompPoint::operator- ( const CompPoint  )  const

Returns a subtracted point.


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

Generated on Wed Feb 2 22:44:14 2011 for Compiz by  doxygen 1.5.6