blip
0.1
|
A rectangular size that has a width and a height. More...
#include <Size.hpp>
Public Member Functions | |
Size () throw () | |
Construct a new Size with 0 width and height. More... | |
Size (uint_t width, uint_t height) throw () | |
Construct a new Size with the given width and height. More... | |
~Size () throw () | |
Destructor. More... | |
uint_t | getWidth () const throw () |
Get the width. More... | |
void | setWidth (uint_t width) throw () |
Set the width. More... | |
uint_t | getHeight () const throw () |
Get the height. More... | |
void | setHeight (uint_t height) throw () |
Set the height. More... | |
void | setSize (uint_t width, uint_t height) throw () |
Set the width and height. More... | |
bool | isEmpty () const throw () |
Test if this dimension is empty, i.e., has 0 width and/or height. More... | |
bool | operator== (const Size &other) const throw () |
Equality operator. More... | |
bool | operator!= (const Size &other) const throw () |
Inequality operator. More... | |
operator const void * () const throw () | |
Boolean operator. More... | |
bool | operator! () const throw () |
Not operator. More... | |
bool | fitsInside (const Size &other) const throw () |
Test if this Size "fits inside" another one, e.g., whether the other Size's width and height are both greater than or equal to those of this Size. More... | |
A rectangular size that has a width and a height.
Size | ( | uint_t | width, |
uint_t | height | ||
) | |||
throw | ( | ||
) |
Construct a new Size with the given width and height.
~Size | ( | ) | ||
throw | ( | |||
) |
Destructor.
bool fitsInside | ( | const Size & | other | ) | const |
throw | ( | ||||
) |
|
inline |
Get the height.
|
inline |
Get the width.
bool isEmpty | ( | ) | const | |
throw | ( | |||
) |
Test if this dimension is empty, i.e., has 0 width and/or height.
|
inline |
Boolean operator.
Equivalent to ! isEmpty().
|
inline |
Not operator.
Equivalent to isEmpty().
bool operator== | ( | const Size & | other | ) | const |
throw | ( | ||||
) |
Equality operator.
|
inline |
Set the height.
void setSize | ( | uint_t | width, |
uint_t | height | ||
) | |||
throw | ( | ||
) |
Set the width and height.
|
inline |
Set the width.