FX::FXSize Class Reference

#include <FXSize.h>

List of all members.


Detailed Description

Size.

Public Member Functions

 FXSize ()
 FXSize (const FXSize &s)
 FXSize (FXshort ww, FXshort hh)
bool empty () const
bool operator! () const
bool operator== (const FXSize &s) const
bool operator!= (const FXSize &s) const
FXSizegrow (FXshort margin)
FXSizegrow (FXshort hormargin, FXshort vermargin)
FXSizegrow (FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)
FXSizeshrink (FXshort margin)
FXSizeshrink (FXshort hormargin, FXshort vermargin)
FXSizeshrink (FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)
FXSizeoperator= (const FXSize &s)
FXSizeset (const FXSize &s)
FXSizeset (FXshort ww, FXshort hh)
FXSizeoperator+= (const FXSize &s)
FXSizeoperator-= (const FXSize &s)
FXSizeoperator*= (FXshort c)
FXSizeoperator/= (FXshort c)
FXSize operator- ()
FXSize operator+ (const FXSize &s) const
FXSize operator- (const FXSize &s) const

Public Attributes

FXshort w
FXshort h

Friends

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

Constructor & Destructor Documentation

FX::FXSize::FXSize (  )  [inline]

Constructors.


Member Function Documentation

bool FX::FXSize::empty (  )  const [inline]

Test if empty.

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

Test if zero.

bool FX::FXSize::operator== ( const FXSize s  )  const [inline]

Equality.

References h, and w.

FXSize& FX::FXSize::grow ( FXshort  margin  ) 

Grow by amount.

FXSize& FX::FXSize::shrink ( FXshort  margin  ) 

Shrink by amount.

FXSize& FX::FXSize::operator= ( const FXSize s  )  [inline]

Assignment.

References h, and w.

FXSize& FX::FXSize::set ( const FXSize s  )  [inline]

Set value from another size.

FXSize& FX::FXSize::set ( FXshort  ww,
FXshort  hh 
) [inline]

Set value from components.

FXSize& FX::FXSize::operator+= ( const FXSize s  )  [inline]

Assignment operators.

References h, and w.

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

Negation.

FXSize FX::FXSize::operator+ ( const FXSize s  )  const [inline]

Addition operators.

References h, and w.


Friends And Related Function Documentation

FXSize operator* ( const FXSize s,
FXshort  c 
) [friend]

Scale operators.

FXAPI FXStream& operator<< ( FXStream store,
const FXSize s 
) [friend]

Save object to a stream.

FXAPI FXStream& operator>> ( FXStream store,
FXSize s 
) [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:15:55 2008 for TnFOX by doxygen v1.5.6