Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
VolumeButton
is a subclass of ScaleButton
that has
been tailored for use as a volume control widget with suitable
icons, tooltips and accessible labels.
Synopsis
- newtype VolumeButton = VolumeButton (ManagedPtr VolumeButton)
- class GObject o => IsVolumeButton o
- toVolumeButton :: (MonadIO m, IsVolumeButton o) => o -> m VolumeButton
- noVolumeButton :: Maybe VolumeButton
- volumeButtonNew :: (HasCallStack, MonadIO m) => m VolumeButton
- constructVolumeButtonUseSymbolic :: IsVolumeButton o => Bool -> IO (GValueConstruct o)
- getVolumeButtonUseSymbolic :: (MonadIO m, IsVolumeButton o) => o -> m Bool
- setVolumeButtonUseSymbolic :: (MonadIO m, IsVolumeButton o) => o -> Bool -> m ()
Exported types
newtype VolumeButton Source #
Memory-managed wrapper type.
Instances
GObject VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton gobjectType :: VolumeButton -> IO GType # | |
IsImplementorIface VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsObject VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsActionable VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsActivatable VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsBuildable VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsOrientable VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsBin VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsButton VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsContainer VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsScaleButton VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsWidget VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsVolumeButton VolumeButton Source # | |
Defined in GI.Gtk.Objects.VolumeButton |
class GObject o => IsVolumeButton o Source #
Type class for types which can be safely cast to VolumeButton
, for instance with toVolumeButton
.
Instances
(GObject a, (UnknownAncestorError VolumeButton a :: Constraint)) => IsVolumeButton a Source # | |
Defined in GI.Gtk.Objects.VolumeButton | |
IsVolumeButton VolumeButton Source # | |
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
new
:: (HasCallStack, MonadIO m) | |
=> m VolumeButton | Returns: a new |
Creates a VolumeButton
, 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 ScaleButton
.
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 ]