monomer-1.6.0.1: 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.Containers.Base.LabeledItem

Description

Container for items with an associated clickable label. Mainly used with radio and checkbox.

For usage examples, see:

Synopsis

Documentation

labeledItem Source #

Arguments

:: WidgetEvent e 
=> WidgetType

The WidgetType of the provided widget.

-> RectSide

The side of the label.

-> Maybe Double

The child spacing.

-> Text

The caption.

-> LabelCfg s e

The config options.

-> WidgetNode s e

The child node.

-> WidgetNode s e

The created stack.

Creates a stack with a label and the provided widget, passing to this widget all the click events received. Positioning is configurable.