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

GI.Gtk.Objects.HScale

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

Instances details
Eq HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

Methods

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

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

GObject HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

ManagedPtrNewtype HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

Methods

toManagedPtr :: HScale -> ManagedPtr HScale

TypedObject HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

Methods

glibType :: IO GType

HasParentTypes HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

IsGValue (Maybe HScale) Source #

Convert HScale to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.HScale

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe HScale -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe HScale)

type ParentTypes HScale Source # 
Instance details

Defined in GI.Gtk.Objects.HScale

type ParentTypes HScale = '[Scale, Range, Widget, Object, ImplementorIface, Buildable, Orientable]

class (GObject o, IsDescendantOf HScale o) => IsHScale o Source #

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

Instances

Instances details
(GObject o, IsDescendantOf HScale o) => IsHScale o 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.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

activate, addAccelerator, addChild, addDeviceEvents, addEvents, addMark, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, childFocus, childNotify, classPath, clearMarks, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forceFloating, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetStateFlags, watchClosure.

Getters

getAccessible, getActionGroup, getAdjustment, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getCanDefault, getCanFocus, getChildRequisition, getChildVisible, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDigits, getDirection, getDisplay, getDoubleBuffered, getDrawValue, getEvents, getFillLevel, getFlippable, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasOrigin, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getInverted, getLayout, getLayoutOffsets, getLowerStepperSensitivity, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getMinSliderSize, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getOrientation, getPangoContext, getParent, getParentWindow, getPath, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRangeRect, getRealized, getReceivesDefault, getRequestMode, getRequisition, getRestrictToFillLevel, getRootWindow, getRoundDigits, getScaleFactor, getScreen, getSensitive, getSettings, getShowFillLevel, getSizeRequest, getSliderRange, getSliderSizeFixed, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getUpperStepperSensitivity, getValign, getValignWithBaseline, getValue, getValuePos, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.

Setters

setAccelPath, setAdjustment, setAllocation, setAppPaintable, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDigits, setDirection, setDoubleBuffered, setDrawValue, setEvents, setFillLevel, setFlippable, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasOrigin, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setIncrements, setInverted, setLowerStepperSensitivity, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setMinSliderSize, setName, setNoShowAll, setOpacity, setOrientation, setParent, setParentWindow, setProperty, setRange, setRealized, setReceivesDefault, setRedrawOnAllocate, setRestrictToFillLevel, setRoundDigits, setSensitive, setShowFillLevel, setSizeRequest, setSliderSizeFixed, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setUpperStepperSensitivity, setValign, setValue, setValuePos, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.

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.