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
ScaleButton self()Returns `this`, for use in `with` statements.ScaleButtonGidBuilder builder()Get builder for [gtk.scale_button.ScaleButton] Returns: New builder objectgtk.adjustment.Adjustment adjustment() @propertyvoid adjustment(gtk.adjustment.Adjustment propval) @propertygtk.types.IconSize size() @propertyvoid size(gtk.types.IconSize propval) @propertydouble value() @propertyvoid value(double propval) @propertygtk.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 scalegtk.button.Button getMinusButton()Retrieves the minus button of the #GtkScaleButton. Returns: the minus button of the #GtkScaleButton as a #GtkButtongtk.button.Button getPlusButton()Retrieves the plus button of the #GtkScaleButton. Returns: the plus button of the #GtkScaleButton as a #GtkButtongtk.widget.Widget getPopup()Retrieves the popup of the #GtkScaleButton. Returns: the popup of the #GtkScaleButtondouble getValue()Gets the current value of the scale button. Returns: current value of the scale buttonvoid 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(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
Methods
T adjustment(gtk.adjustment.Adjustment propval)T size(gtk.types.IconSize propval)T value(double propval)Fluent builder for [gtk.scale_button.ScaleButton]
Methods