|
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 : /proc/21585/root/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>GtkContainer</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="GtkButtonBox.html" title="GtkButtonBox">
<link rel="next" href="GtkItem.html" title="GtkItem">
<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="GtkButtonBox.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="GtkItem.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="#id3635909" class="shortcut">Top</a>
 | 
<a href="#id3637513" class="shortcut">Description</a>
 | 
<a href="#id3637088" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id3637252" class="shortcut">Implemented Interfaces</a>
 | 
<a href="#id3637275" class="shortcut">Properties</a>
 | 
<a href="#id3637342" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkContainer"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3635909"></a><span class="refentrytitle">GtkContainer</span>
</h2>
<p>GtkContainer — Base class for widgets which contain other widgets</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="GtkContainer.html#GtkContainer-struct">GtkContainer</a>;
#define <a href="GtkContainer.html#GTK-IS-RESIZE-CONTAINER:CAPS">GTK_IS_RESIZE_CONTAINER</a> (widget)
#define <a href="GtkContainer.html#GTK-CONTAINER-WARN-INVALID-CHILD-PROPERTY-ID:CAPS">GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID</a>(object, property_id, pspec)
#define <a href="GtkContainer.html#gtk-container-border-width">gtk_container_border_width</a>
void <a href="GtkContainer.html#gtk-container-add">gtk_container_add</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void <a href="GtkContainer.html#gtk-container-remove">gtk_container_remove</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void <a href="GtkContainer.html#gtk-container-add-with-properties">gtk_container_add_with_properties</a>
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_prop_name,
...);
<a href="gtk-Standard-Enumerations.html#GtkResizeMode">GtkResizeMode</a> <a href="GtkContainer.html#gtk-container-get-resize-mode">gtk_container_get_resize_mode</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);
void <a href="GtkContainer.html#gtk-container-set-resize-mode">gtk_container_set_resize_mode</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="gtk-Standard-Enumerations.html#GtkResizeMode">GtkResizeMode</a> resize_mode);
void <a href="GtkContainer.html#gtk-container-check-resize">gtk_container_check_resize</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);
void <a href="GtkContainer.html#gtk-container-foreach">gtk_container_foreach</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html#GtkCallback">GtkCallback</a> callback,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);
void <a href="GtkContainer.html#gtk-container-foreach-full">gtk_container_foreach_full</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html#GtkCallback">GtkCallback</a> callback,
<a href="gtk-Types.html#GtkCallbackMarshal">GtkCallbackMarshal</a> marshal,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data,
<a href="gtk-Types.html#GtkDestroyNotify">GtkDestroyNotify</a> notify);
#define <a href="GtkContainer.html#gtk-container-children">gtk_container_children</a>
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>* <a href="GtkContainer.html#gtk-container-get-children">gtk_container_get_children</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);
void <a href="GtkContainer.html#gtk-container-set-reallocate-redraws">gtk_container_set_reallocate_redraws</a>
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> needs_redraws);
void <a href="GtkContainer.html#gtk-container-set-focus-child">gtk_container_set_focus_child</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* <a href="GtkContainer.html#gtk-container-get-focus-vadjustment">gtk_container_get_focus_vadjustment</a>
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);
void <a href="GtkContainer.html#gtk-container-set-focus-vadjustment">gtk_container_set_focus_vadjustment</a>
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* <a href="GtkContainer.html#gtk-container-get-focus-hadjustment">gtk_container_get_focus_hadjustment</a>
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);
void <a href="GtkContainer.html#gtk-container-set-focus-hadjustment">gtk_container_set_focus_hadjustment</a>
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);
void <a href="GtkContainer.html#gtk-container-resize-children">gtk_container_resize_children</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);
<a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> <a href="GtkContainer.html#gtk-container-child-type">gtk_container_child_type</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);
void <a href="GtkContainer.html#gtk-container-child-get">gtk_container_child_get</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_prop_name,
...);
void <a href="GtkContainer.html#gtk-container-child-set">gtk_container_child_set</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_prop_name,
...);
void <a href="GtkContainer.html#gtk-container-child-get-property">gtk_container_child_get_property</a>
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name,
<a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void <a href="GtkContainer.html#gtk-container-child-set-property">gtk_container_child_set_property</a>
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name,
const <a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void <a href="GtkContainer.html#gtk-container-child-get-valist">gtk_container_child_get_valist</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
va_list var_args);
void <a href="GtkContainer.html#gtk-container-child-set-valist">gtk_container_child_set_valist</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
va_list var_args);
void <a href="GtkContainer.html#gtk-container-forall">gtk_container_forall</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html#GtkCallback">GtkCallback</a> callback,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <a href="GtkContainer.html#gtk-container-get-border-width">gtk_container_get_border_width</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);
void <a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> border_width);
void <a href="GtkContainer.html#gtk-container-propagate-expose">gtk_container_propagate_expose</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../gdk/gdk-Event-Structures.html#GdkEventExpose"
>GdkEventExpose</a> *event);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkContainer.html#gtk-container-get-focus-chain">gtk_container_get_focus_chain</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a> **focusable_widgets);
void <a href="GtkContainer.html#gtk-container-set-focus-chain">gtk_container_set_focus_chain</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a> *focusable_widgets);
void <a href="GtkContainer.html#gtk-container-unset-focus-chain">gtk_container_unset_focus_chain</a> (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);
<a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a>* <a href="GtkContainer.html#gtk-container-class-find-child-property">gtk_container_class_find_child_property</a>
(<a
href="../gobject/gobject-The-Base-Object-Type.html#GObjectClass"
>GObjectClass</a> *cclass,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name);
void <a href="GtkContainer.html#gtk-container-class-install-child-property">gtk_container_class_install_child_property</a>
(GtkContainerClass *cclass,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> property_id,
<a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec);
<a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a>** <a href="GtkContainer.html#gtk-container-class-list-child-properties">gtk_container_class_list_child_properties</a>
(<a
href="../gobject/gobject-The-Base-Object-Type.html#GObjectClass"
>GObjectClass</a> *cclass,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *n_properties);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3637088"></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>
+----GtkContainer
+----<a href="GtkBin.html" title="GtkBin">GtkBin</a>
+----<a href="GtkBox.html" title="GtkBox">GtkBox</a>
+----<a href="GtkCList.html" title="GtkCList">GtkCList</a>
+----<a href="GtkFixed.html" title="GtkFixed">GtkFixed</a>
+----<a href="GtkPaned.html" title="GtkPaned">GtkPaned</a>
+----<a href="GtkIconView.html" title="GtkIconView">GtkIconView</a>
+----<a href="GtkLayout.html" title="GtkLayout">GtkLayout</a>
+----<a href="GtkList.html" title="GtkList">GtkList</a>
+----<a href="GtkMenuShell.html" title="GtkMenuShell">GtkMenuShell</a>
+----<a href="GtkNotebook.html" title="GtkNotebook">GtkNotebook</a>
+----<a href="GtkSocket.html" title="GtkSocket">GtkSocket</a>
+----<a href="GtkTable.html" title="GtkTable">GtkTable</a>
+----<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a>
+----<a href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a>
+----<a href="GtkTree.html" title="GtkTree">GtkTree</a>
+----<a href="GtkTreeView.html" title="GtkTreeView">GtkTreeView</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3637252"></a><h2>Implemented Interfaces</h2>
<p>
GtkContainer implements
AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3637275"></a><h2>Properties</h2>
<pre class="synopsis">
"<a href="GtkContainer.html#GtkContainer--border-width">border-width</a>" <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> : Read / Write
"<a href="GtkContainer.html#GtkContainer--child">child</a>" <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> : Write
"<a href="GtkContainer.html#GtkContainer--resize-mode">resize-mode</a>" <a href="gtk-Standard-Enumerations.html#GtkResizeMode">GtkResizeMode</a> : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3637342"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GtkContainer.html#GtkContainer-add">add</a>" void user_function (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run first
"<a href="GtkContainer.html#GtkContainer-check-resize">check-resize</a>"
void user_function (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkContainer.html#GtkContainer-remove">remove</a>" void user_function (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run first
"<a href="GtkContainer.html#GtkContainer-set-focus-child">set-focus-child</a>"
void user_function (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run first
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3637513"></a><h2>Description</h2>
<p>
A GTK+ user interface is constructed by nesting widgets inside widgets. Container widgets are the inner
nodes in the resulting tree of widgets: they contain other widgets. So, for example, you might have a
<a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> containing a <a href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a> containing a GtkLabel. If you wanted an image instead of a textual label
inside the frame, you might replace the <a href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a> widget with a <a href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a> widget.
</p>
<p>
There are two major kinds of container widgets in GTK+. Both are subclasses of the abstract <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
base class.
</p>
<p>
The first type of container widget has a single child widget and derives from <a href="GtkBin.html" title="GtkBin"><span class="type">GtkBin</span></a>. These containers
are <em class="firstterm">decorators</em>, which add some kind of functionality to the child. For example,
a <a href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> makes its child into a clickable button; a <a href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a> draws a frame around its child and
a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> places its child widget inside a top-level window.
</p>
<p>
The second type of container can have more than one child; its purpose is to manage
<em class="firstterm">layout</em>. This means that these containers assign sizes and positions to their children.
For example, a <a href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a> arranges its children in a horizontal row, and a <a href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> arranges the widgets it
contains in a two-dimensional grid.
</p>
<p>
To fulfill its task, a layout container must negotiate the size requirements with its parent and its children.
This negotiation is carried out in two phases, <em class="firstterm">size requisition</em> and
<em class="firstterm">size allocation</em>.
</p>
<div class="refsect2" lang="en">
<a name="size-requisition"></a><h3>Size Requisition</h3>
<p>
The size requisition of a widget is it's desired width and height. This is represented by a <a href="GtkWidget.html#GtkRequisition"><span class="type">GtkRequisition</span></a>.
</p>
<p>
How a widget determines its desired size depends on the widget. A <a href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>, for example, requests enough space
to display all its text. Container widgets generally base their size request on the requisitions of their
children.
</p>
<p>
The size requisition phase of the widget layout process operates top-down. It starts at a top-level widget,
typically a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. The top-level widget asks its child for its size requisition by calling
<a href="GtkWidget.html#gtk-widget-size-request"><code class="function">gtk_widget_size_request()</code></a>. To determine its requisition, the child asks its own children for their requisitions
and so on. Finally, the top-level widget will get a requisition back from its child.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="size-allocation"></a><h3>Size Allocation</h3>
<p>
When the top-level widget has determined how much space its child would like to have, the second phase of the
size negotiation, size allocation, begins. Depending on its configuration (see <a href="GtkWindow.html#gtk-window-set-resizable"><code class="function">gtk_window_set_resizable()</code></a>), the
top-level widget may be able to expand in order to satisfy the size request or it may have to ignore the size
request and keep its fixed size. It then tells its child widget how much space it gets by calling
<a href="GtkWidget.html#gtk-widget-size-allocate"><code class="function">gtk_widget_size_allocate()</code></a>. The child widget divides the space among its children and tells each child how much
space it got, and so on. Under normal circumstances, a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> will always give its child the amount of space
the child requested.
</p>
<p>
A child's size allocation is represented by a <a href="GtkWidget.html#GtkAllocation"><span class="type">GtkAllocation</span></a>. This struct contains not only a width and height,
but also a position (i.e. X and Y coordinates), so that containers can tell their children not only how much
space they have gotten, but also where they are positioned inside the space available to the container.
</p>
<p>
Widgets are required to honor the size allocation they receive; a size request is only a request, and widgets
must be able to cope with any size.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="child-properties"></a><h3>Child properties</h3>
<p>
<span class="structname">GtkContainer</span> introduces <em class="firstterm">child
properties</em> - these are object properties that are not specific
to either the container or the contained widget, but rather to their relation.
Typical examples of child properties are the position or pack-type of a widget
which is contained in a <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>.</p>
<p>
Use <a href="GtkContainer.html#gtk-container-class-install-child-property"><code class="function">gtk_container_class_install_child_property()</code></a> to install child properties
for a container class and <a href="GtkContainer.html#gtk-container-class-find-child-property"><code class="function">gtk_container_class_find_child_property()</code></a> or
<a href="GtkContainer.html#gtk-container-class-list-child-properties"><code class="function">gtk_container_class_list_child_properties()</code></a> to get information about existing
child properties.
</p>
<p>
To set the value of a child property, use <a href="GtkContainer.html#gtk-container-child-set-property"><code class="function">gtk_container_child_set_property()</code></a>,
<a href="GtkContainer.html#gtk-container-child-set"><code class="function">gtk_container_child_set()</code></a> or <a href="GtkContainer.html#gtk-container-child-set-valist"><code class="function">gtk_container_child_set_valist()</code></a>.
To obtain the value of a child property, use
<a href="GtkContainer.html#gtk-container-child-get-property"><code class="function">gtk_container_child_get_property()</code></a>, <a href="GtkContainer.html#gtk-container-child-get"><code class="function">gtk_container_child_get()</code></a> or
<a href="GtkContainer.html#gtk-container-child-get-valist"><code class="function">gtk_container_child_get_valist()</code></a>. To emit notification about child property
changes, use <a href="GtkWidget.html#gtk-widget-child-notify"><code class="function">gtk_widget_child_notify()</code></a>.
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3637966"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3637977"></a><h3>
<a name="GtkContainer-struct"></a>GtkContainer</h3>
<a class="indexterm" name="id3637990"></a><pre class="programlisting">typedef struct _GtkContainer GtkContainer;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3638005"></a><h3>
<a name="GTK-IS-RESIZE-CONTAINER:CAPS"></a>GTK_IS_RESIZE_CONTAINER()</h3>
<a class="indexterm" name="id3638019"></a><pre class="programlisting">#define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && ((GtkContainer*) (widget))->resize_mode != GTK_RESIZE_PARENT)
</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3638054"></a><h3>
<a name="GTK-CONTAINER-WARN-INVALID-CHILD-PROPERTY-ID:CAPS"></a>GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID()</h3>
<a class="indexterm" name="id3638069"></a><pre class="programlisting">#define GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID(object, property_id, pspec)</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>object</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>property_id</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pspec</code></em> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3638131"></a><h3>
<a name="gtk-container-border-width"></a>gtk_container_border_width</h3>
<a class="indexterm" name="id3638147"></a><pre class="programlisting">#define gtk_container_border_width gtk_container_set_border_width
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_container_border_width</code> is deprecated and should not be used in newly-written code. Use <a href="GtkContainer.html#gtk-container-set-border-width"><code class="function">gtk_container_set_border_width()</code></a> instead.</p>
</div>
<p>
Does the same as <a href="GtkContainer.html#gtk-container-set-border-width"><code class="function">gtk_container_set_border_width()</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3638198"></a><h3>
<a name="gtk-container-add"></a>gtk_container_add ()</h3>
<a class="indexterm" name="id3638212"></a><pre class="programlisting">void gtk_container_add (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Adds <em class="parameter"><code>widget</code></em> to <em class="parameter"><code>container</code></em>. Typically used for simple containers
such as <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, <a href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a>, or <a href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a>; for more complicated
layout containers such as <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a> or <a href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>, this function will
pick default packing parameters that may not be correct. So
consider functions such as <a href="GtkBox.html#gtk-box-pack-start"><code class="function">gtk_box_pack_start()</code></a> and
<a href="GtkTable.html#gtk-table-attach"><code class="function">gtk_table_attach()</code></a> as an alternative to <a href="GtkContainer.html#gtk-container-add"><code class="function">gtk_container_add()</code></a> in
those cases. A widget may be added to only one container at a time;
you can't place the same widget inside two different containers.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td> a widget to be placed inside <em class="parameter"><code>container</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3638386"></a><h3>
<a name="gtk-container-remove"></a>gtk_container_remove ()</h3>
<a class="indexterm" name="id3638399"></a><pre class="programlisting">void gtk_container_remove (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Removes <em class="parameter"><code>widget</code></em> from <em class="parameter"><code>container</code></em>. <em class="parameter"><code>widget</code></em> must be inside <em class="parameter"><code>container</code></em>.
Note that <em class="parameter"><code>container</code></em> will own a reference to <em class="parameter"><code>widget</code></em>, and that this
may be the last reference held; so removing a widget from its
container can destroy that widget. If you want to use <em class="parameter"><code>widget</code></em>
again, you need to add a reference to it while it's not inside
a container, using <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"
><code class="function">g_object_ref()</code></a>. If you don't want to use <em class="parameter"><code>widget</code></em>
again it's usually more efficient to simply destroy it directly
using <a href="GtkWidget.html#gtk-widget-destroy"><code class="function">gtk_widget_destroy()</code></a> since this will remove it from the
container and help break any circular reference count cycles.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td> a current child of <em class="parameter"><code>container</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3638561"></a><h3>
<a name="gtk-container-add-with-properties"></a>gtk_container_add_with_properties ()</h3>
<a class="indexterm" name="id3638575"></a><pre class="programlisting">void gtk_container_add_with_properties
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_prop_name,
...);</pre>
<p>
Adds <em class="parameter"><code>widget</code></em> to <em class="parameter"><code>container</code></em>, setting child properties at the same time.
See <a href="GtkContainer.html#gtk-container-add"><code class="function">gtk_container_add()</code></a> and <a href="GtkContainer.html#gtk-container-child-set"><code class="function">gtk_container_child_set()</code></a> for more details.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td> a widget to be placed inside <em class="parameter"><code>container</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_prop_name</code></em> :</span></td>
<td> the name of the first child property to set
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em> :</span></td>
<td> a <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated list of property names and values, starting
with <em class="parameter"><code>first_prop_name</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3638749"></a><h3>
<a name="gtk-container-get-resize-mode"></a>gtk_container_get_resize_mode ()</h3>
<a class="indexterm" name="id3638763"></a><pre class="programlisting"><a href="gtk-Standard-Enumerations.html#GtkResizeMode">GtkResizeMode</a> gtk_container_get_resize_mode (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre>
<p>
Returns the resize mode for the container. See
<a href="GtkContainer.html#gtk-container-set-resize-mode"><code class="function">gtk_container_set_resize_mode()</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>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the current resize mode
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3638844"></a><h3>
<a name="gtk-container-set-resize-mode"></a>gtk_container_set_resize_mode ()</h3>
<a class="indexterm" name="id3638857"></a><pre class="programlisting">void gtk_container_set_resize_mode (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="gtk-Standard-Enumerations.html#GtkResizeMode">GtkResizeMode</a> resize_mode);</pre>
<p>
Sets the resize mode for the container.
</p>
<p>
The resize mode of a container determines whether a resize request
will be passed to the container's parent, queued for later execution
or executed immediately.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>resize_mode</code></em> :</span></td>
<td> the new resize mode.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3638944"></a><h3>
<a name="gtk-container-check-resize"></a>gtk_container_check_resize ()</h3>
<a class="indexterm" name="id3638958"></a><pre class="programlisting">void gtk_container_check_resize (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3639004"></a><h3>
<a name="gtk-container-foreach"></a>gtk_container_foreach ()</h3>
<a class="indexterm" name="id3639017"></a><pre class="programlisting">void gtk_container_foreach (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html#GtkCallback">GtkCallback</a> callback,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);</pre>
<p>
Invokes <em class="parameter"><code>callback</code></em> on each non-internal child of <em class="parameter"><code>container</code></em>. See
<a href="GtkContainer.html#gtk-container-forall"><code class="function">gtk_container_forall()</code></a> for details on what constitutes an
"internal" child. Most applications should use
<a href="GtkContainer.html#gtk-container-foreach"><code class="function">gtk_container_foreach()</code></a>, rather than <a href="GtkContainer.html#gtk-container-forall"><code class="function">gtk_container_forall()</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>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
<td> a callback
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>callback_data</code></em> :</span></td>
<td> callback user data
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3639166"></a><h3>
<a name="gtk-container-foreach-full"></a>gtk_container_foreach_full ()</h3>
<a class="indexterm" name="id3639182"></a><pre class="programlisting">void gtk_container_foreach_full (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html#GtkCallback">GtkCallback</a> callback,
<a href="gtk-Types.html#GtkCallbackMarshal">GtkCallbackMarshal</a> marshal,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data,
<a href="gtk-Types.html#GtkDestroyNotify">GtkDestroyNotify</a> notify);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_container_foreach_full</code> is deprecated and should not be used in newly-written code. Use <a href="GtkContainer.html#gtk-container-foreach"><code class="function">gtk_container_foreach()</code></a> instead.</p>
</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>marshal</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>callback_data</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>notify</code></em> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3639338"></a><h3>
<a name="gtk-container-children"></a>gtk_container_children</h3>
<a class="indexterm" name="id3639354"></a><pre class="programlisting">#define gtk_container_children gtk_container_get_children
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_container_children</code> is deprecated and should not be used in newly-written code. Use <a href="GtkContainer.html#gtk-container-get-children"><code class="function">gtk_container_get_children()</code></a> instead.</p>
</div>
<p>
Does the same as <a href="GtkContainer.html#gtk-container-get-children"><code class="function">gtk_container_get_children()</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3639405"></a><h3>
<a name="gtk-container-get-children"></a>gtk_container_get_children ()</h3>
<a class="indexterm" name="id3639418"></a><pre class="programlisting"><a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>* gtk_container_get_children (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre>
<p>
Returns the container's non-internal children. See
<a href="GtkContainer.html#gtk-container-forall"><code class="function">gtk_container_forall()</code></a> for details on what constitutes an "internal" child.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a newly-allocated list of the container's non-internal children.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3639500"></a><h3>
<a name="gtk-container-set-reallocate-redraws"></a>gtk_container_set_reallocate_redraws ()</h3>
<a class="indexterm" name="id3639514"></a><pre class="programlisting">void gtk_container_set_reallocate_redraws
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> needs_redraws);</pre>
<p>
Sets the <em class="parameter"><code>reallocate_redraws</code></em> flag of the container to the given value.
</p>
<p>
Containers requesting reallocation redraws get automatically
redrawn if any of their children changed allocation.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>needs_redraws</code></em> :</span></td>
<td> the new value for the container's <em class="parameter"><code>reallocate_redraws</code></em> flag.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3639613"></a><h3>
<a name="gtk-container-set-focus-child"></a>gtk_container_set_focus_child ()</h3>
<a class="indexterm" name="id3639627"></a><pre class="programlisting">void gtk_container_set_focus_child (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3639695"></a><h3>
<a name="gtk-container-get-focus-vadjustment"></a>gtk_container_get_focus_vadjustment ()</h3>
<a class="indexterm" name="id3639709"></a><pre class="programlisting"><a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* gtk_container_get_focus_vadjustment
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre>
<p>
Retrieves the vertical focus adjustment for the container. See
<a href="GtkContainer.html#gtk-container-set-focus-vadjustment"><code class="function">gtk_container_set_focus_vadjustment()</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>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the vertical focus adjustment, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if
none has been set.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3639802"></a><h3>
<a name="gtk-container-set-focus-vadjustment"></a>gtk_container_set_focus_vadjustment ()</h3>
<a class="indexterm" name="id3639816"></a><pre class="programlisting">void gtk_container_set_focus_vadjustment
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre>
<p>
Hooks up an adjustment to focus handling in a container, so when a child of the
container is focused, the adjustment is scrolled to show that widget. This function
sets the vertical alignment. See <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-vadjustment"><code class="function">gtk_scrolled_window_get_vadjustment()</code></a> for a typical
way of obtaining the adjustment and <a href="GtkContainer.html#gtk-container-set-focus-hadjustment"><code class="function">gtk_container_set_focus_hadjustment()</code></a> for setting
the horizontal adjustment.
</p>
<p>
The adjustments have to be in pixel units and in the same coordinate system as the
allocation for immediate children of the container.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>adjustment</code></em> :</span></td>
<td> an adjustment which should be adjusted when the focus is moved among the
descendents of <em class="parameter"><code>container</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3639937"></a><h3>
<a name="gtk-container-get-focus-hadjustment"></a>gtk_container_get_focus_hadjustment ()</h3>
<a class="indexterm" name="id3639951"></a><pre class="programlisting"><a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* gtk_container_get_focus_hadjustment
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre>
<p>
Retrieves the horizontal focus adjustment for the container. See
<a href="GtkContainer.html#gtk-container-set-focus-hadjustment"><code class="function">gtk_container_set_focus_hadjustment()</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>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the horizontal focus adjustment, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if
none has been set.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3640044"></a><h3>
<a name="gtk-container-set-focus-hadjustment"></a>gtk_container_set_focus_hadjustment ()</h3>
<a class="indexterm" name="id3640058"></a><pre class="programlisting">void gtk_container_set_focus_hadjustment
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre>
<p>
Hooks up an adjustment to focus handling in a container, so when a child of the
container is focused, the adjustment is scrolled to show that widget. This function
sets the horizontal alignment. See <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-hadjustment"><code class="function">gtk_scrolled_window_get_hadjustment()</code></a> for a typical
way of obtaining the adjustment and <a href="GtkContainer.html#gtk-container-set-focus-vadjustment"><code class="function">gtk_container_set_focus_vadjustment()</code></a> for setting
the vertical adjustment.
</p>
<p>
The adjustments have to be in pixel units and in the same coordinate system as the
allocation for immediate children of the container.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>adjustment</code></em> :</span></td>
<td> an adjustment which should be adjusted when the focus is moved among the
descendents of <em class="parameter"><code>container</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3640179"></a><h3>
<a name="gtk-container-resize-children"></a>gtk_container_resize_children ()</h3>
<a class="indexterm" name="id3640192"></a><pre class="programlisting">void gtk_container_resize_children (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3640239"></a><h3>
<a name="gtk-container-child-type"></a>gtk_container_child_type ()</h3>
<a class="indexterm" name="id3640252"></a><pre class="programlisting"><a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> gtk_container_child_type (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre>
<p>
Returns the type of the children supported by the container.
</p>
<p>
Note that this may return <a
href="../gobject/gobject-Type-Information.html#G-TYPE-NONE:CAPS"
><code class="literal">G_TYPE_NONE</code></a> to indicate that no more
children can be added, e.g. for a <a href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> which already has two
children.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a <a
href="../gobject/gobject-Type-Information.html#GType"
><span class="type">GType</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3640353"></a><h3>
<a name="gtk-container-child-get"></a>gtk_container_child_get ()</h3>
<a class="indexterm" name="id3640366"></a><pre class="programlisting">void gtk_container_child_get (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_prop_name,
...);</pre>
<p>
Gets the values of one or more child properties for <em class="parameter"><code>child</code></em> and <em class="parameter"><code>container</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> a widget which is a child of <em class="parameter"><code>container</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_prop_name</code></em> :</span></td>
<td> the name of the first property to get
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em> :</span></td>
<td> a <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated list of property names and <a
href="../gobject/gobject-Generic-values.html#GValue"
><span class="type">GValue</span></a>*,
starting with <em class="parameter"><code>first_prop_name</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3640526"></a><h3>
<a name="gtk-container-child-set"></a>gtk_container_child_set ()</h3>
<a class="indexterm" name="id3640539"></a><pre class="programlisting">void gtk_container_child_set (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_prop_name,
...);</pre>
<p>
Sets one or more child properties for <em class="parameter"><code>child</code></em> and <em class="parameter"><code>container</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> a widget which is a child of <em class="parameter"><code>container</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_prop_name</code></em> :</span></td>
<td> the name of the first property to set
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em> :</span></td>
<td> a <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated list of property names and values, starting
with <em class="parameter"><code>first_prop_name</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3640691"></a><h3>
<a name="gtk-container-child-get-property"></a>gtk_container_child_get_property ()</h3>
<a class="indexterm" name="id3640705"></a><pre class="programlisting">void gtk_container_child_get_property
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name,
<a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Gets the value of a child property for <em class="parameter"><code>child</code></em> and <em class="parameter"><code>container</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> a widget which is a child of <em class="parameter"><code>container</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>property_name</code></em> :</span></td>
<td> the name of the property to get
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>value</code></em> :</span></td>
<td> a location to return the value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3640848"></a><h3>
<a name="gtk-container-child-set-property"></a>gtk_container_child_set_property ()</h3>
<a class="indexterm" name="id3640861"></a><pre class="programlisting">void gtk_container_child_set_property
(<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name,
const <a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Sets a child property for <em class="parameter"><code>child</code></em> and <em class="parameter"><code>container</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> a widget which is a child of <em class="parameter"><code>container</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>property_name</code></em> :</span></td>
<td> the name of the property to set
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>value</code></em> :</span></td>
<td> the value to set the property to
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3641004"></a><h3>
<a name="gtk-container-child-get-valist"></a>gtk_container_child_get_valist ()</h3>
<a class="indexterm" name="id3641017"></a><pre class="programlisting">void gtk_container_child_get_valist (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
va_list var_args);</pre>
<p>
Gets the values of one or more child properties for <em class="parameter"><code>child</code></em> and <em class="parameter"><code>container</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> a widget which is a child of <em class="parameter"><code>container</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_property_name</code></em> :</span></td>
<td> the name of the first property to get
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>var_args</code></em> :</span></td>
<td> a <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated list of property names and <a
href="../gobject/gobject-Generic-values.html#GValue"
><span class="type">GValue</span></a>*,
starting with <em class="parameter"><code>first_prop_name</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3641184"></a><h3>
<a name="gtk-container-child-set-valist"></a>gtk_container_child_set_valist ()</h3>
<a class="indexterm" name="id3641198"></a><pre class="programlisting">void gtk_container_child_set_valist (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
va_list var_args);</pre>
<p>
Sets one or more child properties for <em class="parameter"><code>child</code></em> and <em class="parameter"><code>container</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> a widget which is a child of <em class="parameter"><code>container</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_property_name</code></em> :</span></td>
<td> the name of the first property to set
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>var_args</code></em> :</span></td>
<td> a <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated list of property names and values, starting
with <em class="parameter"><code>first_prop_name</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3641357"></a><h3>
<a name="gtk-container-forall"></a>gtk_container_forall ()</h3>
<a class="indexterm" name="id3641370"></a><pre class="programlisting">void gtk_container_forall (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html#GtkCallback">GtkCallback</a> callback,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);</pre>
<p>
Invokes <em class="parameter"><code>callback</code></em> on each child of <em class="parameter"><code>container</code></em>, including children
that are considered "internal" (implementation details of the
container). "Internal" children generally weren't added by the user
of the container, but were added by the container implementation
itself. Most applications should use <a href="GtkContainer.html#gtk-container-foreach"><code class="function">gtk_container_foreach()</code></a>,
rather than <a href="GtkContainer.html#gtk-container-forall"><code class="function">gtk_container_forall()</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>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
<td> a callback
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>callback_data</code></em> :</span></td>
<td> callback user data
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3641510"></a><h3>
<a name="gtk-container-get-border-width"></a>gtk_container_get_border_width ()</h3>
<a class="indexterm" name="id3641524"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> gtk_container_get_border_width (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre>
<p>
Retrieves the border width of the container. See
<a href="GtkContainer.html#gtk-container-set-border-width"><code class="function">gtk_container_set_border_width()</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>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the current border width
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3641605"></a><h3>
<a name="gtk-container-set-border-width"></a>gtk_container_set_border_width ()</h3>
<a class="indexterm" name="id3641618"></a><pre class="programlisting">void gtk_container_set_border_width (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> border_width);</pre>
<p>
Sets the border width of the container.
</p>
<p>
The border width of a container is the amount of space to leave
around the outside of the container. The only exception to this is
<a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>; because toplevel windows can't leave space outside,
they leave the space inside. The border is added on all sides of
the container. To add space to only one side, one approach is to
create a <a href="GtkAlignment.html" title="GtkAlignment"><span class="type">GtkAlignment</span></a> widget, call <a href="GtkWidget.html#gtk-widget-set-usize"><code class="function">gtk_widget_set_usize()</code></a> to give
it a size, and place it on the side of the container as a spacer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>border_width</code></em> :</span></td>
<td> amount of blank space to leave <span class="emphasis"><em>outside</em></span> the container.
Valid values are in the range 0-65535 pixels.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3641743"></a><h3>
<a name="gtk-container-propagate-expose"></a>gtk_container_propagate_expose ()</h3>
<a class="indexterm" name="id3641756"></a><pre class="programlisting">void gtk_container_propagate_expose (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../gdk/gdk-Event-Structures.html#GdkEventExpose"
>GdkEventExpose</a> *event);</pre>
<p>
When a container receives an expose event, it must send synthetic
expose events to all children that don't have their own <span class="type">GdkWindows</span>.
This function provides a convenient way of doing this. A container,
when it receives an expose event, calls <a href="GtkContainer.html#gtk-container-propagate-expose"><code class="function">gtk_container_propagate_expose()</code></a>
once for each child, passing in the event the container received.
</p>
<p>
<a href="GtkContainer.html#gtk-container-propagate-expose"><code class="function">gtk_container_propagate_expose()</code></a> takes care of deciding whether
an expose event needs to be sent to the child, intersecting
the event's area with the child area, and sending the event.
</p>
<p>
In most cases, a container can simply either simply inherit the
::expose implementation from <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>, or, do some drawing
and then chain to the ::expose implementation from <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></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>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> a child of <em class="parameter"><code>container</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em> :</span></td>
<td> a expose event sent to container
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3641928"></a><h3>
<a name="gtk-container-get-focus-chain"></a>gtk_container_get_focus_chain ()</h3>
<a class="indexterm" name="id3641942"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_container_get_focus_chain (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a> **focusable_widgets);</pre>
<p>
Retrieves the focus chain of the container, if one has been
set explicitly. If no focus chain has been explicitly
set, GTK+ computes the focus chain based on the positions
of the children. In that case, GTK+ stores <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> in
<em class="parameter"><code>focusable_widgets</code></em> and returns <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</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>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>focusable_widgets</code></em> :</span></td>
<td> location to store the focus chain of the
container, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>. You should free this list
using <a
href="../glib/glib-Doubly-Linked-Lists.html#g-list-free"
><code class="function">g_list_free()</code></a> when you are done with it, however
no additional reference count is added to the
individual widgets in the focus chain.
</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 focus chain of the container
has been set explicitly.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3642099"></a><h3>
<a name="gtk-container-set-focus-chain"></a>gtk_container_set_focus_chain ()</h3>
<a class="indexterm" name="id3642113"></a><pre class="programlisting">void gtk_container_set_focus_chain (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a> *focusable_widgets);</pre>
<p>
Sets a focus chain, overriding the one computed automatically by GTK+.
</p>
<p>
In principle each widget in the chain should be a descendant of the
container, but this is not enforced by this method, since it's allowed
to set the focus chain before you pack the widgets, or have a widget
in the chain that isn't always packed. The necessary checks are done
when the focus chain is actually traversed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>focusable_widgets</code></em> :</span></td>
<td> the new focus chain.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3642203"></a><h3>
<a name="gtk-container-unset-focus-chain"></a>gtk_container_unset_focus_chain ()</h3>
<a class="indexterm" name="id3642217"></a><pre class="programlisting">void gtk_container_unset_focus_chain (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre>
<p>
Removes a focus chain explicitly set with <a href="GtkContainer.html#gtk-container-set-focus-chain"><code class="function">gtk_container_set_focus_chain()</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>container</code></em> :</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3642287"></a><h3>
<a name="gtk-container-class-find-child-property"></a>gtk_container_class_find_child_property ()</h3>
<a class="indexterm" name="id3642301"></a><pre class="programlisting"><a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a>* gtk_container_class_find_child_property
(<a
href="../gobject/gobject-The-Base-Object-Type.html#GObjectClass"
>GObjectClass</a> *cclass,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name);</pre>
<p>
Finds a child property of a container class by name.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cclass</code></em> :</span></td>
<td> a <span class="type">GtkContainerClass</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>property_name</code></em> :</span></td>
<td> the name of the child property to find
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a> of the child property or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if <em class="parameter"><code>class</code></em> has no
child property with that name.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3642418"></a><h3>
<a name="gtk-container-class-install-child-property"></a>gtk_container_class_install_child_property ()</h3>
<a class="indexterm" name="id3642434"></a><pre class="programlisting">void gtk_container_class_install_child_property
(GtkContainerClass *cclass,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> property_id,
<a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec);</pre>
<p>
Installs a child property on a container class.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cclass</code></em> :</span></td>
<td> a <span class="type">GtkContainerClass</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>property_id</code></em> :</span></td>
<td> the id for the property
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pspec</code></em> :</span></td>
<td> the <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a> for the property
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3642544"></a><h3>
<a name="gtk-container-class-list-child-properties"></a>gtk_container_class_list_child_properties ()</h3>
<a class="indexterm" name="id3642559"></a><pre class="programlisting"><a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a>** gtk_container_class_list_child_properties
(<a
href="../gobject/gobject-The-Base-Object-Type.html#GObjectClass"
>GObjectClass</a> *cclass,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *n_properties);</pre>
<p>
Returns all child properties of a container class.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cclass</code></em> :</span></td>
<td> a <span class="type">GtkContainerClass</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_properties</code></em> :</span></td>
<td> location to return the number of child properties found
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a newly allocated array of <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a>*. The array must be
freed with <a
href="../glib/glib-Memory-Allocation.html#g-free"
><code class="function">g_free()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3642671"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3642682"></a><h3>
<a name="GtkContainer--border-width"></a>The "<code class="literal">border-width</code>" property</h3>
<a class="indexterm" name="id3642698"></a><pre class="programlisting"> "border-width" <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> : Read / Write</pre>
<p>The width of the empty border outside the containers children.</p>
<p>Allowed values: <= G_MAXINT</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3642729"></a><h3>
<a name="GtkContainer--child"></a>The "<code class="literal">child</code>" property</h3>
<a class="indexterm" name="id3642745"></a><pre class="programlisting"> "child" <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> : Write</pre>
<p>Can be used to add a new child to the container.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3642768"></a><h3>
<a name="GtkContainer--resize-mode"></a>The "<code class="literal">resize-mode</code>" property</h3>
<a class="indexterm" name="id3642784"></a><pre class="programlisting"> "resize-mode" <a href="gtk-Standard-Enumerations.html#GtkResizeMode">GtkResizeMode</a> : Read / Write</pre>
<p>Specify how resize events are handled.</p>
<p>Default value: GTK_RESIZE_PARENT</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3642813"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3642823"></a><h3>
<a name="GtkContainer-add"></a>The "add" signal</h3>
<a class="indexterm" name="id3642834"></a><pre class="programlisting">void user_function (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run first</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3642923"></a><h3>
<a name="GtkContainer-check-resize"></a>The "check-resize" signal</h3>
<a class="indexterm" name="id3642934"></a><pre class="programlisting">void user_function (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3643002"></a><h3>
<a name="GtkContainer-remove"></a>The "remove" signal</h3>
<a class="indexterm" name="id3643012"></a><pre class="programlisting">void user_function (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run first</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3643102"></a><h3>
<a name="GtkContainer-set-focus-child"></a>The "set-focus-child" signal</h3>
<a class="indexterm" name="id3643113"></a><pre class="programlisting">void user_function (<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run first</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>container</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>