monomer-1.0.0.3: 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.ColorPicker

Description

Color picker using sliders and numeric fields.

Synopsis

Configuration

data ColorPickerCfg s e Source #

Configuration options for colorPicker:

Instances

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

Defined in Monomer.Widgets.Singles.ColorPicker

Monoid (ColorPickerCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.ColorPicker

Default (ColorPickerCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.ColorPicker

Methods

def :: ColorPickerCfg s e #

CmbShowAlpha (ColorPickerCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.ColorPicker

WidgetEvent e => CmbOnChange (ColorPickerCfg s e) Color e Source # 
Instance details

Defined in Monomer.Widgets.Singles.ColorPicker

Methods

onChange :: (Color -> e) -> ColorPickerCfg s e Source #

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

Defined in Monomer.Widgets.Singles.ColorPicker

Methods

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

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

Defined in Monomer.Widgets.Singles.ColorPicker

Methods

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

CmbOnChangeReq (ColorPickerCfg s e) s e Color Source # 
Instance details

Defined in Monomer.Widgets.Singles.ColorPicker

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

Defined in Monomer.Widgets.Singles.ColorPicker

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

Defined in Monomer.Widgets.Singles.ColorPicker

Constructors

colorPicker :: (WidgetModel s, WidgetEvent e) => ALens' s Color -> WidgetNode s e Source #

Creates a color picker using the given lens.

colorPicker_ :: (WidgetModel s, WidgetEvent e) => ALens' s Color -> [ColorPickerCfg s e] -> WidgetNode s e Source #

Creates a color picker using the given lens. Accepts config.

colorPickerV :: (WidgetModel s, WidgetEvent e) => Color -> (Color -> e) -> WidgetNode s e Source #

Creates a color picker using the given value and onChange event handler.

colorPickerV_ :: (WidgetModel s, WidgetEvent e) => Color -> (Color -> e) -> [ColorPickerCfg s e] -> WidgetNode s e Source #

Creates a color picker using the given value and onChange event handler. Accepts config.

colorPickerD_ :: (WidgetModel s, WidgetEvent e) => WidgetData s Color -> [ColorPickerCfg s e] -> [CompositeCfg Color ColorPickerEvt s e] -> WidgetNode s e Source #

Creates a color picker providing a WidgetData instance and config.