Rect::VContract

Rect::VContract
inline Rect<T>& VContract(T v);
inline Rect<T>& VContract(T t, T b);
Description

VContract contracts the local rectangle vertically by adding a value to y1 and subtracting a value from y2. The following expression is used to determine the result:

   (y1, y2) = (y1 + [t, m.Begin, v], y2 - [b, m.End, v])
Parameters
Parameters 
Description 
T v 
A value that is added to y1 and subtracted from y2 in order to contract the sides. 
T t 
A value that is added to y1 to contract that side. 
T b 
A value that is subtracted from y2 to contract that side. 
Return Value

A Rect reference to a new string whose vertical size was contracted by altering y1 and y2.

See Also