ButtonBox
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_button_box_get_type ()" ) ]
public class ButtonBox :
Box,
Implementor,
Buildable,
Orientable
Example: ButtonBox:
public class Application : Gtk.Window {
public Application () {
// Prepare Gtk.Window:
this.title = "My Gtk.ButtonBox";
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.ButtonBox (Gtk.Orientation.VERTICAL);
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.ButtonBox.vala
Content:
Properties:
Creation methods:
Methods:
Inherited Members:
All known members inherited from class Gtk.Box
All known members inherited from class Gtk.Container
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Buildable
All known members inherited from interface Gtk.Orientable