gi-gtk-3.0.36: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

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

Exported types

newtype VScale Source #

Memory-managed wrapper type.

Constructors

VScale (ManagedPtr VScale) 

Instances

Instances details
Eq VScale Source # 
Instance details

Defined in GI.Gtk.Objects.VScale

Methods

(==) :: VScale -> VScale -> Bool #

(/=) :: VScale -> VScale -> Bool #

IsGValue VScale Source #

Convert VScale to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.VScale

ManagedPtrNewtype VScale Source # 
Instance details

Defined in GI.Gtk.Objects.VScale

TypedObject VScale Source # 
Instance details

Defined in GI.Gtk.Objects.VScale

Methods

glibType :: IO GType #

GObject VScale Source # 
Instance details

Defined in GI.Gtk.Objects.VScale

HasParentTypes VScale Source # 
Instance details

Defined in GI.Gtk.Objects.VScale

type ParentTypes VScale Source # 
Instance details

Defined in GI.Gtk.Objects.VScale

class (GObject o, IsDescendantOf VScale o) => IsVScale o Source #

Type class for types which can be safely cast to VScale, for instance with toVScale.

Instances

Instances details
(GObject o, IsDescendantOf VScale o) => IsVScale o Source # 
Instance details

Defined in GI.Gtk.Objects.VScale

toVScale :: (MonadIO m, IsVScale o) => o -> m VScale Source #

Cast to VScale, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

new

vScaleNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsAdjustment a) 
=> a

adjustment: the Adjustment which sets the range of the scale.

-> m VScale

Returns: a new VScale.

Deprecated: (Since version 3.2)Use scaleNew with OrientationVertical instead

Creates a new VScale.

newWithRange

vScaleNewWithRange Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Double

min: minimum value

-> Double

max: maximum value

-> Double

step: step increment (tick size) used with keyboard shortcuts

-> m VScale

Returns: a new VScale

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.