center
O(n) Center a string to the given length, using the specified
fill character on either side. Performs replacement on invalid scalar
values.
Examples:
>>> center 8 'x' "HS"
"xxxHSxxx"
O(n) Center a string to the given length, using the specified
fill character on either side. Performs replacement on invalid scalar
values.
Examples:
center 8 'x' "HS" = "xxxHSxxx"
Combinator for the
<center> element.
Example:
center $ span $ toHtml "foo"
Result:
<center><span>foo</span></center>
center centers an enveloped object along all of its basis
vectors.
Pad the left & right hand side of a string until it reaches k
characters wide, if necessary filling with character c.
Deprecated: This element is deprecated in XHTML 1.0
Center a widget both vertically and horizontally. Consumes all
available vertical and horizontal space.
O(n) Center a string to the given length, using the specified
fill character on either side. Performs replacement on invalid scalar
values.
Examples:
center 8 'x' "HS" = "xxxHSxxx"
Center a builder to the specified length with the specified character.
>>> :set -XLinearTypes
>>> runBuffer (\b -> center 10 'x' (appendChars 3 'A' b))
"xxxxAAAxxx"
>>> runBuffer (\b -> center 5 'x' (appendChars 6 'A' b))
"AAAAAA"
Note that
newEmptyBuffer is needed in some situations. See
justifyRight for an example.
Center-justify the argument.
Are sub-views in a composition operator centred relative to their
respective rows and columns?
See also
centerRC.
center width height sc sets the configuration to have the
dzen bar appear on screen sc with width width and
height height, centered both horizontally and vertically with
respect to the actual size of that screen.
Calculate the center -
(x,y) - as if the
Rectangle
were bounded.
Get the center of a circle.
Element in the center of matrix (not corrected for exponent).