gi-gtk-3.0.11: 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.ScaleButton

Contents

Description

ScaleButton provides a button which pops up a scale widget. This kind of widget is commonly used for volume controls in multimedia applications, and GTK+ provides a VolumeButton subclass that is tailored for this use case.

CSS nodes

GtkScaleButton has a single CSS node with name button. To differentiate it from a plain Button, it gets the .scale style class.

Synopsis

Exported types

Methods

getAdjustment

scaleButtonGetAdjustment Source #

Arguments

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

button: a ScaleButton

-> m Adjustment

Returns: the adjustment associated with the scale

Gets the Adjustment associated with the ScaleButton’s scale. See rangeGetAdjustment for details.

Since: 2.12

getMinusButton

scaleButtonGetMinusButton Source #

Arguments

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

button: a ScaleButton

-> m Button

Returns: the minus button of the ScaleButton as a Button

Retrieves the minus button of the ScaleButton.

Since: 2.14

getPlusButton

scaleButtonGetPlusButton Source #

Arguments

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

button: a ScaleButton

-> m Button

Returns: the plus button of the ScaleButton as a Button

Retrieves the plus button of the ScaleButton.

Since: 2.14

getPopup

scaleButtonGetPopup Source #

Arguments

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

button: a ScaleButton

-> m Widget

Returns: the popup of the ScaleButton

Retrieves the popup of the ScaleButton.

Since: 2.14

getValue

scaleButtonGetValue Source #

Arguments

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

button: a ScaleButton

-> m Double

Returns: current value of the scale button

Gets the current value of the scale button.

Since: 2.12

new

scaleButtonNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int32

size: a stock icon size (IconSize)

-> Double

min: the minimum value of the scale (usually 0)

-> Double

max: the maximum value of the scale (usually 100)

-> Double

step: the stepping of value when a scroll-wheel event, or up/down arrow event occurs (usually 2)

-> Maybe [Text]

icons: a Nothing-terminated array of icon names, or Nothing if you want to set the list later with scaleButtonSetIcons

-> m ScaleButton

Returns: a new ScaleButton

Creates a ScaleButton, with a range between min and max, with a stepping of step.

Since: 2.12

setAdjustment

scaleButtonSetAdjustment Source #

Arguments

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

button: a ScaleButton

-> b

adjustment: a Adjustment

-> m () 

Sets the Adjustment to be used as a model for the ScaleButton’s scale. See rangeSetAdjustment for details.

Since: 2.12

setIcons

scaleButtonSetIcons Source #

Arguments

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

button: a ScaleButton

-> [Text]

icons: a Nothing-terminated array of icon names

-> m () 

Sets the icons to be used by the scale button. For details, see the ScaleButton:icons property.

Since: 2.12

setValue

scaleButtonSetValue Source #

Arguments

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

button: a ScaleButton

-> Double

value: new value of the scale button

-> m () 

Sets the current value of the scale; if the value is outside the minimum or maximum range values, it will be clamped to fit inside them. The scale button emits the ScaleButton::value-changed signal if the value changes.

Since: 2.12

Properties

adjustment

data ScaleButtonAdjustmentPropertyInfo Source #

Instances

AttrInfo ScaleButtonAdjustmentPropertyInfo Source # 
type AttrOrigin ScaleButtonAdjustmentPropertyInfo Source # 
type AttrLabel ScaleButtonAdjustmentPropertyInfo Source # 
type AttrGetType ScaleButtonAdjustmentPropertyInfo Source # 
type AttrBaseTypeConstraint ScaleButtonAdjustmentPropertyInfo Source # 
type AttrSetTypeConstraint ScaleButtonAdjustmentPropertyInfo Source # 
type AttrAllowedOps ScaleButtonAdjustmentPropertyInfo Source # 

icons

data ScaleButtonIconsPropertyInfo Source #

Instances

AttrInfo ScaleButtonIconsPropertyInfo Source # 
type AttrOrigin ScaleButtonIconsPropertyInfo Source # 
type AttrLabel ScaleButtonIconsPropertyInfo Source # 
type AttrGetType ScaleButtonIconsPropertyInfo Source # 
type AttrBaseTypeConstraint ScaleButtonIconsPropertyInfo Source # 
type AttrSetTypeConstraint ScaleButtonIconsPropertyInfo Source # 
type AttrAllowedOps ScaleButtonIconsPropertyInfo Source # 

size

data ScaleButtonSizePropertyInfo Source #

Instances

AttrInfo ScaleButtonSizePropertyInfo Source # 
type AttrOrigin ScaleButtonSizePropertyInfo Source # 
type AttrLabel ScaleButtonSizePropertyInfo Source # 
type AttrGetType ScaleButtonSizePropertyInfo Source # 
type AttrBaseTypeConstraint ScaleButtonSizePropertyInfo Source # 
type AttrSetTypeConstraint ScaleButtonSizePropertyInfo Source # 
type AttrAllowedOps ScaleButtonSizePropertyInfo Source # 

value

data ScaleButtonValuePropertyInfo Source #

Instances

AttrInfo ScaleButtonValuePropertyInfo Source # 
type AttrOrigin ScaleButtonValuePropertyInfo Source # 
type AttrLabel ScaleButtonValuePropertyInfo Source # 
type AttrGetType ScaleButtonValuePropertyInfo Source # 
type AttrBaseTypeConstraint ScaleButtonValuePropertyInfo Source # 
type AttrSetTypeConstraint ScaleButtonValuePropertyInfo Source # 
type AttrAllowedOps ScaleButtonValuePropertyInfo Source # 

Signals

popdown

popup

valueChanged