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 _getGType() static nothrow
GType _gType() @property nothrow
ScaleButton self() nothrowReturns `this`, for use in `with` statements.
ScaleButtonGidBuilder builder() static nothrowGet builder for [gtk.scale_button.ScaleButton] Returns: New builder object
void adjustment(gtk.adjustment.Adjustment propval) @property nothrow
gtk.types.IconSize size() @property nothrow
void size(gtk.types.IconSize propval) @property nothrow
double value() @property nothrow
void value(double propval) @property nothrow
gtk.adjustment.Adjustment getAdjustment() nothrowGets 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() nothrowRetrieves the minus button of the #GtkScaleButton. Returns: the minus button of the #GtkScaleButton as a #GtkButton
gtk.button.Button getPlusButton() nothrowRetrieves the plus button of the #GtkScaleButton. Returns: the plus button of the #GtkScaleButton as a #GtkButton
gtk.widget.Widget getPopup() nothrowRetrieves the popup of the #GtkScaleButton. Returns: the popup of the #GtkScaleButton
double getValue() nothrowGets the current value of the scale button. Returns: current value of the scale button
void setAdjustment(gtk.adjustment.Adjustment adjustment) nothrowSets the #GtkAdjustment to be used as a model for the #GtkScaleButton’s scale. See [gtk.range.Range.setAdjustment] for details.
void setIcons(string[] icons) nothrowSets the icons to be used by the scale button. For details, see the #GtkScaleButton:icons property.
void setValue(double value) nothrowSets 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect 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 implementation template for gtk.scale_button.ScaleButton

Methods
T size(gtk.types.IconSize propval) nothrow
T value(double propval) nothrow

Fluent builder for gtk.scale_button.ScaleButton

Methods
ScaleButton build() nothrowCreate object from builder. Returns: New object