monomer-1.4.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

Contents

Description

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

Documentation

data SpacerCfg Source #

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.