FX::FXPoint Class Reference

#include <FXPoint.h>

List of all members.


Detailed Description

Point.

Public Member Functions

 FXPoint ()
 FXPoint (const FXSize &s)
 FXPoint (const FXPoint &p)
 FXPoint (FXshort xx, FXshort yy)
bool operator! () const
bool operator== (const FXPoint &p) const
bool operator!= (const FXPoint &p) const
FXPointoperator= (const FXPoint &p)
FXPointset (const FXPoint &p)
FXPointset (FXshort xx, FXshort yy)
FXPointoperator+= (const FXPoint &p)
FXPointoperator-= (const FXPoint &p)
FXPointoperator*= (FXshort c)
FXPointoperator/= (FXshort c)
FXPoint operator- ()
FXPoint operator+ (const FXPoint &p) const
FXPoint operator- (const FXPoint &p) const

Public Attributes

FXshort x
FXshort y

Friends

FXPoint operator* (const FXPoint &p, FXshort c)
FXPoint operator* (FXshort c, const FXPoint &p)
FXPoint operator/ (const FXPoint &p, FXshort c)
FXPoint operator/ (FXshort c, const FXPoint &p)
FXAPI FXStreamoperator<< (FXStream &store, const FXPoint &p)
FXAPI FXStreamoperator>> (FXStream &store, FXPoint &p)

Constructor & Destructor Documentation

FX::FXPoint::FXPoint (  )  [inline]

Constructors.


Member Function Documentation

bool FX::FXPoint::operator! (  )  const [inline]

Test if zero.

bool FX::FXPoint::operator== ( const FXPoint p  )  const [inline]

Equality.

References x, and y.

FXPoint& FX::FXPoint::operator= ( const FXPoint p  )  [inline]

Assignment.

References x, and y.

FXPoint& FX::FXPoint::set ( const FXPoint p  )  [inline]

Set value from another point.

FXPoint& FX::FXPoint::set ( FXshort  xx,
FXshort  yy 
) [inline]

Set value from components.

FXPoint& FX::FXPoint::operator+= ( const FXPoint p  )  [inline]

Assignment operators.

References x, and y.

FXPoint FX::FXPoint::operator- (  )  [inline]

Negation.

FXPoint FX::FXPoint::operator+ ( const FXPoint p  )  const [inline]

Addition operators.

References x, and y.


Friends And Related Function Documentation

FXPoint operator* ( const FXPoint p,
FXshort  c 
) [friend]

Scale operators.

FXAPI FXStream& operator<< ( FXStream store,
const FXPoint p 
) [friend]

Save object to a stream.

FXAPI FXStream& operator>> ( FXStream store,
FXPoint p 
) [friend]

Load object from a stream.


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

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 22:09:08 2008 for TnFOX by doxygen v1.5.6