Rect::HExpand

Rect::HExpand
inline Rect<T>& HExpand(T h);
inline Rect<T>& HExpand(T l, T r);
Description

HExpand expands the rectangle horizontally by subtracting a value from x1 and adding a value to x2. The following expression is used to determine the result:

   (x1, y1) = (x1 - [l, m.Begin, h], x2 + [r, m.End, h])
Parameters
Parameters 
Description 
T h 
A value that is subtracted from x1 and added to x2. 
T l 
A value that is subtracted from x1. 
T r 
A value that is added to x2. 
Return Value

A Rect reference to a new string whose width is expanded by subtracting a value from x1 and adding a value to x2.

See Also