gi-gtk-3.0.32: 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.VolumeButton

Contents

Description

tVolumeButton is a subclass of tScaleButton that has been tailored for use as a volume control widget with suitable icons, tooltips and accessible labels.

Synopsis

Exported types

newtype VolumeButton Source #

Memory-managed wrapper type.

Constructors

VolumeButton (ManagedPtr VolumeButton) 
Instances
Eq VolumeButton Source # 
Instance details

Defined in GI.Gtk.Objects.VolumeButton

Methods

(==) :: VolumeButton -> VolumeButton -> Bool

(/=) :: VolumeButton -> VolumeButton -> Bool

GObject VolumeButton Source # 
Instance details

Defined in GI.Gtk.Objects.VolumeButton

Methods

gobjectType :: IO GType

IsGValue VolumeButton Source #

Convert VolumeButton to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.VolumeButton

Methods

toGValue :: VolumeButton -> IO GValue

fromGValue :: GValue -> IO VolumeButton

HasParentTypes VolumeButton Source # 
Instance details

Defined in GI.Gtk.Objects.VolumeButton

type ParentTypes VolumeButton Source # 
Instance details

Defined in GI.Gtk.Objects.VolumeButton

type ParentTypes VolumeButton = ScaleButton ': (Button ': (Bin ': (Container ': (Widget ': (Object ': (ImplementorIface ': (Actionable ': (Activatable ': (Buildable ': (Orientable ': ([] :: [Type])))))))))))

class (GObject o, IsDescendantOf VolumeButton o) => IsVolumeButton o Source #

Type class for types which can be safely cast to VolumeButton, for instance with toVolumeButton.

Instances
(GObject o, IsDescendantOf VolumeButton o) => IsVolumeButton o Source # 
Instance details

Defined in GI.Gtk.Objects.VolumeButton

toVolumeButton :: (MonadIO m, IsVolumeButton o) => o -> m VolumeButton Source #

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

noVolumeButton :: Maybe VolumeButton Source #

A convenience alias for Nothing :: Maybe VolumeButton.

Methods

Overloaded methods

new

volumeButtonNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m VolumeButton

Returns: a new tVolumeButton

Creates a tVolumeButton, with a range between 0.0 and 1.0, with a stepping of 0.02. Volume values can be obtained and modified using the functions from tScaleButton.

Since: 2.12

Properties

useSymbolic

Whether to use symbolic icons as the icons. Note that if the symbolic icons are not available in your installed theme, then the normal (potentially colorful) icons will be used.

Since: 3.0

constructVolumeButtonUseSymbolic :: IsVolumeButton o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “use-symbolic” property. This is rarely needed directly, but it is used by new.

getVolumeButtonUseSymbolic :: (MonadIO m, IsVolumeButton o) => o -> m Bool Source #

Get the value of the “use-symbolic” property. When overloading is enabled, this is equivalent to

get volumeButton #useSymbolic

setVolumeButtonUseSymbolic :: (MonadIO m, IsVolumeButton o) => o -> Bool -> m () Source #

Set the value of the “use-symbolic” property. When overloading is enabled, this is equivalent to

set volumeButton [ #useSymbolic := value ]