HButtonBox


Object Hierarchy:

Gtk.HButtonBox Gtk.HButtonBox Gtk.HButtonBox Gtk.ButtonBox Gtk.ButtonBox Gtk.ButtonBox->Gtk.HButtonBox Gtk.Box Gtk.Box Gtk.Box->Gtk.ButtonBox Gtk.Container Gtk.Container Gtk.Container->Gtk.Box 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.HButtonBox Atk.Implementor->Gtk.ButtonBox Atk.Implementor->Gtk.Box Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.HButtonBox Gtk.Buildable->Gtk.ButtonBox Gtk.Buildable->Gtk.Box Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget Gtk.Orientable Gtk.Orientable Gtk.Orientable->Gtk.HButtonBox Gtk.Orientable->Gtk.ButtonBox Gtk.Orientable->Gtk.Box

Description:

[ CCode ( type_id = "gtk_hbutton_box_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "3.2" , replacement = "ButtonBox" ) ]
public class HButtonBox : ButtonBox, Implementor, Buildable, Orientable

Warning: HButtonBox is deprecated since 3.2. Use ButtonBox.

Example: HButtonBox:

public class Application : Gtk.Window {

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

// Create buttons:
Gtk.Button[] buttons = {
new Gtk.Button.with_label ("L1"),
new Gtk.Button.with_label ("L2"),
new Gtk.Button.with_label ("L3")
};

// The ButtonBox:
Gtk.ButtonBox box = new Gtk.HButtonBox ();
box.set_layout (Gtk.ButtonBoxStyle.START);

// The number of pixels to place between children:
box.set_spacing (5);

// Add buttons to our ButtonBox:
foreach (unowned Gtk.Button button in buttons) {
box.add (button);
}

// L2 should appear in a secondary group of children:
box.set_child_secondary (buttons[1], true);

this.add (box);
}

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.HButtonBox.vala


Namespace: Gtk
Package: gtk+-3.0

Content:

Creation methods:

Inherited Members:

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