| 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 |
GI.Gtk.Objects.VScale
Description
The VScale widget is used to allow the user to select a value using
a vertical 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.
GtkVScale has been deprecated, use Scale instead.
Synopsis
- newtype VScale = VScale (ManagedPtr VScale)
- class (GObject o, IsDescendantOf VScale o) => IsVScale o
- toVScale :: (MonadIO m, IsVScale o) => o -> m VScale
- noVScale :: Maybe VScale
- vScaleNew :: (HasCallStack, MonadIO m, IsAdjustment a) => a -> m VScale
- vScaleNewWithRange :: (HasCallStack, MonadIO m) => Double -> Double -> Double -> m VScale
Exported types
Memory-managed wrapper type.
Constructors
| VScale (ManagedPtr VScale) |
Instances
| Eq VScale Source # | |
| IsGValue VScale Source # | Convert |
| GObject VScale Source # | |
Defined in GI.Gtk.Objects.VScale Methods gobjectType :: IO GType # | |
| HasParentTypes VScale Source # | |
Defined in GI.Gtk.Objects.VScale | |
| type ParentTypes VScale Source # | |
Defined in GI.Gtk.Objects.VScale | |
class (GObject o, IsDescendantOf VScale o) => IsVScale o Source #
Instances
| (GObject o, IsDescendantOf VScale o) => IsVScale o Source # | |
Defined in GI.Gtk.Objects.VScale | |
Methods
Overloaded methods
new
Arguments
| :: (HasCallStack, MonadIO m, IsAdjustment a) | |
| => a |
|
| -> m VScale | Returns: a new |
Deprecated: (Since version 3.2)Use scaleNew with OrientationVertical instead
Creates a new VScale.
newWithRange
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Double |
|
| -> Double |
|
| -> Double |
|
| -> m VScale | Returns: a new |
Deprecated: (Since version 3.2)Use scaleNewWithRange with OrientationVertical instead
Creates a new vertical 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.