Rect::OffsetX

Rect::OffsetX
inline Rect<T>& OffsetX(T x);
Description

OffsetX offsets the x1 and x2 components of a current rectangle through the addition of an alternate value. The following expression can be used to represent this result:

   (x1, x2) = (x1 + x, x2 + x)
Parameters
Parameters 
Description 
T x 
A value that is added to x1 and x2. 
Return Value

A Rect reference to a new string whose horizontal components are offset throught the addition of alternate values.

See Also