Point Struct Reference

POD structure for defining a point. More...

List of all members.

Public Member Functions

void maxOf (const Point &p)
 Sets this Point to the maximum value for each x y dimension.
void minOf (const Point &p)
 Sets this Point to the minimum value for each x y dimension.
 Point ()
 Constructor Initializing the point to (0,0).
 Point (long x, long y)
 Constructor initializing the point with the given arguments.

Public Attributes

long x
 x position
long y
 y position


Detailed Description

POD structure for defining a point.

Used in e.g. functions that take a mouse position etc...


Constructor & Destructor Documentation

Point ( long  x,
long  y 
)

Constructor initializing the point with the given arguments.

Constructor initializing the structure with the given arguments. Takes x and y coordinate to be used.

Point (  ) 

Constructor Initializing the point to (0,0).

Default constructor initializing x and y member to 0 and 0


Member Function Documentation

void maxOf ( const Point p  ) 

Sets this Point to the maximum value for each x y dimension.

Each x,y dimension is adjusted by the p Point.

void minOf ( const Point p  ) 

Sets this Point to the minimum value for each x y dimension.

Each x,y dimension is adjusted by the p Point.


Member Data Documentation

long x

x position

The x position of the Point

long y

y position

The y position of the Point

Back to SmartWin website
SourceForge.net Logo