Size::Contract

Size::Contract
inline Size<T>& Contract(T value);
inline Size<T>& Contract(const Size<T> & sz);
inline Size<T>& Contract(T w, T h);
Description

Contract contracts the current size by subtracting a fixed value from each of its components. The following expression may be used to represent the result:

   (Width, Height) = (Width - [sz.Width, value, w], Height - [sz.Height, value, h])
Parameters
Parameters 
Description 
T value 
A value that is subtracted from both components of a current size. 
const Size<T> & sz 
A size whose components are subtracted from those of a current size. 
T w 
A value that is subtracted from the current Width
T h 
A value that is subtracted from the current Height
Return Value

A size whose components are subtracted from those of a current size.