hAlignS, vAlignS, et al


hAlignS :: Alignment -> Spacer
vAlignS :: Alignment -> Spacer
hvAlignS :: Alignment -> Alignment -> Spacer


hAlignS pos


These spacers prevents a box from growing larger than necessary horizontally, vertically or both. Instead, arguments determine where in the available space the box will be placed.


pos :: Alignment
This is a number between 0.0 and 1.0 that determines how much of the extra space is put to the left of (or above) the box. For example, 0 aligns the box with the left (or top) edge of the available space, 0.5 centers the box and 1 aligns the box with the right (or bottom) edge.

See Also

Other spacers: leftS et al, hMarginS et al,

Related combinators: compS et al, spacerP, spacerF.

Dynamic Layout.