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 |
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.
Synopsis
- data SeparatorLineCfg
- separatorLine :: WidgetNode s e
- separatorLine_ :: [SeparatorLineCfg] -> WidgetNode s e
Configuration
data SeparatorLineCfg Source #
Configuration options for separatorLine:
width
: the max width of the line.resizeFactor
: flexibility to have more or less spaced assigned.
Instances
Semigroup SeparatorLineCfg Source # | |
Defined in Monomer.Widgets.Singles.SeparatorLine (<>) :: SeparatorLineCfg -> SeparatorLineCfg -> SeparatorLineCfg # sconcat :: NonEmpty SeparatorLineCfg -> SeparatorLineCfg # stimes :: Integral b => b -> SeparatorLineCfg -> SeparatorLineCfg # | |
Monoid SeparatorLineCfg Source # | |
Defined in Monomer.Widgets.Singles.SeparatorLine | |
Default SeparatorLineCfg Source # | |
Defined in Monomer.Widgets.Singles.SeparatorLine def :: SeparatorLineCfg # | |
CmbResizeFactor SeparatorLineCfg Source # | |
Defined in Monomer.Widgets.Singles.SeparatorLine | |
CmbWidth SeparatorLineCfg Source # | |
Defined in Monomer.Widgets.Singles.SeparatorLine width :: Double -> SeparatorLineCfg Source # |
Constructors
separatorLine :: WidgetNode s e Source #
Creates a separatorLine widget.
separatorLine_ :: [SeparatorLineCfg] -> WidgetNode s e Source #
Creates a separatorLine widget. Accepts config.