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
- static void cpp_class_init(GtkObject*);
- Gtk_Box(GtkBox *castitem);
- static bool isGtkBox(Gtk_Object *checkcast);
- void pack_start(Gtk_Widget *child, gint expand=TRUE, gint fill=TRUE, gint padding=0);
- void pack_end(Gtk_Widget *child, gint expand=TRUE, gint fill=TRUE, gint padding=0);
- void pack_start_defaults(Gtk_Widget *child);
- void pack_end_defaults(Gtk_Widget *child);
- void pack_start(const Gtk_Widget &child, gint expand=TRUE, gint fill=TRUE, gint padding=0);
- void pack_end(const Gtk_Widget &child, gint expand=TRUE, gint fill=TRUE, gint padding=0);
- void pack_start_defaults(const Gtk_Widget &child);
- void pack_end_defaults(const Gtk_Widget &child);
- void set_homogeneous(bool homogeneous);
- void set_spacing(gint spacing);
- void query_child_packing(Gtk_Widget *child, gboolean *expand, gboolean *fill, guint *padding, GtkPackType *pack_type);
- void set_child_packing(Gtk_Widget *child, bool expand, bool fill, guint padding, GtkPackType pack_type);
- void reorder_child(const Gtk_Widget &child, gint pos);
- void query_child_packing(const Gtk_Widget &child, gboolean *expand, gboolean *fill, guint *padding, GtkPackType *pack_type);
- void set_child_packing(const Gtk_Widget &child, bool expand, bool fill, guint padding, GtkPackType pack_type);
- void query_child_packing(Gtk_Widget *child, gint *expand, gint *fill, gint *padding, GtkPackType *pack_type);
- void set_child_packing(Gtk_Widget *child, gint expand, gint fill, gint padding, GtkPackType pack_type);
- void reorder_child(const Gtk_Widget &child, guint pos);
- void query_child_packing(const Gtk_Widget &child, gint *expand, gint *fill, gint *padding, GtkPackType *pack_type);
- void set_child_packing(const Gtk_Widget &child, gint expand, gint fill, gint padding, GtkPackType pack_type);
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.)