Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Color picker using sliders and numeric fields.
Synopsis
- data ColorPickerCfg s e
- colorPicker :: (WidgetModel s, WidgetEvent e) => ALens' s Color -> WidgetNode s e
- colorPicker_ :: (WidgetModel s, WidgetEvent e) => ALens' s Color -> [ColorPickerCfg s e] -> WidgetNode s e
- colorPickerV :: (WidgetModel s, WidgetEvent e) => Color -> (Color -> e) -> WidgetNode s e
- colorPickerV_ :: (WidgetModel s, WidgetEvent e) => Color -> (Color -> e) -> [ColorPickerCfg s e] -> WidgetNode s e
- colorPickerD_ :: (WidgetModel s, WidgetEvent e) => WidgetData s Color -> [ColorPickerCfg s e] -> [CompositeCfg Color ColorPickerEvt s e] -> WidgetNode s e
Configuration
data ColorPickerCfg s e Source #
Configuration options for colorPicker:
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.
Instances
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.