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)
bool empty () const
bool operator! () const
bool operator== (const FXSize &s) const
bool operator!= (const FXSize &s) const
FXSize & grow (FXshort margin)
FXSize & grow (FXshort hormargin, FXshort vermargin)
FXSize & grow (FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)
FXSize & shrink (FXshort margin)
FXSize & shrink (FXshort hormargin, FXshort vermargin)
FXSize & shrink (FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)
FXSize & operator= (const FXSize &s)
FXSize & set (const FXSize &s)
FXSize & set (FXshort ww, FXshort hh)
FXSize & operator+= (const FXSize &s)
FXSize & operator-= (const FXSize &s)
FXSize & operator *= (FXshort c)
FXSize & operator/= (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)
FXStream & operator<< (FXStream &store, const FXSize &s)
FXStream & operator>> (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

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.

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

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.

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.

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

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.

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


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

FXshort FX::FXSize::w
 

FXshort FX::FXSize::h
 

Copyright © 1997-2005 Jeroen van der Zijp