monomer-1.0.0.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Singles.Spacer

Description

Spacer is used for adding a fixed space between two widgets. Filler is used for taking all the unused space between two widgets. Useful for alignment purposes.

Both adapt to the current layout direction, if any.

Configs:

  • width: the max width for spacer, the reference for filler.
  • resizeFactor: flexibility to have more or less spaced assigned.
Synopsis

Documentation

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.