Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Spacer is used for adding a fixed space between two widgets.
hstack [ label "Username", spacer, label username ]
Filler is used for taking all the unused space between two widgets. Useful for alignment purposes.
hstack [ label "Section title", filler, button "Close" CloseSection ]
Both adapt to the active layout direction.
Synopsis
- data SpacerCfg
- spacer :: WidgetNode s e
- spacer_ :: [SpacerCfg] -> WidgetNode s e
- filler :: WidgetNode s e
- filler_ :: [SpacerCfg] -> WidgetNode s e
Documentation
Configuration options for spacer widget:
width
: the max width for spacer, the reference for filler.resizeFactor
: flexibility to have more or less spaced assigned.
Constructors
spacer :: WidgetNode s e Source #
Creates a spacer widget.
spacer_ :: [SpacerCfg] -> WidgetNode s e Source #
Creates a spacer widget. Accepts config.
filler :: WidgetNode s e Source #
Creates a filler widget.
filler_ :: [SpacerCfg] -> WidgetNode s e Source #
Creates a filler widget. Accepts config.