gtk.scale_button

Module for [ScaleButton] class

Types 3

#GtkScaleButton 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 #GtkVolumeButton 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 #GtkButton, it gets the .scale style class.

The popup widget that contains the scale has a .scale-popup style class.

Methods
GType _gType() @property
ScaleButton self()Returns `this`, for use in `with` statements.
ScaleButtonGidBuilder builder()Get builder for [gtk.scale_button.ScaleButton] Returns: New builder object
void adjustment(gtk.adjustment.Adjustment propval) @property
void size(gtk.types.IconSize propval) @property
double value() @property
void value(double propval) @property
gtk.adjustment.Adjustment getAdjustment()Gets the #GtkAdjustment associated with the #GtkScaleButton’s scale. See [gtk.range.Range.getAdjustment] for details. Returns: the adjustment associated with the scale
gtk.button.Button getMinusButton()Retrieves the minus button of the #GtkScaleButton. Returns: the minus button of the #GtkScaleButton as a #GtkButton
gtk.button.Button getPlusButton()Retrieves the plus button of the #GtkScaleButton. Returns: the plus button of the #GtkScaleButton as a #GtkButton
gtk.widget.Widget getPopup()Retrieves the popup of the #GtkScaleButton. Returns: the popup of the #GtkScaleButton
double getValue()Gets the current value of the scale button. Returns: current value of the scale button
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.
void setIcons(string[] icons)Sets the icons to be used by the scale button. For details, see the #GtkScaleButton:icons property.
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 si...
gulong connectPopdown(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.scale_button.ScaleButton))) && Parameters!T.length < 2)Connect to `Popdown` signal.
gulong connectPopup(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.scale_button.ScaleButton))) && Parameters!T.length < 2)Connect to `Popup` signal.
gulong connectValueChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == double))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.scale_button.ScaleButton))) && Parameters!T.length < 3)Connect to `ValueChanged` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.types.IconSize size, double min, double max, double step, string[] icons = null)Creates a #GtkScaleButton, with a range between min and max, with a stepping of step.

Fluent builder for [gtk.scale_button.ScaleButton]