Description
Base class for box containersMethods and Functions
gtkBoxPackStart(object, child, expand = TRUE, fill = TRUE, padding = 0)
gtkBoxPackEnd(object, child, expand = TRUE, fill = TRUE, padding = 0)
gtkBoxPackStartDefaults(object, widget)
gtkBoxPackEndDefaults(object, widget)
gtkBoxGetHomogeneous(object)
gtkBoxSetHomogeneous(object, homogeneous)
gtkBoxGetSpacing(object)
gtkBoxSetSpacing(object, spacing)
gtkBoxReorderChild(object, child, position)
gtkBoxQueryChildPacking(object, child)
gtkBoxSetChildPacking(object, child, expand, fill, padding, pack.type)
Hierarchy
\link{GObject}
+----\link{GtkObject}
+----\link{GtkWidget}
+----\link{GtkContainer}
+----GtkBox
+----\link{GtkButtonBox}
+----\link{GtkVBox}
+----\link{GtkHBox}Interfaces
GtkBox implements
AtkImplementorIface.Detailed Description
GtkBox is an abstract widget which encapsulates functionallity for a
particular kind of container, one that organizes a variable number of
widgets into a rectangular area. GtkBox currently has two derived
classes, GtkHBox
and GtkVBox
.
The rectangular area of a GtkBox is organized into either a single row
or a single column of child widgets depending upon whether the box is
of type GtkHBox
or GtkVBox
, respectively. Thus, all children of a
GtkBox are allocated one dimension in common, which is the height of a
row, or the width of a column.
GtkBox uses a notion of packing. Packing refers to
adding widgets with reference to a particular position in a
GtkContainer
. For a GtkBox, there are two reference positions: the
start and the end of the box. For a
GtkVBox
, the start is defined as the top of the box and the end is
defined as the bottom. For a GtkHBox
the start is defined as the
left side and the end is defined as the right side.
Use repeated calls to gtkBoxPackStart
to pack widgets into a
GtkBox from start to end. Use gtkBoxPackEnd
to add widgets from
end to start. You may intersperse these calls and add widgets from
both ends of the same GtkBox.
Use gtkBoxPackStartDefaults
or gtkBoxPackEndDefaults
to pack widgets into a GtkBox if you do not need to specify the
expand
, fill
, or
padding
attributes of the child to be
added.
Because GtkBox is a GtkContainer
, you may also use
gtkContainerAdd
to insert widgets into the box, and they will be
packed as if with gtkBoxPackStartDefaults
. Use
gtkContainerRemove
to remove widgets from the GtkBox.
Use gtkBoxSetHomogeneous
to specify whether or not all children
of the GtkBox are forced to get the same amount of space.
Use gtkBoxSetSpacing
to determine how much space will be
minimally placed between all children in the GtkBox.
Use gtkBoxReorderChild
to move a GtkBox child to a different
place in the box.
Use gtkBoxSetChildPacking
to reset the
expand
, fill
,
and padding
attributes of any GtkBox child.
Use gtkBoxQueryChildPacking
to query these fields.References
http://developer.gnome.org/doc/API/2.0/gtk/GtkBox.html