|
Graphics.UI.Gtk.Abstract.Range |
|
|
|
|
Description |
An abstract base class to handle widgets that represent some value range.
- For signals regarding a change in the range or increments, refer to
Adjustment which is contained in the Range object.
|
|
Synopsis |
|
|
|
Documentation |
|
data Range |
|
|
class WidgetClass o => RangeClass o |
|
|
castToRange :: GObjectClass obj => obj -> Range |
|
rangeGetAdjustment :: RangeClass r => r -> IO Adjustment |
Extract the Adjustment object.
|
|
rangeSetAdjustment :: RangeClass r => r -> Adjustment -> IO () |
Insert a new Adjustment object.
|
|
data UpdateType |
Updating types for range widgets (determines when the
"connectToValueChanged" signal is emitted by the widget)
| Constructors | UpdateContinuous | | UpdateDiscontinuous | | UpdateDelayed | |
| Instances | |
|
|
rangeGetUpdatePolicy :: RangeClass r => r -> IO UpdateType |
Get the update policy for the range widget.
|
|
rangeSetUpdatePolicy :: RangeClass r => r -> UpdateType -> IO () |
Set how the internal Adjustment object is updated.
- The value of UpdateType determines how frequently value-changed
signals are emitted on the internal Adjustment object.
|
|
rangeGetInverted :: RangeClass r => r -> IO Bool |
Get the inverted flag (determines if the range is reversed).
|
|
rangeSetInverted :: RangeClass r => r -> Bool -> IO () |
Set the inverted flag.
|
|
rangeGetValue :: RangeClass r => r -> IO Double |
Gets the current value of the range.
|
|
rangeSetValue :: RangeClass r => r -> Double -> IO () |
Sets the current value of the range. The range emits the "value_changed"
signal if the value changes.
- If the value is outside the minimum or maximum range values, it will be
clamped to fit inside them.
|
|
rangeSetIncrements |
:: RangeClass r | | => r | | -> Double | step size | -> Double | page size | -> IO () | | Sets the step and page sizes for the range.
The step size is used when the
user clicks the Scrollbar arrows or moves Scale via arrow keys. The
page size is used for example when moving via Page Up or Page Down keys.
|
|
|
rangeSetRange |
:: RangeClass r | | => r | | -> Double | min | -> Double | max | -> IO () | | Sets the allowable values in the Range, and clamps the range value to be
between min and max.
|
|
|
data ScrollType |
Scrolling type
| Constructors | ScrollNone | | ScrollJump | | ScrollStepBackward | | ScrollStepForward | | ScrollPageBackward | | ScrollPageForward | | ScrollStepUp | | ScrollStepDown | | ScrollPageUp | | ScrollPageDown | | ScrollStepLeft | | ScrollStepRight | | ScrollPageLeft | | ScrollPageRight | | ScrollStart | | ScrollEnd | |
| Instances | |
|
|
rangeSetIncrements |
:: RangeClass r | | => r | | -> Double | step size | -> Double | page size | -> IO () | | Sets the step and page sizes for the range.
The step size is used when the
user clicks the Scrollbar arrows or moves Scale via arrow keys. The
page size is used for example when moving via Page Up or Page Down keys.
|
|
|
rangeSetRange |
:: RangeClass r | | => r | | -> Double | min | -> Double | max | -> IO () | | Sets the allowable values in the Range, and clamps the range value to be
between min and max.
|
|
|
rangeSetValue :: RangeClass r => r -> Double -> IO () |
Sets the current value of the range. The range emits the "value_changed"
signal if the value changes.
- If the value is outside the minimum or maximum range values, it will be
clamped to fit inside them.
|
|
rangeGetValue :: RangeClass r => r -> IO Double |
Gets the current value of the range.
|
|
onMoveSlider :: RangeClass r => r -> (ScrollType -> IO ()) -> IO (ConnectId r) |
The slide has moved. The arguments give
detailed information what happend.
|
|
afterMoveSlider :: RangeClass r => r -> (ScrollType -> IO ()) -> IO (ConnectId r) |
|
Produced by Haddock version 0.6 |