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 | |
| WKAL::FloatSize::FloatSize | ( | float | width, | |
| float | height | |||
| ) |
| WKAL::FloatSize::FloatSize | ( | const IntSize & | ) |
| static FloatSize WKAL::FloatSize::narrowPrecision | ( | double | width, | |
| double | height | |||
| ) | [static] |
narrow precision
| [in] | : | width value |
| [in] | : | height value |
| [out] | : | float size FloatSize s = FloatSize::narrowPrecision(4.3, 5.2); |
| float WKAL::FloatSize::width | ( | ) | const |
get width value
| [out] | : | width value float w = s.width();
|
| float WKAL::FloatSize::height | ( | ) | const |
get height value
| [out] | : | height value float h = s.height();
|
| void WKAL::FloatSize::setWidth | ( | float | width | ) |
set width
| [in] | : | width value s.setWidth(4.3); |
| void WKAL::FloatSize::setHeight | ( | float | height | ) |
set height
| [in] | : | height value s.setHeight(4.3); |
| bool WKAL::FloatSize::isEmpty | ( | ) | const |
test if the float size is empty
| [out] | : | true if the float size is empty bool emp = s.isEmpty();
|
expanded to the other float size
| [in] | : | other float size |
| [out] | : | expand result FloatSize s = s.expandedTo(f); |