gi-gtk-3.0.26: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.HScale

Contents

Description

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

Exported types

newtype HScale Source #

Memory-managed wrapper type.

Constructors

HScale (ManagedPtr HScale) 
Instances
GObject HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

Methods

gobjectType :: HScale -> IO GType #

IsImplementorIface HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

IsObject HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

IsBuildable HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

IsOrientable HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

IsRange HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

IsScale HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

IsWidget HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

IsHScale HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

class GObject o => IsHScale o Source #

Type class for types which can be safely cast to HScale, for instance with toHScale.

Instances
(GObject a, (UnknownAncestorError HScale a :: Constraint)) => IsHScale a Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

IsHScale HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

toHScale :: (MonadIO m, IsHScale o) => o -> m HScale Source #

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

noHScale :: Maybe HScale Source #

A convenience alias for Nothing :: Maybe HScale.

Methods

new

hScaleNew Source #

Arguments

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

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

-> m HScale

Returns: a new HScale.

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

Creates a new HScale.

newWithRange

hScaleNewWithRange Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Double

min: minimum value

-> Double

max: maximum value

-> Double

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

-> m HScale

Returns: a new HScale

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.