VolumeButton

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

Constructors

this
this(GtkVolumeButton* gtkVolumeButton, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a gtk.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 gtk.ScaleButton

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getVolumeButtonStruct
GtkVolumeButton* getVolumeButtonStruct(bool transferOwnership)

Get the main Gtk struct

Static functions

getType
GType getType()

Variables

gtkVolumeButton
GtkVolumeButton* gtkVolumeButton;

the main Gtk struct

Inherited Members

From ScaleButton

gtkScaleButton
GtkScaleButton* gtkScaleButton;

the main Gtk struct

getScaleButtonStruct
GtkScaleButton* getScaleButtonStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getAdjustment
Adjustment getAdjustment()

Gets the gtk.Adjustment associated with the gtk.ScaleButton’s scale. See Range.getAdjustment for details.

getMinusButton
Button getMinusButton()

Retrieves the minus button of the gtk.ScaleButton

getPlusButton
Button getPlusButton()

Retrieves the plus button of the gtk.ScaleButton

getPopup
Widget getPopup()

Retrieves the popup of the gtk.ScaleButton

getValue
double getValue()

Gets the current value of the scale button.

setAdjustment
void setAdjustment(Adjustment adjustment)

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

setIcons
void setIcons(string[] icons)

Sets the icons to be used by the scale button. For details, see the 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 value-changed signal if the value changes.

addOnPopdown
gulong addOnPopdown(void delegate(ScaleButton) dlg, ConnectFlags connectFlags)

The ::popdown signal is a [keybinding signal]GtkBindingSignal which gets emitted to popdown the scale widget.

addOnPopup
gulong addOnPopup(void delegate(ScaleButton) dlg, ConnectFlags connectFlags)

The ::popup signal is a [keybinding signal]GtkBindingSignal which gets emitted to popup the scale widget.

addOnValueChanged
gulong addOnValueChanged(void delegate(double, ScaleButton) dlg, ConnectFlags connectFlags)

The ::value-changed signal is emitted when the value field has changed.