Extracted from Pike v8.0 release 276 as of 2016-07-29.
   

Class GTK2.Vbox

Inheritance graph
GTK2.G.Object GTK2.G.InitiallyUnowned GTK2.Object GTK2.Widget GTK2.Container GTK2.Box GTK2.Vbox GTK2.ColorSelection GTK2.Databox GTK2.FileChooserWidget GTK2.FontSelection GTK2.Gnome2IconEntry GTK2.Gnome2IconSelection GTK2.RecentChooserWidget
Description

Most packing is done by creating boxes. These are invisible widget containers that we can pack our widgets into which come in two forms, a horizontal box, and a vertical box. This is the vertical one. When packing widgets into a vertical box, the objects are inserted horizontally from top to bottom or bottom to top depending on the call used.

 GTK2.Vbox(0,0)->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->pack_end_defaults(GTK2.Button("From right"))->pack_start_defaults(GTK2.Button("From left"))

 GTK2.Vbox(1,0)->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->pack_end_defaults(GTK2.Button("From right"))->pack_start_defaults(GTK2.Button("From left"))

 GTK2.Vbox(1,40)->add(GTK2.Button("Hello"))->add(GTK2.Button("World"))->pack_end_defaults(GTK2.Button("From right"))->pack_start_defaults(GTK2.Button("From left"))


Inherit Box

inherit GTK2.Box : Box


Method create

GTK2.Vbox GTK2.Vbox(int|mapping uniformp_or_props, int|void padding)

Description

Create a new vertical box widget. If all_same_size is true, all widgets will have exactly the same size. padding is added to the top and bottom of the children.