uni-htk-2.2.1.3: Graphical User Interface for Haskell Programs

Safe HaskellNone
LanguageHaskell98

HTk.Widgets.Scale

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 Source #

Values associated with a scale instansiate the class ScaleValue.

Minimal complete definition

toDouble, fromDouble

Instances

ScaleValue Double Source #

A double value is a scale value.

data Scale a Source #

The Scale datatype.

Instances

Eq (Scale a) Source #

Internal.

Methods

(==) :: Scale a -> Scale a -> Bool #

(/=) :: Scale a -> Scale a -> Bool #

Destroyable (Scale a) Source #

A scale widget can be destroyed.

Methods

destroy :: Scale a -> IO () #

Synchronized (Scale a) Source #

You can synchronize on a scale widget.

Methods

synchronize :: Scale a -> IO b -> IO b #

GUIObject (Scale a) Source #

Internal.

Methods

toGUIObject :: Scale a -> GUIOBJECT Source #

cname :: Scale a -> String Source #

cset :: GUIValue a => Scale a -> ConfigID -> a -> IO (Scale a) Source #

cget :: GUIValue a => Scale a -> ConfigID -> IO a Source #

HasEnable (Scale a) Source #

A scale widget is a stateful widget, it can be enabled or disabled.

HasOrientation (Scale a) Source #

A scale widget's orientation can either be vertical or horizontal.

HasFont (Scale a) Source #

A scale widget has a configureable font.

Methods

font :: FontDesignator f => f -> Config (Scale a) Source #

getFont :: Scale a -> IO Font Source #

HasBorder (Scale a) Source #

A scale widget has a configureable border.

HasSize (Slider (Scale a)) Source #

A scale's slider has a configureable size.

HasSize (Scale a) Source #

A scale widget has a configureable size.

HasColour (Scale a) Source #

A scale widget has a configureable foreground, background and activebackground colour.

HasTooltip (Scale a) Source #

A scale widget can have a tooltip.

Methods

tooltip :: String -> Scale a -> IO (Scale a) Source #

destroyTooltip :: Scale a -> IO () Source #

Widget (Scale a) Source #

A scale widget has standard widget properties (concerning focus, cursor).

HasSlider (Scale a) Source #

A scale widget has a configureable slider.

ScaleValue a => HasIncrement (Slider (Scale a)) a Source #

A scale's slider has a configureable resulution.

ScaleValue a => HasIncrement (Scale a) a Source #

A scale widget has a configureable incrementation interval.

Methods

increment :: a -> Config (Scale a) Source #

getIncrement :: Scale a -> IO a Source #

GUIValue v => HasText (Scale a) v Source #

A scale widget has a text label.

Methods

text :: v -> Config (Scale a) Source #

getText :: Scale a -> IO v Source #

newScale Source #

Arguments

:: (GUIValue a, ScaleValue a, Container par) 
=> par

the parent widget, which has to be a container widget.

-> [Config (Scale a)]

the list of configuration options for this scale widget.

-> IO (Scale a)

A scale widget.

Constructs a new scale widget and returns a handler.

digits :: Int -> Config (Scale a) Source #

Sets the number of significant values in the scale widget.

getDigits :: Scale a -> IO Int Source #

Gets the number of significant values in the scale widget.

interval :: ScaleValue a => (a, a) -> Config (Scale a) Source #

Sets the scale widgets maximum and minumum value.

getInterval :: ScaleValue a => Scale a -> IO (a, a) Source #

Gets the scale widgets maximum and minumum value.

intervalTo :: ScaleValue a => a -> Config (Scale a) Source #

Sets the maximum value of the scale widget.

getIntervalTo :: ScaleValue a => Scale a -> IO a Source #

Gets the maximum value of the scale widget.

intervalFrom :: ScaleValue a => a -> Config (Scale a) Source #

Sets the minimum value of the scale widget.

getIntervalFrom :: ScaleValue a => Scale a -> IO a Source #

Gets the minimum value of the scale widget.

bigIncrement :: ScaleValue a => a -> Config (Slider (Scale a)) Source #

Sets the coarse grain slider adjustment value.

getBigIncrement :: ScaleValue a => Slider (Scale a) -> IO a Source #

Gets the coarse grain slider adjustment value.

showValue :: Toggle -> Config (Slider (Scale a)) Source #

Shows the sliders value when set.

getShowValue :: Slider (Scale a) -> IO Toggle Source #

Gets the current showvalue setting.