Go to the first, previous, next, last section, table of contents.
getSlider :: Slider a -> IO a
-
return the current value for the slider. Non-blocking.
waitSlider :: Slider a -> IO a
-
wait until the next time the slider thumb is released and dropped,
returning its new value.
waitSliderMovement :: Slider a -> IO (a, Bool)
-
wait until the next time the slider thumb is moved, returning its new
value.
setSlider :: Slider a -> a -> IO a
-
move the slider to a position corresponding to
resizeThumb :: Slider a -> Double -> IO ()
-
set the size of the thumb such that thumb is a fraction of the size of
the whole sliding area, i.e. resizeThumb slider 0.5 will make the
thumb's length equal to half of the length of the sliding area. In the
case of 2D sliders, the thumb is scaled in both directions.
incSlider :: Num a => Slider a -> a -> IO ()
-
increment the current value of a slider by some amount.
decSlider :: Num a => Slider a -> a -> IO ()
-
decrement the slider's value by some value.
mapSlider :: (a->b) -> Slider a -> Slider b
-
return a new slider that maps a function over the values
reported from an existing slider.
getSliderGauge :: Slider a -> Gauge a
-
return the Gauge device that the Slider provdes an
interactive front end to.
getSliderSize :: Slider a -> IO Size
-
return the current size of the sliding area.
getThumbBBox :: Slider a -> IO Rectangle
-
return the dimensions of the thumb.
Go to the first, previous, next, last section, table of contents.