Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides combinators for centering other widgets.
Centering horizontally
hCenter :: Widget n -> Widget n Source
Center the specified widget horizontally. Consumes all available horizontal space.
hCenterWith :: Maybe Char -> Widget n -> Widget n Source
Center the specified widget horizontally. Consumes all available horizontal space. Uses the specified character to fill in the space to either side of the centered widget (defaults to space).
Centering vertically
vCenterWith :: Maybe Char -> Widget n -> Widget n Source
Center a widget vertically. Consumes all vertical space. Uses the specified character to fill in the space above and below the centered widget (defaults to space).
Centering both horizontally and vertically
center :: Widget n -> Widget n Source
Center a widget both vertically and horizontally. Consumes all available vertical and horizontal space.
centerWith :: Maybe Char -> Widget n -> Widget n Source
Center a widget both vertically and horizontally. Consumes all available vertical and horizontal space. Uses the specified character to fill in the space around the centered widget (defaults to space).
Centering about an arbitrary origin
centerAbout :: Location -> Widget n -> Widget n Source
Center the widget horizontally and vertically about the specified origin.