Faith::Size Class Reference

#include <faith/size.h>

List of all members.

Public Member Functions

 Size (int w, int h)
 Size ()
int width () const
int height () const
void setWidth (int w)
void setHeight (int h)
void resize (int w, int h)
bool operator== (const Size &other) const
bool operator!= (const Size &other) const
Faith::Size expandedTo (const Faith::Size &sz) const
Faith::Size expandedTo (int w, int h) const
bool isValid () const
bool isInvalid () const
Size operator- (const Size &other) const
Size operator+ (const Size &other) const
Sizeoperator+= (const Size &other)
Sizeoperator *= (int s)
Size operator * (int s) const
Sizeoperator/= (int s)
Size operator/ (int s) const

Constructor & Destructor Documentation

Faith::Size::Size ( int  w,
int  h 
) [inline]

Faith::Size::Size (  )  [inline]

Member Function Documentation

Faith::Size Faith::Size::expandedTo ( int  w,
int  h 
) const [inline]

Faith::Size Faith::Size::expandedTo ( const Faith::Size sz  )  const [inline]

int Faith::Size::height (  )  const [inline]

bool Faith::Size::isInvalid (  )  const [inline]

not isValid()

bool Faith::Size::isValid (  )  const [inline]

true if both the width and height are 0 or positive, and false otherwise

Size Faith::Size::operator * ( int  s  )  const [inline]

Size& Faith::Size::operator *= ( int  s  )  [inline]

bool Faith::Size::operator!= ( const Size other  )  const [inline]

Size Faith::Size::operator+ ( const Size other  )  const [inline]

Size& Faith::Size::operator+= ( const Size other  )  [inline]

Size Faith::Size::operator- ( const Size other  )  const [inline]

Size Faith::Size::operator/ ( int  s  )  const [inline]

Size& Faith::Size::operator/= ( int  s  )  [inline]

bool Faith::Size::operator== ( const Size other  )  const [inline]

void Faith::Size::resize ( int  w,
int  h 
) [inline]

void Faith::Size::setHeight ( int  h  )  [inline]

void Faith::Size::setWidth ( int  w  )  [inline]

int Faith::Size::width (  )  const [inline]

The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:09 2006 for Faith by  doxygen 1.4.7