index, gtk-- homepage

class Gtk_Box

#include <gtk--/box.h>
Base classes: Gtk_Container
Is derived by: Gtk_ButtonBox Gtk_HBox Gtk_VBox

Public member index

Protected member index

Public member descriptions

pack_start

void Gtk_Box::pack_start(Gtk_Widget *child, gint expand=TRUE, gint fill=TRUE, gint padding=0);

The expand argument to pack_start() or pack_end() controls whether the widgets are laid out in the box to fill in all the extra space in the box so the box is expanded to fill the area alloted to it (TRUE). Or the box is shrunk to just fit the widgets (FALSE). Setting expand to FALSE will allow you to do right and left justifying of your widgets. Otherwise, they will all expand to fit in the box, and the same effect could be achieved by using only one of gtk_box_pack_start or pack_end functions. The fill argument to the gtk_box_pack functions control whether the extra space is allocated to the objects themselves (TRUE), or as extra padding in the box around these objects (FALSE). It only has an effect if the expand argument is also TRUE. What's the difference between spacing (set when the box is created) and padding (set when elements are packed)? Spacing is added between objects, and padding is added on either side of an object.

Protected member descriptions

(pages generated by PERCEPS -script.)