BasicSize< T > Class Template Reference

#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 BasicSizeaddHeight (T h)
 Increment the height of the BasicSize by the given value.
 
const BasicSizeaddWidth (T w)
 Increment the width of the BasicSize by the given value.
 
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 BasicSizesubHeight (T h)
 Decrement the height of the BasicSize by the given value.
 
const BasicSizesubWidth (T w)
 Decrement the width of the BasicSize by the given value.
 
width () const
 Returns the width.