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

FX::FXSize Class Reference

Size. More...

#include <FXSize.h>

List of all members.

Public Member Functions

 FXSize ()
 FXSize (const FXSize &s)
 FXSize (FXshort ww, FXshort hh)
FXbool empty () const
FXbool operator! () const
FXbool operator== (const FXSize &s) const
FXbool 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)
FXStreamoperator<< (FXStream &store, const FXSize &s)
FXStreamoperator>> (FXStream &store, FXSize &s)


Detailed Description

Size.

Constructor & Destructor Documentation

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

Constructors.

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

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


Member Function Documentation

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

Test if empty.

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

Test if zero.

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

Equality.

References h, and w.

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

References h, and w.

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

Grow by amount.

FXSize& FX::FXSize::grow ( FXshort  hormargin,
FXshort  vermargin 
)

FXSize& FX::FXSize::grow ( FXshort  leftmargin,
FXshort  rightmargin,
FXshort  topmargin,
FXshort  bottommargin 
)

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

Shrink by amount.

FXSize& FX::FXSize::shrink ( FXshort  hormargin,
FXshort  vermargin 
)

FXSize& FX::FXSize::shrink ( FXshort  leftmargin,
FXshort  rightmargin,
FXshort  topmargin,
FXshort  bottommargin 
)

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-= ( const FXSize s  )  [inline]

References h, and w.

FXSize& FX::FXSize::operator*= ( FXshort  c  )  [inline]

FXSize& FX::FXSize::operator/= ( FXshort  c  )  [inline]

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

Negation.

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

Addition operators.

References h, and w.

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

References h, and w.


Friends And Related Function Documentation

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

Scale operators.

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

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

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

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

Save object to a stream.

FXStream& operator>> ( FXStream store,
FXSize s 
) [friend]

Load object from a stream.


Member Data Documentation

Copyright © 1997-2009 Jeroen van der Zijp