gi-gtk3-3.0.44: Gtk 3.x bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.Gtk.Objects.VScale

Contents

- Exported types
- Methods
  - new
  - newWithRange

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
- vScaleNew :: (HasCallStack, MonadIO m, IsAdjustment a) => a -> m VScale
- vScaleNewWithRange :: (HasCallStack, MonadIO m) => Double -> Double -> Double -> m VScale

# 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 Source # (/=) :: VScale -> VScale -> Bool Source #
GObject VScale Source # |
Instance details Defined in GI.Gtk.Objects.VScale
ManagedPtrNewtype VScale Source # |
Instance details Defined in GI.Gtk.Objects.VScale Methods toManagedPtr :: VScale -> ManagedPtr VScale Source #
TypedObject VScale Source # |
Instance details Defined in GI.Gtk.Objects.VScale Methods glibType :: IO GType Source #
HasParentTypes VScale Source # |
Instance details Defined in GI.Gtk.Objects.VScale
IsGValue (Maybe VScale) Source # | Convert `VScale` to and from `GValue`. See `toGValue` and `fromGValue`.
Instance details Defined in GI.Gtk.Objects.VScale Methods gvalueGType_ :: IO GType Source # gvalueSet_ :: Ptr GValue -> Maybe VScale -> IO () Source # gvalueGet_ :: Ptr GValue -> IO (Maybe VScale) Source #
type ParentTypes VScale Source # |
Instance details Defined in GI.Gtk.Objects.VScale type ParentTypes VScale = '[Scale, Range, Widget, Object, ImplementorIface, Buildable, Orientable]

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

### 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

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.