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.Slider

Description

Slider widget, used for interacting with numeric values. It allows changing the value by keyboard arrows, dragging the mouse or using the wheel.

Similar in objective to Dial, but more convenient in some layouts.

  • width: sets the size of the secondary axis of the Slider.
  • radius: the radius of the corners of the Slider.
  • wheelRate: The rate at which wheel movement affects the number.
  • dragRate: The rate at which drag movement affects the number.
  • thumbVisible: whether a thumb should be visible or not.
  • thumbFactor: the size of the thumb relative to width.
  • 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 the value changes.
  • onChangeReq: WidgetRequest to generate when the value changes.
Synopsis

Documentation

hslider :: (SliderValue a, WidgetEvent e) => ALens' s a -> a -> a -> WidgetNode s e Source #

Creates a horizontal slider using the given lens, providing minimum and maximum values.

hslider_ :: (SliderValue a, WidgetEvent e) => ALens' s a -> a -> a -> [SliderCfg s e a] -> WidgetNode s e Source #

Creates a horizontal slider using the given lens, providing minimum and maximum values. Accepts config.

vslider :: (SliderValue a, WidgetEvent e) => ALens' s a -> a -> a -> WidgetNode s e Source #

Creates a vertical slider using the given lens, providing minimum and maximum values.

vslider_ :: (SliderValue a, WidgetEvent e) => ALens' s a -> a -> a -> [SliderCfg s e a] -> WidgetNode s e Source #

Creates a vertical slider using the given lens, providing minimum and maximum values. Accepts config.

hsliderV :: (SliderValue a, WidgetEvent e) => a -> (a -> e) -> a -> a -> WidgetNode s e Source #

Creates a horizontal slider using the given value and onChange event handler, providing minimum and maximum values.

hsliderV_ :: (SliderValue a, WidgetEvent e) => a -> (a -> e) -> a -> a -> [SliderCfg s e a] -> WidgetNode s e Source #

Creates a horizontal slider using the given value and onChange event handler, providing minimum and maximum values. Accepts config.

vsliderV :: (SliderValue a, WidgetEvent e) => a -> (a -> e) -> a -> a -> WidgetNode s e Source #

Creates a vertical slider using the given value and onChange event handler, providing minimum and maximum values.

vsliderV_ :: (SliderValue a, WidgetEvent e) => a -> (a -> e) -> a -> a -> [SliderCfg s e a] -> WidgetNode s e Source #

Creates a vertical slider using the given value and onChange event handler, providing minimum and maximum values. Accepts config.

sliderD_ :: (SliderValue a, WidgetEvent e) => Bool -> WidgetData s a -> a -> a -> [SliderCfg s e a] -> WidgetNode s e Source #

Creates a slider providing direction, a WidgetData instance, minimum and maximum values and config.