pleyo.com

WKAL::FloatSize Class Reference

List of all members.

Public Member Functions

 FloatSize ()
 FloatSize default constructor.
 FloatSize (float width, float height)
 FloatSize constructor.
 FloatSize (const IntSize &)
 FloatSize constructor.
float width () const
 get width value
float height () const
 get height value
void setWidth (float width)
 set width
void setHeight (float height)
 set height
bool isEmpty () const
 test if the float size is empty
FloatSize expandedTo (const FloatSize &other) const
 expanded to the other float size

Static Public Member Functions

static FloatSize narrowPrecision (double width, double height)
 narrow precision


Constructor & Destructor Documentation

WKAL::FloatSize::FloatSize (  ) 

FloatSize default constructor.

WKAL::FloatSize::FloatSize ( float  width,
float  height 
)

FloatSize constructor.

Parameters:
[in] : width value
[in] : height value
 FloatSize s(3.2, 5.4);

WKAL::FloatSize::FloatSize ( const IntSize  ) 

FloatSize constructor.

Parameters:
[in] : IntSize
 FloatSize(IntSize(3, 5);


Member Function Documentation

static FloatSize WKAL::FloatSize::narrowPrecision ( double  width,
double  height 
) [static]

narrow precision

Parameters:
[in] : width value
[in] : height value
[out] : float size

float WKAL::FloatSize::width (  )  const

get width value

Parameters:
[out] : width value
 float w = s.width();

float WKAL::FloatSize::height (  )  const

get height value

Parameters:
[out] : height value
 float h = s.height();

void WKAL::FloatSize::setWidth ( float  width  ) 

set width

Parameters:
[in] : width value
 s.setWidth(4.3);

void WKAL::FloatSize::setHeight ( float  height  ) 

set height

Parameters:
[in] : height value
 s.setHeight(4.3);

bool WKAL::FloatSize::isEmpty (  )  const

test if the float size is empty

Parameters:
[out] : true if the float size is empty
 bool emp = s.isEmpty();

FloatSize WKAL::FloatSize::expandedTo ( const FloatSize other  )  const

expanded to the other float size

Parameters:
[in] : other float size
[out] : expand result
 FloatSize s = s.expandedTo(f);


The documentation for this class was generated from the following file:

Generated on Mon Jun 30 16:22:08 2008 for Origyn Web Browser by Doxygen 1.5.5

pleyo.com
pleyo.com