GG::Pt Struct Reference

A GG screen coordinate class. More...

#include <PtRect.h>

List of all members.

Public Attributes

X x
Y y

Structors



 Pt ()
 Pt (X x_, Y y_)
 Pt (X_d x_, Y y_)
 Pt (X x_, Y_d y_)
 Pt (X_d x_, Y_d y_)

Accessors



bool Less (const Pt &rhs) const

Mutators



void operator+= (const Pt &rhs)
void operator-= (const Pt &rhs)
Pt operator- () const


Detailed Description

A GG screen coordinate class.

Definition at line 58 of file PtRect.h.


Constructor & Destructor Documentation

GG::Pt::Pt (  ) 

Default ctor.

GG::Pt::Pt ( X  x_,
Y  y_ 
)

Ctor that creates a Pt ( _x , y ).

GG::Pt::Pt ( X_d  x_,
Y  y_ 
)

Ctor that creates a Pt ( _x , y ).

GG::Pt::Pt ( X  x_,
Y_d  y_ 
)

Ctor that creates a Pt ( _x , y ).

GG::Pt::Pt ( X_d  x_,
Y_d  y_ 
)

Ctor that creates a Pt ( _x , y ).


Member Function Documentation

bool GG::Pt::Less ( const Pt rhs  )  const [inline]

Returns true if x < rhs.x or returns true if x == rhs.x and y <rhs.y. This is useful for sorting Pts in STL containers and algorithms.

Definition at line 72 of file PtRect.h.

References x, and y.

void GG::Pt::operator+= ( const Pt rhs  )  [inline]

Adds rhs to Pt.

Definition at line 77 of file PtRect.h.

References x, and y.

void GG::Pt::operator-= ( const Pt rhs  )  [inline]

Subtracts rhs to Pt.

Definition at line 78 of file PtRect.h.

References x, and y.

Pt GG::Pt::operator- (  )  const [inline]

Negates Pt.

Definition at line 79 of file PtRect.h.


Member Data Documentation


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

Generated on Sat Mar 26 07:08:38 2011 for GG by  doxygen 1.5.9