Source codeContentsIndex
Slider
Description
The module Slider implements configuration options for widgets with sliders (scale widgets and scrollbars).
Synopsis
newtype Slider w = Slider w
class (Widget w) => HasSlider w where
repeatInterval :: Int -> Config (Slider w)
getRepeatInterval :: Slider w -> IO Int
repeatDelay :: Int -> Config (Slider w)
getRepeatDelay :: Slider w -> IO Int
Documentation
newtype Slider w
The Slider datatype.
Constructors
Slider w
Instances
(ScaleValue a) => HasIncrement (Slider (Scale a)) a
HasSize (Slider (Scale a))
(GUIObject w) => GUIObject (Slider w)
(HasSlider w, GUIObject w) => HasColour (Slider w)
class (Widget w) => HasSlider w where
Widgets with sliders (scale widget, scrollbar) instantiate the class HasSlider.
Methods
repeatInterval :: Int -> Config (Slider w)
Sets the time period between auto-repeat events.
getRepeatInterval :: Slider w -> IO Int
Gets the time period between auto-repeat events.
repeatDelay :: Int -> Config (Slider w)
Sets the delay before auto-repeat starts (e.g. when mouse button is pressed).
getRepeatDelay :: Slider w -> IO Int
Gets the delay before auto-repeat starts.
Instances
HasSlider (Scale a)
HasSlider ScrollBar
Produced by Haddock version 0.3