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

Description

Dial 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 Slider, but uses less space.

Configs:

  • width: sets the max width/height of the dial.
  • wheelRate: The rate at which wheel movement affects the number.
  • dragRate: The rate at which drag movement affects the number.
  • 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

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

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

dial_ :: (DialValue a, WidgetEvent e) => ALens' s a -> a -> a -> [DialCfg s e a] -> WidgetNode s e Source #

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

dialV :: (DialValue a, WidgetEvent e) => a -> (a -> e) -> a -> a -> WidgetNode s e Source #

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

dialV_ :: (DialValue a, WidgetEvent e) => a -> (a -> e) -> a -> a -> [DialCfg s e a] -> WidgetNode s e Source #

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