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
ScaleButtonGidBuilder builder() static nothrowGet builder for [gtk.scale_button.ScaleButton] Returns: New builder objectgtk.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 scalegtk.button.Button getMinusButton() nothrowRetrieves the minus button of the #GtkScaleButton. Returns: the minus button of the #GtkScaleButton as a #GtkButtongtk.button.Button getPlusButton() nothrowRetrieves the plus button of the #GtkScaleButton. Returns: the plus button of the #GtkScaleButton as a #GtkButtongtk.widget.Widget getPopup() nothrowRetrieves the popup of the #GtkScaleButton. Returns: the popup of the #GtkScaleButtondouble getValue() nothrowGets the current value of the scale button. Returns: current value of the scale buttonvoid 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(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.classScaleButtonGidBuilderImpl(T) : gtk.button.ButtonGidBuilderImpl!T, gtk.orientable.OrientableGidBuilderImpl!T
Fluent builder implementation template for gtk.scale_button.ScaleButton
Methods
T adjustment(gtk.adjustment.Adjustment propval) nothrowT size(gtk.types.IconSize propval) nothrowT value(double propval) nothrowFluent builder for gtk.scale_button.ScaleButton
Methods