VolumeButton


Object Hierarchy:

Gtk.VolumeButton Gtk.VolumeButton Gtk.VolumeButton Gtk.ScaleButton Gtk.ScaleButton Gtk.ScaleButton->Gtk.VolumeButton Gtk.Button Gtk.Button Gtk.Button->Gtk.ScaleButton Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.Button Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Gtk.VolumeButton Atk.Implementor->Gtk.ScaleButton Atk.Implementor->Gtk.Button Atk.Implementor->Gtk.Bin Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.VolumeButton Gtk.Buildable->Gtk.ScaleButton Gtk.Buildable->Gtk.Button Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget Gtk.Actionable Gtk.Actionable Gtk.Actionable->Gtk.VolumeButton Gtk.Actionable->Gtk.ScaleButton Gtk.Actionable->Gtk.Button Gtk.Activatable Gtk.Activatable Gtk.Activatable->Gtk.VolumeButton Gtk.Activatable->Gtk.ScaleButton Gtk.Activatable->Gtk.Button Gtk.Orientable Gtk.Orientable Gtk.Orientable->Gtk.VolumeButton Gtk.Orientable->Gtk.ScaleButton

Description:

[ CCode ( type_id = "gtk_volume_button_get_type ()" ) ]
public class VolumeButton : ScaleButton, Implementor, Actionable, Activatable, Buildable, Orientable

VolumeButton is a subclass of ScaleButton that has been tailored for use as a volume control widget with suitable icons, tooltips and accessible labels.

Example: VolumeButton:

public class Application : Gtk.Window {
public Application () {
// Prepare Gtk.Window:
this.title = "My Gtk.VolumeButton";
this.window_position = Gtk.WindowPosition.CENTER;
this.destroy.connect (Gtk.main_quit);

// The button:
Gtk.VolumeButton button = new Gtk.VolumeButton ();
this.add (button);

// Catch changes:
button.value_changed.connect ((val) => {
print ("%f\n", val);
});
}

public static int main (string[] args) {
Gtk.init (ref args);

Application app = new Application ();
app.show_all ();
Gtk.main ();
return 0;
}
}

valac --pkg gtk+-3.0 Gtk.VolumeButton.vala


Namespace: Gtk
Package: gtk+-3.0

Content:

Properties:

Creation methods:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Orientable