Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
The HScale
widget is used to allow the user to select a value using
a horizontal slider. To create one, use hScaleNewWithRange
.
The position to show the current value, and the number of decimal places
shown can be set using the parent Scale
class’s functions.
GtkHScale has been deprecated, use Scale
instead.
Synopsis
- newtype HScale = HScale (ManagedPtr HScale)
- class (GObject o, IsDescendantOf HScale o) => IsHScale o
- toHScale :: (MonadIO m, IsHScale o) => o -> m HScale
- hScaleNew :: (HasCallStack, MonadIO m, IsAdjustment a) => Maybe a -> m HScale
- hScaleNewWithRange :: (HasCallStack, MonadIO m) => Double -> Double -> Double -> m HScale
Exported types
Memory-managed wrapper type.
Instances
Eq HScale Source # | |
IsGValue HScale Source # | Convert |
ManagedPtrNewtype HScale Source # | |
Defined in GI.Gtk.Objects.HScale toManagedPtr :: HScale -> ManagedPtr HScale # | |
TypedObject HScale Source # | |
Defined in GI.Gtk.Objects.HScale | |
GObject HScale Source # | |
Defined in GI.Gtk.Objects.HScale | |
HasParentTypes HScale Source # | |
Defined in GI.Gtk.Objects.HScale | |
type ParentTypes HScale Source # | |
Defined in GI.Gtk.Objects.HScale |
class (GObject o, IsDescendantOf HScale o) => IsHScale o Source #
Instances
(GObject o, IsDescendantOf HScale o) => IsHScale o Source # | |
Defined in GI.Gtk.Objects.HScale |
Methods
Overloaded methods
new
:: (HasCallStack, MonadIO m, IsAdjustment a) | |
=> Maybe a |
|
-> m HScale | Returns: a new |
Deprecated: (Since version 3.2)Use scaleNew
with OrientationHorizontal
instead
Creates a new HScale
.
newWithRange
:: (HasCallStack, MonadIO m) | |
=> Double |
|
-> Double |
|
-> Double |
|
-> m HScale | Returns: a new |
Deprecated: (Since version 3.2)Use scaleNewWithRange
with OrientationHorizontal
instead
Creates a new horizontal scale widget that lets the user input a
number between min
and max
(including min
and max
) with the
increment step
. step
must be nonzero; it’s the distance the
slider moves when using the arrow keys to adjust the scale value.
Note that the way in which the precision is derived works best if step
is a power of ten. If the resulting precision is not suitable for your
needs, use scaleSetDigits
to correct it.