Gtk2HsContentsIndex
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
data Range
class WidgetClass o => RangeClass o
castToRange :: GObjectClass obj => obj -> Range
rangeGetAdjustment :: RangeClass r => r -> IO Adjustment
rangeSetAdjustment :: RangeClass r => r -> Adjustment -> IO ()
data UpdateType
= UpdateContinuous
| UpdateDiscontinuous
| UpdateDelayed
rangeGetUpdatePolicy :: RangeClass r => r -> IO UpdateType
rangeSetUpdatePolicy :: RangeClass r => r -> UpdateType -> IO ()
rangeGetInverted :: RangeClass r => r -> IO Bool
rangeSetInverted :: RangeClass r => r -> Bool -> IO ()
rangeGetValue :: RangeClass r => r -> IO Double
rangeSetValue :: RangeClass r => r -> Double -> IO ()
rangeSetIncrements :: RangeClass r => r -> Double -> Double -> IO ()
rangeSetRange :: RangeClass r => r -> Double -> Double -> IO ()
data ScrollType
= ScrollNone
| ScrollJump
| ScrollStepBackward
| ScrollStepForward
| ScrollPageBackward
| ScrollPageForward
| ScrollStepUp
| ScrollStepDown
| ScrollPageUp
| ScrollPageDown
| ScrollStepLeft
| ScrollStepRight
| ScrollPageLeft
| ScrollPageRight
| ScrollStart
| ScrollEnd
rangeSetIncrements :: RangeClass r => r -> Double -> Double -> IO ()
rangeSetRange :: RangeClass r => r -> Double -> Double -> IO ()
rangeSetValue :: RangeClass r => r -> Double -> IO ()
rangeGetValue :: RangeClass r => r -> IO Double
onMoveSlider :: RangeClass r => r -> (ScrollType -> IO ()) -> IO (ConnectId r)
afterMoveSlider :: RangeClass r => r -> (ScrollType -> IO ()) -> IO (ConnectId r)
Documentation
data Range
Instances
RangeClass Range
WidgetClass Range
ObjectClass Range
GObjectClass Range
class WidgetClass o => RangeClass o
Instances
RangeClass Range
RangeClass Scale
RangeClass HScale
RangeClass VScale
RangeClass Scrollbar
RangeClass HScrollbar
RangeClass VScrollbar
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
Enum UpdateType
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
-> Doublestep size
-> Doublepage 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
-> Doublemin
-> Doublemax
-> 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
Enum ScrollType
rangeSetIncrements
:: RangeClass r
=> r
-> Doublestep size
-> Doublepage 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
-> Doublemin
-> Doublemax
-> 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