VolumeButton

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

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a #GtkVolumeButton, 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 #GtkScaleButton.

Members

Functions

self
VolumeButton self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]
useSymbolic
bool useSymbolic [@property getter]

Get useSymbolic property.

useSymbolic
bool useSymbolic [@property setter]

Set useSymbolic property.

Static functions

_getGType
GType _getGType()
builder
VolumeButtonGidBuilder builder()

Get builder for gtk.volume_button.VolumeButton

Inherited Members

From ScaleButton

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
ScaleButton self()

Returns this, for use in with statements.

builder
ScaleButtonGidBuilder builder()

Get builder for gtk.scale_button.ScaleButton

adjustment
gtk.adjustment.Adjustment adjustment [@property getter]
adjustment
gtk.adjustment.Adjustment adjustment [@property setter]
size
gtk.types.IconSize size [@property getter]
size
gtk.types.IconSize size [@property setter]
value
double value [@property getter]
value
double value [@property setter]
getAdjustment
gtk.adjustment.Adjustment getAdjustment()

Gets the #GtkAdjustment associated with the #GtkScaleButton’s scale. See gtk.range.Range.getAdjustment for details.

getMinusButton
gtk.button.Button getMinusButton()

Retrieves the minus button of the #GtkScaleButton.

getPlusButton
gtk.button.Button getPlusButton()

Retrieves the plus button of the #GtkScaleButton.

getPopup
gtk.widget.Widget getPopup()

Retrieves the popup of the #GtkScaleButton.

getValue
double getValue()

Gets the current value of the scale button.

setAdjustment
void setAdjustment(gtk.adjustment.Adjustment adjustment)

Sets the #GtkAdjustment to be used as a model for the #GtkScaleButton’s scale. See gtk.range.Range.setAdjustment for details.

setIcons
void setIcons(string[] icons)

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

setValue
void setValue(double value)

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 #GtkScaleButton::value-changed signal if the value changes.

connectPopdown
gulong connectPopdown(T callback, Flag!"After" after)

Connect to Popdown signal.

connectPopup
gulong connectPopup(T callback, Flag!"After" after)

Connect to Popup signal.

connectValueChanged
gulong connectValueChanged(T callback, Flag!"After" after)

Connect to ValueChanged signal.