Extracted from Pike v8.0 release 240 as of 2016-05-30.
   

Class GTK1.Hbox

Inheritance graph
GTK1.Object GTK1.Widget GTK1.Container GTK1.Box GTK1.Hbox GTK1.Combo GTK1.Statusbar Gnome.Appbar Gnome.DateEdit Gnome.FileEntry Gnome.NumberEntry
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 horizontal one. When packing widgets into a horizontal box, the objects are inserted horizontally from left to right or right to left depending on the call used.

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

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

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


Inherit Box

inherit GTK1.Box : Box


Method create

GTK1.Hbox GTK1.Hbox(int all_same_size, int hpadding)

Description

Create a new horizontal box widget. If all_same_size is true, all widgets will have exactly the same size. hpadding is added to the left and right of the children.