monomer-1.0.0.0: 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.

Configs:

  • showAlpha: whether to allow modifying the alpha channel or not.
  • onFocus: event to raise when focus is received.
  • onFocusReq: WidgetRequest to generate when focus is received.
  • onBlur: event to raise when focus is lost.
  • onBlurReq: WidgetRequest to generate when focus is lost.
  • onChange: event to raise when any of the values changes.
  • onChangeReq: WidgetRequest to generate when any of the values changes.
Synopsis

Documentation

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

Creates a color picker using the given lens.

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

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

colorPickerV :: (WidgetModel sp, WidgetEvent ep) => Color -> (Color -> ep) -> WidgetNode sp ep Source #

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

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

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

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

Creates a color picker providing a WidgetData instance and config.