Class

GtkScaleButton

[]

Description [src]

class Gtk.ScaleButton : Gtk.Button
  implements Atk.ImplementorIface, Gtk.Actionable, Gtk.Activatable, Gtk.Buildable, Gtk.Orientable {
  /* No available fields */
}

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.

[]

Hierarchy

hierarchy this GtkScaleButton implements_0 AtkImplementorIface this--implements_0 implements_1 GtkActionable this--implements_1 implements_2 GtkActivatable this--implements_2 implements_3 GtkBuildable this--implements_3 implements_4 GtkOrientable this--implements_4 ancestor_0 GtkButton ancestor_0--this ancestor_1 GtkBin ancestor_1--ancestor_0 ancestor_2 GtkContainer ancestor_2--ancestor_1 ancestor_3 GtkWidget ancestor_3--ancestor_2 ancestor_4 GInitiallyUnowned ancestor_4--ancestor_3 ancestor_5 GObject ancestor_5--ancestor_4

Descendants

[]

Constructors

gtk_scale_button_new

Creates a GtkScaleButton, with a range between min and max, with a stepping of step.

since: 2.12

[]

Instance methods

gtk_scale_button_get_adjustment

Gets the GtkAdjustment associated with the GtkScaleButton’s scale. See gtk_range_get_adjustment() for details.

since: 2.12

gtk_scale_button_get_minus_button

Retrieves the minus button of the GtkScaleButton.

since: 2.14

gtk_scale_button_get_plus_button

Retrieves the plus button of the GtkScaleButton.

since: 2.14

gtk_scale_button_get_popup

Retrieves the popup of the GtkScaleButton.

since: 2.14

gtk_scale_button_get_value

Gets the current value of the scale button.

since: 2.12

gtk_scale_button_set_adjustment

Sets the GtkAdjustment to be used as a model for the GtkScaleButton’s scale. See gtk_range_set_adjustment() for details.

since: 2.12

gtk_scale_button_set_icons

Sets the icons to be used by the scale button. For details, see the GtkScaleButton:icons property.

since: 2.12

gtk_scale_button_set_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 signal if the value changes.

since: 2.12

Methods inherited from GtkButton (24)
Methods inherited from GtkBin (1)
Methods inherited from GtkContainer (33)
Methods inherited from GtkWidget (263)
Methods inherited from GObject (43)
Methods inherited from GtkActionable (6)
Methods inherited from GtkActivatable (6)
Methods inherited from GtkBuildable (10)
Methods inherited from GtkOrientable (2)
[]

Properties

Gtk.ScaleButton:adjustment
No description available.

Gtk.ScaleButton:icons

The names of the icons to be used by the scale button. The first item in the array will be used in the button when the current value is the lowest value, the second item for the highest value. All the subsequent icons will be used for all the other values, spread evenly over the range of values.

since: 2.12

Gtk.ScaleButton:size
No description available.

Gtk.ScaleButton:value
No description available.

Properties inherited from GtkButton (9)
Properties inherited from GtkContainer (3)
Properties inherited from GtkWidget (39)
Properties inherited from GtkActionable (2)
Properties inherited from GtkActivatable (2)
Properties inherited from GtkOrientable (1)
[]

Signals

Gtk.ScaleButton::popdown

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

since: 2.12

Gtk.ScaleButton::popup

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

since: 2.12

Gtk.ScaleButton::value-changed

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

since: 2.12

Signals inherited from GtkButton (6)
Signals inherited from GtkContainer (4)
Signals inherited from GtkWidget (69)
Signals inherited from GObject (1)

Class structure

[]

Virtual methods

Gtk.ScaleButtonClass.value_changed
No description available.