monomer-1.5.1.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 HaskellSafe-Inferred
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 vice versa.

hstack [
  label "Left half",
  separatorLine,
  label "Right half"
]

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

Synopsis

Configuration

Constructors

separatorLine :: WidgetNode s e Source #

Creates a separatorLine widget.

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

Creates a separatorLine widget. Accepts config.