Gtk2HsContentsIndex
Graphics.UI.Gtk.Abstract.Scale
Description
This is the abstract base class for HScale and VScale. It implements the management of an adjustable value.
Synopsis
data Scale
class RangeClass o => ScaleClass o
castToScale :: GObjectClass obj => obj -> Scale
scaleSetDigits :: ScaleClass s => s -> Int -> IO ()
scaleGetDigits :: ScaleClass s => s -> IO Int
scaleSetDrawValue :: ScaleClass s => s -> Bool -> IO ()
scaleGetDrawValue :: ScaleClass s => s -> IO Bool
data PositionType
= PosLeft
| PosRight
| PosTop
| PosBottom
scaleSetValuePos :: ScaleClass s => s -> PositionType -> IO ()
scaleGetValuePos :: ScaleClass s => s -> IO PositionType
Documentation
data Scale
Instances
ScaleClass Scale
RangeClass Scale
WidgetClass Scale
ObjectClass Scale
GObjectClass Scale
class RangeClass o => ScaleClass o
Instances
ScaleClass Scale
ScaleClass HScale
ScaleClass VScale
castToScale :: GObjectClass obj => obj -> Scale
scaleSetDigits :: ScaleClass s => s -> Int -> IO ()
Set the number of displayed digits after the comma.
scaleGetDigits :: ScaleClass s => s -> IO Int
Get the number of displayed digits after the comma.
scaleSetDrawValue :: ScaleClass s => s -> Bool -> IO ()
Specify if the current value is to be drawn next to the slider.
scaleGetDrawValue :: ScaleClass s => s -> IO Bool
Returns whether the current value is drawn next to the slider.
data PositionType
Position a scale's value is drawn relative to the trough
Constructors
PosLeft
PosRight
PosTop
PosBottom
Instances
Enum PositionType
scaleSetValuePos :: ScaleClass s => s -> PositionType -> IO ()
Specify where the value is to be displayed (relative to the slider).
scaleGetValuePos :: ScaleClass s => s -> IO PositionType
Gets the position in which the current value is displayed.
Produced by Haddock version 0.6