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.Singles.ColorPicker

Description

Color picker, displayed inside its parent container as a regular widget.

Shows sliders for the color components.

colorPicker colorLens

Optionally shows a slider for the alpha channel.

colorPicker_ colorLens [showAlpha]
Synopsis

Configuration

data ColorPickerCfg s e Source #

Configuration options for colorPicker:

Instances

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

Defined in Monomer.Widgets.Singles.ColorPicker

Semigroup (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 => 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 => 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 => CmbOnFocus (ColorPickerCfg s e) e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.ColorPicker

Methods

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

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

Defined in Monomer.Widgets.Singles.ColorPicker

CmbOnChangeReq (ColorPickerCfg s e) s e Color 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

data ColorPickerEvt Source #

Internal events for the colorPicker widget.

Constructors

colorPicker Source #

Arguments

:: (WidgetModel s, WidgetEvent e) 
=> ALens' s Color

The lens into the model.

-> WidgetNode s e

The created color picker.

Creates a color picker using the given lens.

colorPicker_ Source #

Arguments

:: (WidgetModel s, WidgetEvent e) 
=> ALens' s Color

The lens into the model.

-> [ColorPickerCfg s e]

The config options.

-> WidgetNode s e

The created color picker.

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

colorPickerV Source #

Arguments

:: (WidgetModel s, WidgetEvent e) 
=> Color

The current value.

-> (Color -> e)

The event to raise on change.

-> WidgetNode s e

The created color picker.

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

colorPickerV_ Source #

Arguments

:: (WidgetModel s, WidgetEvent e) 
=> Color

The current value.

-> (Color -> e)

The event to raise on change.

-> [ColorPickerCfg s e]

The config options.

-> WidgetNode s e

The created color picker.

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

colorPickerD_ Source #

Arguments

:: (WidgetModel s, WidgetEvent e) 
=> WidgetData s Color

The WidgetData to retrieve the value from.

-> [ColorPickerCfg s e]

The config options.

-> [CompositeCfg Color ColorPickerEvt s e]

The composite config options.

-> WidgetNode s e

The created color picker.

Creates a color picker providing a WidgetData instance and config.