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.SeparatorLine

Description

SeparatorLine is used for adding a separator line between two widgets. It adapts to the active layout direction, creating a vertical line on a horizontal layout and viceversa.

The line has the provided width in the direction orthogonal to the layout direction, and takes all the available space in the other direction. In case of wanting a shorter line, padding should be used.

Configs:

  • width: the max width of the line.
  • resizeFactor: flexibility to have more or less spaced assigned.
Synopsis

Documentation

separatorLine :: WidgetNode s e Source #

Creates a separatorLine widget.

separatorLine_ :: [SeparatorLineCfg] -> WidgetNode s e Source #

Creates a separatorLine widget. Accepts config.