|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/gtk-doc/html/gtk/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkBox</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="prev" href="GtkBin.html" title="GtkBin">
<link rel="next" href="GtkButtonBox.html" title="GtkButtonBox">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and
GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkBin.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="AbstractObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkButtonBox.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3621723" class="shortcut">Top</a>
 | 
<a href="#id3623492" class="shortcut">Description</a>
 | 
<a href="#id3623242" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id3623319" class="shortcut">Implemented Interfaces</a>
 | 
<a href="#id3623342" class="shortcut">Properties</a>
 | 
<a href="#id3623392" class="shortcut">Child Properties</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkBox"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3621723"></a><span class="refentrytitle">GtkBox</span>
</h2>
<p>GtkBox — Base class for box containers</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <gtk/gtk.h>
<a href="GtkBox.html#GtkBox-struct">GtkBox</a>;
<a href="GtkBox.html#GtkBoxChild">GtkBoxChild</a>;
void <a href="GtkBox.html#gtk-box-pack-start">gtk_box_pack_start</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> fill,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> padding);
void <a href="GtkBox.html#gtk-box-pack-end">gtk_box_pack_end</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> fill,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> padding);
void <a href="GtkBox.html#gtk-box-pack-start-defaults">gtk_box_pack_start_defaults</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void <a href="GtkBox.html#gtk-box-pack-end-defaults">gtk_box_pack_end_defaults</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkBox.html#gtk-box-get-homogeneous">gtk_box_get_homogeneous</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box);
void <a href="GtkBox.html#gtk-box-set-homogeneous">gtk_box_set_homogeneous</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> homogeneous);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkBox.html#gtk-box-get-spacing">gtk_box_get_spacing</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box);
void <a href="GtkBox.html#gtk-box-set-spacing">gtk_box_set_spacing</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> spacing);
void <a href="GtkBox.html#gtk-box-reorder-child">gtk_box_reorder_child</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position);
void <a href="GtkBox.html#gtk-box-query-child-packing">gtk_box_query_child_packing</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *expand,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *fill,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *padding,
<a href="gtk-Standard-Enumerations.html#GtkPackType">GtkPackType</a> *pack_type);
void <a href="GtkBox.html#gtk-box-set-child-packing">gtk_box_set_child_packing</a> (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> fill,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> padding,
<a href="gtk-Standard-Enumerations.html#GtkPackType">GtkPackType</a> pack_type);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3623242"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
+----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
+----<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
+----<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
+----GtkBox
+----<a href="GtkButtonBox.html" title="GtkButtonBox">GtkButtonBox</a>
+----<a href="GtkVBox.html" title="GtkVBox">GtkVBox</a>
+----<a href="GtkHBox.html" title="GtkHBox">GtkHBox</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3623319"></a><h2>Implemented Interfaces</h2>
<p>
GtkBox implements
AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3623342"></a><h2>Properties</h2>
<pre class="synopsis">
"<a href="GtkBox.html#GtkBox--homogeneous">homogeneous</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkBox.html#GtkBox--spacing">spacing</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3623392"></a><h2>Child Properties</h2>
<pre class="synopsis">
"<a href="GtkBox.html#GtkBox--expand">expand</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkBox.html#GtkBox--fill">fill</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkBox.html#GtkBox--pack-type">pack-type</a>" <a href="gtk-Standard-Enumerations.html#GtkPackType">GtkPackType</a> : Read / Write
"<a href="GtkBox.html#GtkBox--padding">padding</a>" <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> : Read / Write
"<a href="GtkBox.html#GtkBox--position">position</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3623492"></a><h2>Description</h2>
<p>
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, <a href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a> and <a href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a>.
</p>
<p>
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 <a href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a> or <a href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a>, 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.
</p>
<p>
GtkBox uses a notion of <span class="emphasis"><em>packing</em></span>. Packing refers to
adding widgets with reference to a particular position in a
<a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>. For a GtkBox, there are two reference positions: the
<span class="emphasis"><em>start</em></span> and the <span class="emphasis"><em>end</em></span> of the box. For a
<a href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a>, the start is defined as the top of the box and the end is
defined as the bottom. For a <a href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a> the start is defined as the
left side and the end is defined as the right side.
</p>
<p>
Use repeated calls to <a href="GtkBox.html#gtk-box-pack-start"><code class="function">gtk_box_pack_start()</code></a> to pack widgets into a
GtkBox from start to end. Use <a href="GtkBox.html#gtk-box-pack-end"><code class="function">gtk_box_pack_end()</code></a> to add widgets from
end to start. You may intersperse these calls and add widgets from
both ends of the same GtkBox.
</p>
<p>
Use <a href="GtkBox.html#gtk-box-pack-start-defaults"><code class="function">gtk_box_pack_start_defaults()</code></a> or <a href="GtkBox.html#gtk-box-pack-end-defaults"><code class="function">gtk_box_pack_end_defaults()</code></a>
to pack widgets into a GtkBox if you do not need to specify the
<em class="structfield"><code>expand</code></em>, <em class="structfield"><code>fill</code></em>, or
<em class="structfield"><code>padding</code></em> attributes of the child to be
added.
</p>
<p>
Because GtkBox is a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>, you may also use
<a href="GtkContainer.html#gtk-container-add"><code class="function">gtk_container_add()</code></a> to insert widgets into the box, and they will be
packed as if with <a href="GtkBox.html#gtk-box-pack-start-defaults"><code class="function">gtk_box_pack_start_defaults()</code></a>. Use
<a href="GtkContainer.html#gtk-container-remove"><code class="function">gtk_container_remove()</code></a> to remove widgets from the GtkBox.
</p>
<p>
Use <a href="GtkBox.html#gtk-box-set-homogeneous"><code class="function">gtk_box_set_homogeneous()</code></a> to specify whether or not all children
of the GtkBox are forced to get the same amount of space.
</p>
<p>
Use <a href="GtkBox.html#gtk-box-set-spacing"><code class="function">gtk_box_set_spacing()</code></a> to determine how much space will be
minimally placed between all children in the GtkBox.
</p>
<p>
Use <a href="GtkBox.html#gtk-box-reorder-child"><code class="function">gtk_box_reorder_child()</code></a> to move a GtkBox child to a different
place in the box.
</p>
<p>
Use <a href="GtkBox.html#gtk-box-set-child-packing"><code class="function">gtk_box_set_child_packing()</code></a> to reset the
<em class="structfield"><code>expand</code></em>, <em class="structfield"><code>fill</code></em>,
and <em class="structfield"><code>padding</code></em> attributes of any GtkBox child.
Use <a href="GtkBox.html#gtk-box-query-child-packing"><code class="function">gtk_box_query_child_packing()</code></a> to query these fields.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3623813"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3623823"></a><h3>
<a name="GtkBox-struct"></a>GtkBox</h3>
<a class="indexterm" name="id3623836"></a><pre class="programlisting">typedef struct {
GList *children;
gint16 spacing;
guint homogeneous : 1;
} GtkBox;
</pre>
<p>
The <a href="GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a> describes an instance of GtkBox and contains the following fields.
(These fields should be considered read-only. They should never be set by
an application.)
</p>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col>
<col>
</colgroup>
<tbody>
<tr>
<td>
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> * <em class="structfield"><code>children</code></em>;</td>
<td>a list of children belonging the GtkBox. The data is a list of
structures of type <span class="type">GtkBoxChild</span>.</td>
</tr>
<tr>
<td>
<a
href="../glib/glib-Basic-Types.html#gint16"
><span class="type">gint16</span></a> <em class="structfield"><code>spacing</code></em>;</td>
<td>the number of pixels to put between children of the GtkBox, zero
by default. Use <a href="GtkBox.html#gtk-box-set-spacing"><code class="function">gtk_box_set_spacing()</code></a> to set this field.</td>
</tr>
<tr>
<td>
<a
href="../glib/glib-Basic-Types.html#guint"
><span class="type">guint</span></a> <em class="structfield"><code>homogeneous</code></em>;</td>
<td>a flag that if <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> forces all children to get equal space in
the GtkBox; <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> by default. Use <a href="GtkBox.html#gtk-box-set-homogeneous"><code class="function">gtk_box_set_homogeneous()</code></a> to set this
field.</td>
</tr>
</tbody>
</table></div>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3624014"></a><h3>
<a name="GtkBoxChild"></a>GtkBoxChild</h3>
<a class="indexterm" name="id3624026"></a><pre class="programlisting">typedef struct {
GtkWidget *widget;
guint16 padding;
guint expand : 1;
guint fill : 1;
guint pack : 1;
guint is_secondary : 1;
} GtkBoxChild;
</pre>
<p>
The <span class="type">GtkBoxChild</span> holds a child widget of GtkBox and describes
how the child is to be packed into the GtkBox. Use
<a href="GtkBox.html#gtk-box-query-child-packing"><code class="function">gtk_box_query_child_packing()</code></a> and <a href="GtkBox.html#gtk-box-set-child-packing"><code class="function">gtk_box_set_child_packing()</code></a> to query
and reset the <em class="structfield"><code>padding</code></em>,
<em class="structfield"><code>expand</code></em>, <em class="structfield"><code>fill</code></em>,
and <em class="structfield"><code>pack</code></em> fields.
</p>
<p>
<span class="type">GtkBoxChild</span> contains the following fields. (These fields
should be considered read-only. They should never be directly set by an
application.)
</p>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col>
<col>
</colgroup>
<tbody>
<tr>
<td>
<a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> * <em class="structfield"><code>widget</code></em>;</td>
<td>the child widget, packed into the GtkBox.</td>
</tr>
<tr>
<td>
<a
href="../glib/glib-Basic-Types.html#guint16"
><span class="type">guint16</span></a> <em class="structfield"><code>padding</code></em>;</td>
<td>the number of extra pixels to put between this child and its
neighbors, set when packed, zero by default.</td>
</tr>
<tr>
<td>
<a
href="../glib/glib-Basic-Types.html#guint"
><span class="type">guint</span></a> <em class="structfield"><code>expand</code></em>;</td>
<td>flag indicates whether extra space should be given to this
child. Any extra space given to the parent GtkBox is divided up among
all children with this attribute set to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>; set when packed, <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> by
default.</td>
</tr>
<tr>
<td>
<a
href="../glib/glib-Basic-Types.html#guint"
><span class="type">guint</span></a> <em class="structfield"><code>fill</code></em>;</td>
<td>flag indicates whether any extra space given to this child due to its
<em class="structfield"><code>expand</code></em> attribute being set is actually
allocated to the child, rather than being used as padding
around the widget; set when packed, <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> by default.</td>
</tr>
<tr>
<td>
<a
href="../glib/glib-Basic-Types.html#guint"
><span class="type">guint</span></a> <em class="structfield"><code>pack</code></em>;</td>
<td>one of
<a href="gtk-Standard-Enumerations.html#GtkPackType"><span class="type">GtkPackType</span></a> indicating whether the child is packed with reference to
the start (top/left) or end (bottom/right) of the GtkBox.</td>
</tr>
</tbody>
</table></div>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3624291"></a><h3>
<a name="gtk-box-pack-start"></a>gtk_box_pack_start ()</h3>
<a class="indexterm" name="id3624305"></a><pre class="programlisting">void gtk_box_pack_start (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> fill,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> padding);</pre>
<p>
Adds <em class="parameter"><code>child</code></em> to <em class="parameter"><code>box</code></em>, packed with reference to the start of <em class="parameter"><code>box</code></em>. The
<em class="parameter"><code>child</code></em> is packed after any other child packed with reference to the
start of <em class="parameter"><code>box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td>a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td>the <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be added to <em class="parameter"><code>box</code></em>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>expand</code></em> :</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the new child is to be given extra space allocated to
<em class="parameter"><code>box</code></em>. The extra space will be divided evenly between all children of
<em class="parameter"><code>box</code></em> that use this option.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>fill</code></em> :</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if space given to <em class="parameter"><code>child</code></em> by the <em class="parameter"><code>expand</code></em> option is
actually allocated to <em class="parameter"><code>child</code></em>, rather than just padding it. This
parameter has no effect if <em class="parameter"><code>expand</code></em> is set to <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>. A child is
always allocated the full height of a <a href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a> and the full width of a
<a href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a>. This option affects the other dimension.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>padding</code></em> :</span></td>
<td>extra space in pixels to put between this child and its
neighbors, over and above the global amount specified by
<em class="structfield"><code>spacing</code></em> in <a href="GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a>. If <em class="parameter"><code>child</code></em> is a
widget at one of the reference ends of <em class="parameter"><code>box</code></em>, then <em class="parameter"><code>padding</code></em> pixels are also put
between <em class="parameter"><code>child</code></em> and the reference edge of <em class="parameter"><code>box</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3624626"></a><h3>
<a name="gtk-box-pack-end"></a>gtk_box_pack_end ()</h3>
<a class="indexterm" name="id3624639"></a><pre class="programlisting">void gtk_box_pack_end (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> fill,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> padding);</pre>
<p>
Adds <em class="parameter"><code>child</code></em> to <em class="parameter"><code>box</code></em>, packed with reference to the end of <em class="parameter"><code>box</code></em>. The
<em class="parameter"><code>child</code></em> is packed after (away from end of) any other child packed with reference to the
end of <em class="parameter"><code>box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td>a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td>the <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be added to <em class="parameter"><code>box</code></em>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>expand</code></em> :</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the new child is to be given extra space allocated to
<em class="parameter"><code>box</code></em>. The extra space will be divided evenly between all children of
<em class="parameter"><code>box</code></em> that use this option.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>fill</code></em> :</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if space given to <em class="parameter"><code>child</code></em> by the <em class="parameter"><code>expand</code></em> option is
actually allocated to <em class="parameter"><code>child</code></em>, rather than just padding it. This
parameter has no effect if <em class="parameter"><code>expand</code></em> is set to <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>. A child is
always allocated the full height of a <a href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a> and the full width of a
<a href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a>. This option affects the other dimension.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>padding</code></em> :</span></td>
<td>extra space in pixels to put between this child and its
neighbors, over and above the global amount specified by
<em class="structfield"><code>spacing</code></em> in <a href="GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a>. If <em class="parameter"><code>child</code></em> is a
widget at one of the reference ends of <em class="parameter"><code>box</code></em>, then <em class="parameter"><code>padding</code></em> pixels are also put
between <em class="parameter"><code>child</code></em> and the reference edge of <em class="parameter"><code>box</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3624962"></a><h3>
<a name="gtk-box-pack-start-defaults"></a>gtk_box_pack_start_defaults ()</h3>
<a class="indexterm" name="id3624976"></a><pre class="programlisting">void gtk_box_pack_start_defaults (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Adds <em class="parameter"><code>widget</code></em> to <em class="parameter"><code>box</code></em>, packed with reference to the start of <em class="parameter"><code>box</code></em>. The
child is packed after any other child packed with reference to the
start of <em class="parameter"><code>box</code></em>.
</p>
<p>
Parameters for how to pack the child <em class="parameter"><code>widget</code></em>,
<em class="structfield"><code>expand</code></em>, <em class="structfield"><code>fill</code></em>,
and <em class="structfield"><code>padding</code></em> in <span class="type">GtkBoxChild</span>, are given their default
values, <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, and 0, respectively.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td>a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td>the <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be added to <em class="parameter"><code>box</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3625142"></a><h3>
<a name="gtk-box-pack-end-defaults"></a>gtk_box_pack_end_defaults ()</h3>
<a class="indexterm" name="id3625156"></a><pre class="programlisting">void gtk_box_pack_end_defaults (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Adds <em class="parameter"><code>widget</code></em> to <em class="parameter"><code>box</code></em>, packed with reference to the end of <em class="parameter"><code>box</code></em>. The
child is packed after (away from end of) any other child packed with
reference to the end of <em class="parameter"><code>box</code></em>.
</p>
<p>
Parameters for how to pack the child <em class="parameter"><code>widget</code></em>,
<em class="structfield"><code>expand</code></em>, <em class="structfield"><code>fill</code></em>,
and <em class="structfield"><code>padding</code></em> in <span class="type">GtkBoxChild</span>, are given their default
values, <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, and 0, respectively.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td>a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td>the <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be added to <em class="parameter"><code>box</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3625322"></a><h3>
<a name="gtk-box-get-homogeneous"></a>gtk_box_get_homogeneous ()</h3>
<a class="indexterm" name="id3625335"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_box_get_homogeneous (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box);</pre>
<p>
Returns whether the box is homogeneous (all children are the
same size). See <a href="GtkBox.html#gtk-box-set-homogeneous"><code class="function">gtk_box_set_homogeneous()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td> a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the box is homogeneous.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3625425"></a><h3>
<a name="gtk-box-set-homogeneous"></a>gtk_box_set_homogeneous ()</h3>
<a class="indexterm" name="id3625438"></a><pre class="programlisting">void gtk_box_set_homogeneous (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> homogeneous);</pre>
<p>
Sets the <em class="structfield"><code>homogeneous</code></em> field of
<a href="GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a>, controlling whether or not all children of <em class="parameter"><code>box</code></em> are
given equal space in the box.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td>a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>homogeneous</code></em> :</span></td>
<td>a boolean value, <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to create equal allotments,
<a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> for variable allotments.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3625555"></a><h3>
<a name="gtk-box-get-spacing"></a>gtk_box_get_spacing ()</h3>
<a class="indexterm" name="id3625568"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_box_get_spacing (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box);</pre>
<p>
Gets the value set by <a href="GtkBox.html#gtk-box-set-spacing"><code class="function">gtk_box_set_spacing()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td> a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> spacing between children
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3625646"></a><h3>
<a name="gtk-box-set-spacing"></a>gtk_box_set_spacing ()</h3>
<a class="indexterm" name="id3625660"></a><pre class="programlisting">void gtk_box_set_spacing (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> spacing);</pre>
<p>
Sets the <em class="structfield"><code>spacing</code></em> field of <a href="GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a>,
which is the number of pixels to place between children of <em class="parameter"><code>box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td>a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>spacing</code></em> :</span></td>
<td>the number of pixels to put between children.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3625755"></a><h3>
<a name="gtk-box-reorder-child"></a>gtk_box_reorder_child ()</h3>
<a class="indexterm" name="id3625767"></a><pre class="programlisting">void gtk_box_reorder_child (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position);</pre>
<p>
Moves <em class="parameter"><code>child</code></em> to a new <em class="parameter"><code>position</code></em> in the list of <em class="parameter"><code>box</code></em> children. The
list is the <em class="structfield"><code>children</code></em> field of
<a href="GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a>, and contains both widgets packed <a href="gtk-Standard-Enumerations.html#GTK-PACK-START:CAPS"><span class="type">GTK_PACK_START</span></a> as
well as widgets packed <a href="gtk-Standard-Enumerations.html#GTK-PACK-END:CAPS"><span class="type">GTK_PACK_END</span></a>, in the order that these widgets
were added to <em class="parameter"><code>box</code></em>.
</p>
<p>
A widget's position in the <em class="parameter"><code>box</code></em> children list determines where the
widget is packed into <em class="parameter"><code>box</code></em>. A child widget at some position in the
list will be packed just after all other widgets of the same packing
type that appear earlier in the list.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td>a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td>the <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to move.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>position</code></em> :</span></td>
<td>the new position for <em class="parameter"><code>child</code></em> in the
<em class="structfield"><code>children</code></em> list of <a href="GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a>, starting
from 0. If negative, indicates the end of the list.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3625972"></a><h3>
<a name="gtk-box-query-child-packing"></a>gtk_box_query_child_packing ()</h3>
<a class="indexterm" name="id3625986"></a><pre class="programlisting">void gtk_box_query_child_packing (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *expand,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *fill,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *padding,
<a href="gtk-Standard-Enumerations.html#GtkPackType">GtkPackType</a> *pack_type);</pre>
<p>
Returns information about how <em class="parameter"><code>child</code></em> is packed into <em class="parameter"><code>box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td>a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td>the <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> of the child to query.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>expand</code></em> :</span></td>
<td>the returned value of the <em class="structfield"><code>expand</code></em>
field in <span class="type">GtkBoxChild</span>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>fill</code></em> :</span></td>
<td>the returned value of the <em class="structfield"><code>fill</code></em> field
in <span class="type">GtkBoxChild</span>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>padding</code></em> :</span></td>
<td>the returned value of the <em class="structfield"><code>padding</code></em>
field in <span class="type">GtkBoxChild</span>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pack_type</code></em> :</span></td>
<td>the returned value of the <em class="structfield"><code>pack</code></em>
field in <span class="type">GtkBoxChild</span>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3626216"></a><h3>
<a name="gtk-box-set-child-packing"></a>gtk_box_set_child_packing ()</h3>
<a class="indexterm" name="id3626230"></a><pre class="programlisting">void gtk_box_set_child_packing (<a href="GtkBox.html" title="GtkBox">GtkBox</a> *box,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> fill,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> padding,
<a href="gtk-Standard-Enumerations.html#GtkPackType">GtkPackType</a> pack_type);</pre>
<p>
Sets the way <em class="parameter"><code>child</code></em> is packed into <em class="parameter"><code>box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>box</code></em> :</span></td>
<td>a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td>the <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> of the child to set.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>expand</code></em> :</span></td>
<td>the new value of the <em class="structfield"><code>expand</code></em> field
in <span class="type">GtkBoxChild</span>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>fill</code></em> :</span></td>
<td>the new value of the <em class="structfield"><code>fill</code></em> field in
<span class="type">GtkBoxChild</span>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>padding</code></em> :</span></td>
<td>the new value of the <em class="structfield"><code>padding</code></em>
field in <span class="type">GtkBoxChild</span>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pack_type</code></em> :</span></td>
<td>the new value of the <em class="structfield"><code>pack</code></em> field
in <span class="type">GtkBoxChild</span>.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3626461"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3626471"></a><h3>
<a name="GtkBox--homogeneous"></a>The "<code class="literal">homogeneous</code>" property</h3>
<a class="indexterm" name="id3626487"></a><pre class="programlisting"> "homogeneous" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether the children should all be the same size.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3626514"></a><h3>
<a name="GtkBox--spacing"></a>The "<code class="literal">spacing</code>" property</h3>
<a class="indexterm" name="id3626530"></a><pre class="programlisting"> "spacing" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write</pre>
<p>The amount of space between children.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3626561"></a><h2>Child Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3626572"></a><h3>
<a name="GtkBox--expand"></a>The "<code class="literal">expand</code>" child property</h3>
<a class="indexterm" name="id3626589"></a><pre class="programlisting"> "expand" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether the child should receive extra space when the parent grows.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3626616"></a><h3>
<a name="GtkBox--fill"></a>The "<code class="literal">fill</code>" child property</h3>
<a class="indexterm" name="id3626631"></a><pre class="programlisting"> "fill" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether extra space given to the child should be allocated to the child or used as padding.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3626659"></a><h3>
<a name="GtkBox--pack-type"></a>The "<code class="literal">pack-type</code>" child property</h3>
<a class="indexterm" name="id3626676"></a><pre class="programlisting"> "pack-type" <a href="gtk-Standard-Enumerations.html#GtkPackType">GtkPackType</a> : Read / Write</pre>
<p>A GtkPackType indicating whether the child is packed with reference to the start or end of the parent.</p>
<p>Default value: GTK_PACK_START</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3626704"></a><h3>
<a name="GtkBox--padding"></a>The "<code class="literal">padding</code>" child property</h3>
<a class="indexterm" name="id3626720"></a><pre class="programlisting"> "padding" <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> : Read / Write</pre>
<p>Extra space to put between the child and its neighbors, in pixels.</p>
<p>Allowed values: <= G_MAXINT</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3626751"></a><h3>
<a name="GtkBox--position"></a>The "<code class="literal">position</code>" child property</h3>
<a class="indexterm" name="id3626767"></a><pre class="programlisting"> "position" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write</pre>
<p>The index of the child in the parent.</p>
<p>Allowed values: >= -1</p>
<p>Default value: 0</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3626799"></a><h2>See Also</h2>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><a href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a></span></td>
<td><p>a derived class that organizes widgets into a row.</p></td>
</tr>
<tr>
<td>
<span class="term"><a href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a></span></td>
<td><p>a derived class that organizes widgets into a column.</p></td>
</tr>
<tr>
<td>
<span class="term"><a href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a></span></td>
<td><p>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> useful for drawing a border around a GtkBox.</p></td>
</tr>
<tr>
<td>
<span class="term"><a href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a></span></td>
<td><p>a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a> for organizing widgets into a grid,
rather than independent rows or columns.</p></td>
</tr>
<tr>
<td>
<span class="term"><a href="GtkLayout.html" title="GtkLayout"><span class="type">GtkLayout</span></a></span></td>
<td><p>a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a> for organizing widgets into arbitrary
layouts.</p></td>
</tr>
</tbody>
</table></div>
<p>
</p>
</div>
</div>
</body>
</html>