monomer-1.0.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 HaskellNone
LanguageHaskell2010

Monomer.Widgets.Singles.LabeledCheckbox

Description

Labeled checkbox, used for interacting with boolean values with an associated clickable label.

Synopsis

Configuration

data LabeledCheckboxCfg s e Source #

Configuration options for labeledCheckbox:

  • Text related

    • textLeft: places the label to the left of the checkbox.
    • textRight: places the label to the right of the checkbox.
    • textTop: places the label to the top of the checkbox.
    • textBottom: places the label to the bottom of the checkbox.
    • trimSpaces: whether to remove leading/trailing spaces in the caption.
    • ellipsis: if ellipsis should be used for overflown text.
    • multiline: if text may be split in multiple lines.
    • maxLines: maximum number of text lines to show.
    • resizeFactor: flexibility to have more or less spaced assigned.
    • resizeFactorW: flexibility for more or less horizontal spaced assigned.
    • resizeFactorH: flexibility for more or less vertical spaced assigned.
  • Checkbox related

Instances

Instances details
Semigroup (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

Monoid (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

Default (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

Methods

def :: LabeledCheckboxCfg s e #

CmbResizeFactorDim (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbResizeFactor (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbWidth (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbTextBottom (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbTextTop (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbTextRight (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbTextLeft (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbTrimSpaces (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbEllipsis (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbMultiline (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbMaxLines (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbCheckboxMark (LabeledCheckboxCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

WidgetEvent e => CmbOnChange (LabeledCheckboxCfg s e) Bool e Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

Methods

onChange :: (Bool -> e) -> LabeledCheckboxCfg s e Source #

WidgetEvent e => CmbOnBlur (LabeledCheckboxCfg s e) e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

Methods

onBlur :: (Path -> e) -> LabeledCheckboxCfg s e Source #

WidgetEvent e => CmbOnFocus (LabeledCheckboxCfg s e) e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

Methods

onFocus :: (Path -> e) -> LabeledCheckboxCfg s e Source #

CmbOnChangeReq (LabeledCheckboxCfg s e) s e Bool Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbOnBlurReq (LabeledCheckboxCfg s e) s e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

CmbOnFocusReq (LabeledCheckboxCfg s e) s e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.LabeledCheckbox

Constructors

labeledCheckbox :: WidgetEvent e => Text -> ALens' s Bool -> WidgetNode s e Source #

Creates a labeled checkbox using the given lens.

labeledCheckbox_ :: WidgetEvent e => Text -> ALens' s Bool -> [LabeledCheckboxCfg s e] -> WidgetNode s e Source #

Creates a labeled checkbox using the given lens. Accepts config.

labeledCheckboxV :: WidgetEvent e => Text -> Bool -> (Bool -> e) -> WidgetNode s e Source #

Creates a labeled checkbox using the given value and onChange event handler.

labeledCheckboxV_ :: WidgetEvent e => Text -> Bool -> (Bool -> e) -> [LabeledCheckboxCfg s e] -> WidgetNode s e Source #

Creates a labeled checkbox using the given value and onChange event handler. Accepts config.

labeledCheckboxD_ :: WidgetEvent e => Text -> WidgetData s Bool -> [LabeledCheckboxCfg s e] -> WidgetNode s e Source #

Creates a labeled checkbox providing a WidgetData instance and config.