Initial packaging to sync OBS with git/gerrit
[profile/ivi/gtk3.git] / docs / reference / gtk / html / GtkGrid.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GtkGrid</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8 <link rel="up" href="LayoutContainers.html" title="Layout Containers">
9 <link rel="prev" href="LayoutContainers.html" title="Layout Containers">
10 <link rel="next" href="GtkAlignment.html" title="GtkAlignment">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="LayoutContainers.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="LayoutContainers.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GTK+ 3 Reference Manual</th>
21 <td><a accesskey="n" href="GtkAlignment.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GtkGrid.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#GtkGrid.description" class="shortcut">Description</a>
27                    | 
28                   <a href="#GtkGrid.object-hierarchy" class="shortcut">Object Hierarchy</a>
29                    | 
30                   <a href="#GtkGrid.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31                    | 
32                   <a href="#GtkGrid.properties" class="shortcut">Properties</a>
33                    | 
34                   <a href="#GtkGrid.child-properties" class="shortcut">Child Properties</a>
35 </td></tr>
36 </table>
37 <div class="refentry">
38 <a name="GtkGrid"></a><div class="titlepage"></div>
39 <div class="refnamediv"><table width="100%"><tr>
40 <td valign="top">
41 <h2><span class="refentrytitle"><a name="GtkGrid.top_of_page"></a>GtkGrid</span></h2>
42 <p>GtkGrid — Pack widgets in a rows and columns</p>
43 </td>
44 <td valign="top" align="right"></td>
45 </tr></table></div>
46 <div class="refsynopsisdiv">
47 <a name="GtkGrid.synopsis"></a><h2>Synopsis</h2>
48 <pre class="synopsis">
49 #include &lt;gtk/gtk.h&gt;
50
51 struct              <a class="link" href="GtkGrid.html#GtkGrid-struct" title="struct GtkGrid">GtkGrid</a>;
52 <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkGrid.html#gtk-grid-new" title="gtk_grid_new ()">gtk_grid_new</a>                        (<em class="parameter"><code><span class="type">void</span></code></em>);
53 <span class="returnvalue">void</span>                <a class="link" href="GtkGrid.html#gtk-grid-attach" title="gtk_grid_attach ()">gtk_grid_attach</a>                     (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
54                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
55                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left</code></em>,
56                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> top</code></em>,
57                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
58                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
59 <span class="returnvalue">void</span>                <a class="link" href="GtkGrid.html#gtk-grid-attach-next-to" title="gtk_grid_attach_next_to ()">gtk_grid_attach_next_to</a>             (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
60                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
61                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *sibling</code></em>,
62                                                          <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> side</code></em>,
63                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
64                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
65 <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkGrid.html#gtk-grid-get-child-at" title="gtk_grid_get_child_at ()">gtk_grid_get_child_at</a>               (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
66                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left</code></em>,
67                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> top</code></em>);
68 <span class="returnvalue">void</span>                <a class="link" href="GtkGrid.html#gtk-grid-insert-row" title="gtk_grid_insert_row ()">gtk_grid_insert_row</a>                 (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
69                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);
70 <span class="returnvalue">void</span>                <a class="link" href="GtkGrid.html#gtk-grid-insert-column" title="gtk_grid_insert_column ()">gtk_grid_insert_column</a>              (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
71                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);
72 <span class="returnvalue">void</span>                <a class="link" href="GtkGrid.html#gtk-grid-insert-next-to" title="gtk_grid_insert_next_to ()">gtk_grid_insert_next_to</a>             (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
73                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *sibling</code></em>,
74                                                          <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> side</code></em>);
75 <span class="returnvalue">void</span>                <a class="link" href="GtkGrid.html#gtk-grid-set-row-homogeneous" title="gtk_grid_set_row_homogeneous ()">gtk_grid_set_row_homogeneous</a>        (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
76                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);
77 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkGrid.html#gtk-grid-get-row-homogeneous" title="gtk_grid_get_row_homogeneous ()">gtk_grid_get_row_homogeneous</a>        (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);
78 <span class="returnvalue">void</span>                <a class="link" href="GtkGrid.html#gtk-grid-set-row-spacing" title="gtk_grid_set_row_spacing ()">gtk_grid_set_row_spacing</a>            (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
79                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);
80 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               <a class="link" href="GtkGrid.html#gtk-grid-get-row-spacing" title="gtk_grid_get_row_spacing ()">gtk_grid_get_row_spacing</a>            (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);
81 <span class="returnvalue">void</span>                <a class="link" href="GtkGrid.html#gtk-grid-set-column-homogeneous" title="gtk_grid_set_column_homogeneous ()">gtk_grid_set_column_homogeneous</a>     (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
82                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);
83 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkGrid.html#gtk-grid-get-column-homogeneous" title="gtk_grid_get_column_homogeneous ()">gtk_grid_get_column_homogeneous</a>     (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);
84 <span class="returnvalue">void</span>                <a class="link" href="GtkGrid.html#gtk-grid-set-column-spacing" title="gtk_grid_set_column_spacing ()">gtk_grid_set_column_spacing</a>         (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
85                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);
86 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               <a class="link" href="GtkGrid.html#gtk-grid-get-column-spacing" title="gtk_grid_get_column_spacing ()">gtk_grid_get_column_spacing</a>         (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);
87 </pre>
88 </div>
89 <div class="refsect1">
90 <a name="GtkGrid.object-hierarchy"></a><h2>Object Hierarchy</h2>
91 <pre class="synopsis">
92   <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
93    +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
94          +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
95                +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
96                      +----GtkGrid
97 </pre>
98 </div>
99 <div class="refsect1">
100 <a name="GtkGrid.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
101 <p>
102 GtkGrid implements
103  AtkImplementorIface,  <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a> and  <a class="link" href="gtk3-Orientable.html#GtkOrientable">GtkOrientable</a>.</p>
104 </div>
105 <div class="refsect1">
106 <a name="GtkGrid.properties"></a><h2>Properties</h2>
107 <pre class="synopsis">
108   "<a class="link" href="GtkGrid.html#GtkGrid--column-homogeneous" title='The "column-homogeneous" property'>column-homogeneous</a>"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
109   "<a class="link" href="GtkGrid.html#GtkGrid--column-spacing" title='The "column-spacing" property'>column-spacing</a>"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
110   "<a class="link" href="GtkGrid.html#GtkGrid--row-homogeneous" title='The "row-homogeneous" property'>row-homogeneous</a>"          <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
111   "<a class="link" href="GtkGrid.html#GtkGrid--row-spacing" title='The "row-spacing" property'>row-spacing</a>"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
112 </pre>
113 </div>
114 <div class="refsect1">
115 <a name="GtkGrid.child-properties"></a><h2>Child Properties</h2>
116 <pre class="synopsis">
117   "<a class="link" href="GtkGrid.html#GtkGrid--c-height" title='The "height" child property'>height</a>"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
118   "<a class="link" href="GtkGrid.html#GtkGrid--c-left-attach" title='The "left-attach" child property'>left-attach</a>"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
119   "<a class="link" href="GtkGrid.html#GtkGrid--c-top-attach" title='The "top-attach" child property'>top-attach</a>"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
120   "<a class="link" href="GtkGrid.html#GtkGrid--c-width" title='The "width" child property'>width</a>"                    <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
121 </pre>
122 </div>
123 <div class="refsect1">
124 <a name="GtkGrid.description"></a><h2>Description</h2>
125 <p>
126 GtkGrid is a container which arranges its child widgets in
127 rows and columns. It is a very similar to <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> and <a class="link" href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>,
128 but it consistently uses <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>'s <a class="link" href="GtkWidget.html#GtkWidget--margin" title='The "margin" property'><span class="type">"margin"</span></a> and <a class="link" href="GtkWidget.html#GtkWidget--expand" title='The "expand" property'><span class="type">"expand"</span></a>
129 properties instead of custom child properties, and it fully supports
130 <a class="link" href="GtkWidget.html#geometry-management" title="Height-for-width Geometry Management">height-for-width geometry management</a>.
131 </p>
132 <p>
133 Children are added using <a class="link" href="GtkGrid.html#gtk-grid-attach" title="gtk_grid_attach ()"><code class="function">gtk_grid_attach()</code></a>. They can span multiple
134 rows or columns. It is also possible to add a child next to an
135 existing child, using <a class="link" href="GtkGrid.html#gtk-grid-attach-next-to" title="gtk_grid_attach_next_to ()"><code class="function">gtk_grid_attach_next_to()</code></a>.
136 </p>
137 <p>
138 GtkGrid can be used like a <a class="link" href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a> by just using <a class="link" href="GtkContainer.html#gtk-container-add" title="gtk_container_add ()"><code class="function">gtk_container_add()</code></a>,
139 which will place children next to each other in the direction determined
140 by the <a class="link" href="gtk3-Orientable.html#GtkOrientable--orientation" title='The "orientation" property'><span class="type">"orientation"</span></a> property.
141 </p>
142 </div>
143 <div class="refsect1">
144 <a name="GtkGrid.details"></a><h2>Details</h2>
145 <div class="refsect2">
146 <a name="GtkGrid-struct"></a><h3>struct GtkGrid</h3>
147 <pre class="programlisting">struct GtkGrid;</pre>
148 </div>
149 <hr>
150 <div class="refsect2">
151 <a name="gtk-grid-new"></a><h3>gtk_grid_new ()</h3>
152 <pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_grid_new                        (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
153 <p>
154 Creates a new grid widget.
155 </p>
156 <div class="variablelist"><table border="0">
157 <col align="left" valign="top">
158 <tbody><tr>
159 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
160 <td>the new <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
161 </td>
162 </tr></tbody>
163 </table></div>
164 </div>
165 <hr>
166 <div class="refsect2">
167 <a name="gtk-grid-attach"></a><h3>gtk_grid_attach ()</h3>
168 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_attach                     (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
169                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
170                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left</code></em>,
171                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> top</code></em>,
172                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
173                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
174 <p>
175 Adds a widget to the grid.
176 </p>
177 <p>
178 The position of <em class="parameter"><code>child</code></em> is determined by <em class="parameter"><code>left</code></em> and <em class="parameter"><code>top</code></em>. The
179 number of 'cells' that <em class="parameter"><code>child</code></em> will occupy is determined by
180 <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>.
181 </p>
182 <div class="variablelist"><table border="0">
183 <col align="left" valign="top">
184 <tbody>
185 <tr>
186 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
187 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
188 </td>
189 </tr>
190 <tr>
191 <td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
192 <td>the widget to add</td>
193 </tr>
194 <tr>
195 <td><p><span class="term"><em class="parameter"><code>left</code></em> :</span></p></td>
196 <td>the column number to attach the left side of <em class="parameter"><code>child</code></em> to</td>
197 </tr>
198 <tr>
199 <td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
200 <td>the row number to attach the top side of <em class="parameter"><code>child</code></em> to</td>
201 </tr>
202 <tr>
203 <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
204 <td>the number of columns that <em class="parameter"><code>child</code></em> will span</td>
205 </tr>
206 <tr>
207 <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
208 <td>the number of rows that <em class="parameter"><code>child</code></em> will span</td>
209 </tr>
210 </tbody>
211 </table></div>
212 </div>
213 <hr>
214 <div class="refsect2">
215 <a name="gtk-grid-attach-next-to"></a><h3>gtk_grid_attach_next_to ()</h3>
216 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_attach_next_to             (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
217                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
218                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *sibling</code></em>,
219                                                          <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> side</code></em>,
220                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
221                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
222 <p>
223 Adds a widget to the grid.
224 </p>
225 <p>
226 The widget is placed next to <em class="parameter"><code>sibling</code></em>, on the side determined by
227 <em class="parameter"><code>side</code></em>. When <em class="parameter"><code>sibling</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the widget is placed in row (for
228 left or right placement) or column 0 (for top or bottom placement),
229 at the end indicated by <em class="parameter"><code>side</code></em>.
230 </p>
231 <p>
232 Attaching widgets labeled [1], [2], [3] with <em class="parameter"><code>sibling</code></em> == <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and
233 <em class="parameter"><code>side</code></em> == <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a> yields a layout of [3][2][1].
234 </p>
235 <div class="variablelist"><table border="0">
236 <col align="left" valign="top">
237 <tbody>
238 <tr>
239 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
240 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
241 </td>
242 </tr>
243 <tr>
244 <td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
245 <td>the widget to add</td>
246 </tr>
247 <tr>
248 <td><p><span class="term"><em class="parameter"><code>sibling</code></em> :</span></p></td>
249 <td>the child of <em class="parameter"><code>grid</code></em> that <em class="parameter"><code>child</code></em> will be placed
250 next to, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to place <em class="parameter"><code>child</code></em> at the beginning or end. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
251 </td>
252 </tr>
253 <tr>
254 <td><p><span class="term"><em class="parameter"><code>side</code></em> :</span></p></td>
255 <td>the side of <em class="parameter"><code>sibling</code></em> that <em class="parameter"><code>child</code></em> is positioned next to</td>
256 </tr>
257 <tr>
258 <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
259 <td>the number of columns that <em class="parameter"><code>child</code></em> will span</td>
260 </tr>
261 <tr>
262 <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
263 <td>the number of rows that <em class="parameter"><code>child</code></em> will span</td>
264 </tr>
265 </tbody>
266 </table></div>
267 </div>
268 <hr>
269 <div class="refsect2">
270 <a name="gtk-grid-get-child-at"></a><h3>gtk_grid_get_child_at ()</h3>
271 <pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_grid_get_child_at               (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
272                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left</code></em>,
273                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> top</code></em>);</pre>
274 <p>
275 Gets the child of <em class="parameter"><code>grid</code></em> whose area covers the grid
276 cell whose upper left corner is at <em class="parameter"><code>left</code></em>, <em class="parameter"><code>top</code></em>.
277 </p>
278 <div class="variablelist"><table border="0">
279 <col align="left" valign="top">
280 <tbody>
281 <tr>
282 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
283 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
284 </td>
285 </tr>
286 <tr>
287 <td><p><span class="term"><em class="parameter"><code>left</code></em> :</span></p></td>
288 <td>the left edge of the cell</td>
289 </tr>
290 <tr>
291 <td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
292 <td>the top edge of the cell</td>
293 </tr>
294 <tr>
295 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
296 <td>the child at the given position, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
297 </td>
298 </tr>
299 </tbody>
300 </table></div>
301 <p class="since">Since 3.2</p>
302 </div>
303 <hr>
304 <div class="refsect2">
305 <a name="gtk-grid-insert-row"></a><h3>gtk_grid_insert_row ()</h3>
306 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_insert_row                 (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
307                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);</pre>
308 <p>
309 Inserts a row at the specified position.
310 </p>
311 <p>
312 Children which are attached at or below this position
313 are moved one row down. Children which span across this
314 position are grown to span the new row.
315 </p>
316 <div class="variablelist"><table border="0">
317 <col align="left" valign="top">
318 <tbody>
319 <tr>
320 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
321 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
322 </td>
323 </tr>
324 <tr>
325 <td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
326 <td>the position to insert the row at</td>
327 </tr>
328 </tbody>
329 </table></div>
330 <p class="since">Since 3.2</p>
331 </div>
332 <hr>
333 <div class="refsect2">
334 <a name="gtk-grid-insert-column"></a><h3>gtk_grid_insert_column ()</h3>
335 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_insert_column              (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
336                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);</pre>
337 <p>
338 Inserts a column at the specified position.
339 </p>
340 <p>
341 Children which are attached at or to the right of this position
342 are moved one column to the right. Children which span across this
343 position are grown to span the new column.
344 </p>
345 <div class="variablelist"><table border="0">
346 <col align="left" valign="top">
347 <tbody>
348 <tr>
349 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
350 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
351 </td>
352 </tr>
353 <tr>
354 <td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
355 <td>the position to insert the column at</td>
356 </tr>
357 </tbody>
358 </table></div>
359 <p class="since">Since 3.2</p>
360 </div>
361 <hr>
362 <div class="refsect2">
363 <a name="gtk-grid-insert-next-to"></a><h3>gtk_grid_insert_next_to ()</h3>
364 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_insert_next_to             (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
365                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *sibling</code></em>,
366                                                          <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> side</code></em>);</pre>
367 <p>
368 Inserts a row or column at the specified position.
369 </p>
370 <p>
371 The new row or column is placed next to <em class="parameter"><code>sibling</code></em>, on the side
372 determined by <em class="parameter"><code>side</code></em>. If <em class="parameter"><code>side</code></em> is <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><code class="literal">GTK_POS_TOP</code></a> or <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-BOTTOM:CAPS"><code class="literal">GTK_POS_BOTTOM</code></a>,
373 a row is inserted. If <em class="parameter"><code>side</code></em> is <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a> of <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-RIGHT:CAPS"><code class="literal">GTK_POS_RIGHT</code></a>,
374 a column is inserted.
375 </p>
376 <div class="variablelist"><table border="0">
377 <col align="left" valign="top">
378 <tbody>
379 <tr>
380 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
381 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
382 </td>
383 </tr>
384 <tr>
385 <td><p><span class="term"><em class="parameter"><code>sibling</code></em> :</span></p></td>
386 <td>the child of <em class="parameter"><code>grid</code></em> that the new row or column will be
387 placed next to</td>
388 </tr>
389 <tr>
390 <td><p><span class="term"><em class="parameter"><code>side</code></em> :</span></p></td>
391 <td>the side of <em class="parameter"><code>sibling</code></em> that <em class="parameter"><code>child</code></em> is positioned next to</td>
392 </tr>
393 </tbody>
394 </table></div>
395 <p class="since">Since 3.2</p>
396 </div>
397 <hr>
398 <div class="refsect2">
399 <a name="gtk-grid-set-row-homogeneous"></a><h3>gtk_grid_set_row_homogeneous ()</h3>
400 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_set_row_homogeneous        (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
401                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);</pre>
402 <p>
403 Sets whether all rows of <em class="parameter"><code>grid</code></em> will have the same height.
404 </p>
405 <div class="variablelist"><table border="0">
406 <col align="left" valign="top">
407 <tbody>
408 <tr>
409 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
410 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
411 </td>
412 </tr>
413 <tr>
414 <td><p><span class="term"><em class="parameter"><code>homogeneous</code></em> :</span></p></td>
415 <td>
416 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make rows homogeneous</td>
417 </tr>
418 </tbody>
419 </table></div>
420 </div>
421 <hr>
422 <div class="refsect2">
423 <a name="gtk-grid-get-row-homogeneous"></a><h3>gtk_grid_get_row_homogeneous ()</h3>
424 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_grid_get_row_homogeneous        (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
425 <p>
426 Returns whether all rows of <em class="parameter"><code>grid</code></em> have the same height.
427 </p>
428 <div class="variablelist"><table border="0">
429 <col align="left" valign="top">
430 <tbody>
431 <tr>
432 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
433 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
434 </td>
435 </tr>
436 <tr>
437 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
438 <td>whether all rows of <em class="parameter"><code>grid</code></em> have the same height.</td>
439 </tr>
440 </tbody>
441 </table></div>
442 </div>
443 <hr>
444 <div class="refsect2">
445 <a name="gtk-grid-set-row-spacing"></a><h3>gtk_grid_set_row_spacing ()</h3>
446 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_set_row_spacing            (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
447                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);</pre>
448 <p>
449 Sets the amount of space between rows of <em class="parameter"><code>grid</code></em>.
450 </p>
451 <div class="variablelist"><table border="0">
452 <col align="left" valign="top">
453 <tbody>
454 <tr>
455 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
456 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
457 </td>
458 </tr>
459 <tr>
460 <td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
461 <td>the amount of space to insert between rows</td>
462 </tr>
463 </tbody>
464 </table></div>
465 </div>
466 <hr>
467 <div class="refsect2">
468 <a name="gtk-grid-get-row-spacing"></a><h3>gtk_grid_get_row_spacing ()</h3>
469 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               gtk_grid_get_row_spacing            (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
470 <p>
471 Returns the amount of space between the rows of <em class="parameter"><code>grid</code></em>.
472 </p>
473 <div class="variablelist"><table border="0">
474 <col align="left" valign="top">
475 <tbody>
476 <tr>
477 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
478 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
479 </td>
480 </tr>
481 <tr>
482 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
483 <td>the row spacing of <em class="parameter"><code>grid</code></em>
484 </td>
485 </tr>
486 </tbody>
487 </table></div>
488 </div>
489 <hr>
490 <div class="refsect2">
491 <a name="gtk-grid-set-column-homogeneous"></a><h3>gtk_grid_set_column_homogeneous ()</h3>
492 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_set_column_homogeneous     (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
493                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);</pre>
494 <p>
495 Sets whether all columns of <em class="parameter"><code>grid</code></em> will have the same width.
496 </p>
497 <div class="variablelist"><table border="0">
498 <col align="left" valign="top">
499 <tbody>
500 <tr>
501 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
502 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
503 </td>
504 </tr>
505 <tr>
506 <td><p><span class="term"><em class="parameter"><code>homogeneous</code></em> :</span></p></td>
507 <td>
508 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make columns homogeneous</td>
509 </tr>
510 </tbody>
511 </table></div>
512 </div>
513 <hr>
514 <div class="refsect2">
515 <a name="gtk-grid-get-column-homogeneous"></a><h3>gtk_grid_get_column_homogeneous ()</h3>
516 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_grid_get_column_homogeneous     (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
517 <p>
518 Returns whether all columns of <em class="parameter"><code>grid</code></em> have the same width.
519 </p>
520 <div class="variablelist"><table border="0">
521 <col align="left" valign="top">
522 <tbody>
523 <tr>
524 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
525 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
526 </td>
527 </tr>
528 <tr>
529 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
530 <td>whether all columns of <em class="parameter"><code>grid</code></em> have the same width.</td>
531 </tr>
532 </tbody>
533 </table></div>
534 </div>
535 <hr>
536 <div class="refsect2">
537 <a name="gtk-grid-set-column-spacing"></a><h3>gtk_grid_set_column_spacing ()</h3>
538 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_set_column_spacing         (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
539                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);</pre>
540 <p>
541 Sets the amount of space between columns of <em class="parameter"><code>grid</code></em>.
542 </p>
543 <div class="variablelist"><table border="0">
544 <col align="left" valign="top">
545 <tbody>
546 <tr>
547 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
548 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
549 </td>
550 </tr>
551 <tr>
552 <td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
553 <td>the amount of space to insert between columns</td>
554 </tr>
555 </tbody>
556 </table></div>
557 </div>
558 <hr>
559 <div class="refsect2">
560 <a name="gtk-grid-get-column-spacing"></a><h3>gtk_grid_get_column_spacing ()</h3>
561 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               gtk_grid_get_column_spacing         (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
562 <p>
563 Returns the amount of space between the columns of <em class="parameter"><code>grid</code></em>.
564 </p>
565 <div class="variablelist"><table border="0">
566 <col align="left" valign="top">
567 <tbody>
568 <tr>
569 <td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
570 <td>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>
571 </td>
572 </tr>
573 <tr>
574 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
575 <td>the column spacing of <em class="parameter"><code>grid</code></em>
576 </td>
577 </tr>
578 </tbody>
579 </table></div>
580 </div>
581 </div>
582 <div class="refsect1">
583 <a name="GtkGrid.property-details"></a><h2>Property Details</h2>
584 <div class="refsect2">
585 <a name="GtkGrid--column-homogeneous"></a><h3>The <code class="literal">"column-homogeneous"</code> property</h3>
586 <pre class="programlisting">  "column-homogeneous"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
587 <p>If TRUE, the columns are all the same width.</p>
588 <p>Default value: FALSE</p>
589 </div>
590 <hr>
591 <div class="refsect2">
592 <a name="GtkGrid--column-spacing"></a><h3>The <code class="literal">"column-spacing"</code> property</h3>
593 <pre class="programlisting">  "column-spacing"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
594 <p>The amount of space between two consecutive columns.</p>
595 <p>Allowed values: [0,32767]</p>
596 <p>Default value: 0</p>
597 </div>
598 <hr>
599 <div class="refsect2">
600 <a name="GtkGrid--row-homogeneous"></a><h3>The <code class="literal">"row-homogeneous"</code> property</h3>
601 <pre class="programlisting">  "row-homogeneous"          <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
602 <p>If TRUE, the rows are all the same height.</p>
603 <p>Default value: FALSE</p>
604 </div>
605 <hr>
606 <div class="refsect2">
607 <a name="GtkGrid--row-spacing"></a><h3>The <code class="literal">"row-spacing"</code> property</h3>
608 <pre class="programlisting">  "row-spacing"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
609 <p>The amount of space between two consecutive rows.</p>
610 <p>Allowed values: [0,32767]</p>
611 <p>Default value: 0</p>
612 </div>
613 </div>
614 <div class="refsect1">
615 <a name="GtkGrid.child-property-details"></a><h2>Child Property Details</h2>
616 <div class="refsect2">
617 <a name="GtkGrid--c-height"></a><h3>The <code class="literal">"height"</code> child property</h3>
618 <pre class="programlisting">  "height"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
619 <p>The number of rows that a child spans.</p>
620 <p>Allowed values: &gt;= 1</p>
621 <p>Default value: 1</p>
622 </div>
623 <hr>
624 <div class="refsect2">
625 <a name="GtkGrid--c-left-attach"></a><h3>The <code class="literal">"left-attach"</code> child property</h3>
626 <pre class="programlisting">  "left-attach"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
627 <p>The column number to attach the left side of the child to.</p>
628 <p>Default value: 0</p>
629 </div>
630 <hr>
631 <div class="refsect2">
632 <a name="GtkGrid--c-top-attach"></a><h3>The <code class="literal">"top-attach"</code> child property</h3>
633 <pre class="programlisting">  "top-attach"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
634 <p>The row number to attach the top side of a child widget to.</p>
635 <p>Default value: 0</p>
636 </div>
637 <hr>
638 <div class="refsect2">
639 <a name="GtkGrid--c-width"></a><h3>The <code class="literal">"width"</code> child property</h3>
640 <pre class="programlisting">  "width"                    <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
641 <p>The number of columns that a child spans.</p>
642 <p>Allowed values: &gt;= 1</p>
643 <p>Default value: 1</p>
644 </div>
645 </div>
646 <div class="refsect1">
647 <a name="GtkGrid.see-also"></a><h2>See Also</h2>
648 <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>, <a class="link" href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a>, <a class="link" href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a>
649 </div>
650 </div>
651 <div class="footer">
652 <hr>
653           Generated by GTK-Doc V1.18</div>
654 </body>
655 </html>