Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXPoint Class Reference

#include <FXPoint.h>

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)
 
FXStreamoperator<< (FXStream &store, const FXPoint &p)
 
FXStreamoperator>> (FXStream &store, FXPoint &p)
 

Detailed Description

Point.

Constructor & Destructor Documentation

FX::FXPoint::FXPoint ( )
inline

Constructors.

FX::FXPoint::FXPoint ( const FXSize s)
inline
FX::FXPoint::FXPoint ( const FXPoint p)
inline
FX::FXPoint::FXPoint ( FXshort  xx,
FXshort  yy 
)
inline

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.

bool FX::FXPoint::operator!= ( const FXPoint p) const
inline

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.

References x, and y.

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-= ( const FXPoint p)
inline

References x, and y.

FXPoint& FX::FXPoint::operator*= ( FXshort  c)
inline
FXPoint& FX::FXPoint::operator/= ( FXshort  c)
inline
FXPoint FX::FXPoint::operator- ( )
inline

Negation.

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

Addition operators.

References x, and y.

FXPoint FX::FXPoint::operator- ( const FXPoint p) const
inline

References x, and y.

Friends And Related Function Documentation

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

Scale operators.

FXPoint operator* ( FXshort  c,
const FXPoint p 
)
friend
FXPoint operator/ ( const FXPoint p,
FXshort  c 
)
friend
FXPoint operator/ ( FXshort  c,
const FXPoint p 
)
friend
FXStream& operator<< ( FXStream store,
const FXPoint p 
)
friend

Save object to a stream.

FXStream& operator>> ( FXStream store,
FXPoint p 
)
friend

Load object from a stream.

Member Data Documentation

Copyright © 1997-2005 Jeroen van der Zijp