#include <Pt/Gfx/Size.h>
Size with width and height.
Public Member Functions | |
BasicSize (T w=0, T h=0) | |
Construct with width and height. | |
const BasicSize & | addHeight (T h) |
Increment the height of the BasicSize by the given value. | |
const BasicSize & | addWidth (T w) |
Increment the width of the BasicSize by the given value. | |
T | height () const |
Returns the height. | |
void | setHeight (T h) |
Sets the height. | |
void | setWidth (T w) |
Sets the width. | |
void | setWidthHeight (T w, T h) |
Sets the widht and height. | |
const BasicSize & | subHeight (T h) |
Decrement the height of the BasicSize by the given value. | |
const BasicSize & | subWidth (T w) |
Decrement the width of the BasicSize by the given value. | |
T | width () const |
Returns the width. | |