monomer-1.6.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 HaskellSafe-Inferred
LanguageHaskell2010

Monomer.Widgets.Singles.ColorPopup

Contents

Description

Color popup, displayed inside its parent container as a colored square. When clicked, it opens a color picker overlay.

Shows sliders for the color components.

colorPopup colorLens

Optionally shows a slider for the alpha channel.

colorPopup_ colorLens [showAlpha]
Synopsis

Constructors

colorPopup Source #

Arguments

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

The lens into the model.

-> WidgetNode s e

The created color popup.

Creates a colorPopup using the given lens.

colorPopup_ Source #

Arguments

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

The lens into the model.

-> [ColorPopupCfg s e]

The config options.

-> WidgetNode s e

The created color popup.

Creates a colorPopup using the given lens. Accepts config.

colorPopupV Source #

Arguments

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

The current value.

-> (Color -> e)

The event to raise on change.

-> WidgetNode s e

The created color popup.

Creates a colorPopup using the given value and onChange event handler.

colorPopupV_ Source #

Arguments

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

The current value.

-> (Color -> e)

The event to raise on change.

-> [ColorPopupCfg s e]

The config options.

-> WidgetNode s e

The created color popup.

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