Size::ClampWidth

Size::ClampWidth
inline Size<T>& ClampWidth(T w);
Description

ClampedWidth clamps the current Width to an alternate value. The lesser value is chosen. The following expression may be used to represent the result:

   (Width, Height) = (min(Width, w), Height)
Parameters
Parameters 
Description 
T w 
A value that is clamped to the Width component of the current size. 
Return Value

A Size reference to the current string whose Width represents the clamp of its original Width with a passed value.

See Also