ifm::Size Class Reference

List of all members.


Detailed Description

Gui toolkit independant representation of a size.

Public Member Functions

 operator GuiSize () const
bool operator!= (const Size &s) const
Sizeoperator*= (int f)
Sizeoperator+= (const Size &s)
Sizeoperator-= (const Size &s)
Sizeoperator/= (int f)
bool operator== (const Size &s) const
 Size (const GuiSize &)
 Size (int w, int h)
 Size ()

Public Attributes

int height
int width

Constructor & Destructor Documentation

ifm::Size::Size (  ) 

Default constructor, initializes values to 0.

ifm::Size::Size ( int  w,
int  h 
)

Constructs a Size object from a width and height.

Parameters:
w Width
h Height

ifm::Size::Size ( const GuiSize &   ) 

Allow implicit conversions for compatability with gui toolkits.


Member Function Documentation

ifm::Size::operator GuiSize (  )  const

Allow implicit conversions for compatability with gui toolkits.

bool ifm::Size::operator!= ( const Size s  )  const

Returns:
True if this size is not equal to the size s.

Size & ifm::Size::operator*= ( int  f  ) 

Multiply the height and width of this size by the factor f.

Size & ifm::Size::operator+= ( const Size s  ) 

Adds the width and height from size s to this size's width and height.

Size & ifm::Size::operator-= ( const Size s  ) 

Subtracts the width and height from size s from this size's width and height.

Size & ifm::Size::operator/= ( int  f  ) 

Divide the height and width of this size by the factor f.

bool ifm::Size::operator== ( const Size s  )  const

Returns:
True if this size is equal to the size s.


Member Data Documentation


doxygen Get IFM - Interface Management System at SourceForge.net. Fast, secure and Free Open Source software downloads