|
|
|
|
|
| Description |
| HTk's scale widget.
A simple slider in a through representing a range of numeric values. |
|
| Synopsis |
|
|
|
| Documentation |
|
| class (Num a, GUIValue a) => ScaleValue a where |
| Values associated with a scale instansiate the
class ScaleValue. | | | Methods | | toDouble :: a -> Double | | | fromDouble :: Double -> a |
| | | Instances | |
|
|
| data Scale a |
| The Scale datatype. |
|
| newScale :: (GUIValue a, ScaleValue a, Container par) => par -> [Config (Scale a)] -> IO (Scale a) |
|
| class HasIncrement w a where |
| Incrementable objects (e.g. scale wigdgets) instantiate the
class HasIncrement. | | | Methods | | increment :: a -> Config w | | Increments the object. | | | getIncrement :: w -> IO a | | Gets object's incrementation. |
| | | Instances | |
|
|
| digits :: Int -> Config (Scale a) |
|
| getDigits :: Scale a -> IO Int |
| Gets the number of significant values in the scale widget. |
|
| interval :: (ScaleValue a) => (a, a) -> Config (Scale a) |
| Sets the scale widgets maximum and minumum value. |
|
| getInterval :: (ScaleValue a) => Scale a -> IO (a, a) |
| Gets the scale widgets maximum and minumum value. |
|
| intervalTo :: (ScaleValue a) => a -> Config (Scale a) |
| Sets the maximum value of the scale widget. |
|
| getIntervalTo :: (ScaleValue a) => Scale a -> IO a |
| Gets the maximum value of the scale widget. |
|
| intervalFrom :: (ScaleValue a) => a -> Config (Scale a) |
| Sets the minimum value of the scale widget. |
|
| getIntervalFrom :: (ScaleValue a) => Scale a -> IO a |
| Gets the minimum value of the scale widget. |
|
| newtype Slider w |
| The Slider datatype. | | Constructors | | | Instances | |
|
|
| 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 | |
|
|
| bigIncrement :: (ScaleValue a) => a -> Config (Slider (Scale a)) |
|
| getBigIncrement :: (ScaleValue a) => Slider (Scale a) -> IO a |
| Gets the coarse grain slider adjustment value. |
|
| showValue :: Toggle -> Config (Slider (Scale a)) |
| Shows the sliders value when set. |
|
| getShowValue :: Slider (Scale a) -> IO Toggle |
| Gets the current showvalue setting. |
|
| Produced by Haddock version 0.3 |