~inkscape.dev/inkscape-devlibs/devlibs-gtk3

« back to all changes in this revision

Viewing changes to share/gtk-doc/html/gtk2/GtkTable.html

  • Committer: JazzyNico
  • Date: 2013-01-21 10:11:05 UTC
  • Revision ID: nicoduf@yahoo.fr-20130121101105-i8d8slkq9ng4olx8
Adding gtk2 libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>GtkTable</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
 
7
<link rel="home" href="index.html" title="GTK+ 2 Reference Manual">
 
8
<link rel="up" href="LayoutContainers.html" title="Layout Containers">
 
9
<link rel="prev" href="GtkNotebook.html" title="GtkNotebook">
 
10
<link rel="next" href="GtkExpander.html" title="GtkExpander">
 
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="GtkNotebook.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+ 2 Reference Manual</th>
 
21
<td><a accesskey="n" href="GtkExpander.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="#GtkTable.synopsis" class="shortcut">Top</a>
 
25
                   | 
 
26
                  <a href="#GtkTable.description" class="shortcut">Description</a>
 
27
                   | 
 
28
                  <a href="#GtkTable.object-hierarchy" class="shortcut">Object Hierarchy</a>
 
29
                   | 
 
30
                  <a href="#GtkTable.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
 
31
                   | 
 
32
                  <a href="#GtkTable.properties" class="shortcut">Properties</a>
 
33
                   | 
 
34
                  <a href="#GtkTable.child-properties" class="shortcut">Child Properties</a>
 
35
</td></tr>
 
36
</table>
 
37
<div class="refentry">
 
38
<a name="GtkTable"></a><div class="titlepage"></div>
 
39
<div class="refnamediv"><table width="100%"><tr>
 
40
<td valign="top">
 
41
<h2><span class="refentrytitle"><a name="GtkTable.top_of_page"></a>GtkTable</span></h2>
 
42
<p>GtkTable — Pack widgets in regular patterns</p>
 
43
</td>
 
44
<td valign="top" align="right"></td>
 
45
</tr></table></div>
 
46
<div class="refsynopsisdiv">
 
47
<a name="GtkTable.synopsis"></a><h2>Synopsis</h2>
 
48
<pre class="synopsis">
 
49
#include &lt;gtk/gtk.h&gt;
 
50
 
 
51
struct              <a class="link" href="GtkTable.html#GtkTable-struct" title="struct GtkTable">GtkTable</a>;
 
52
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkTable.html#gtk-table-new" title="gtk_table_new ()">gtk_table_new</a>                       (<em class="parameter"><code><span class="type">guint</span> rows</code></em>,
 
53
                                                         <em class="parameter"><code><span class="type">guint</span> columns</code></em>,
 
54
                                                         <em class="parameter"><code><span class="type">gboolean</span> homogeneous</code></em>);
 
55
<span class="returnvalue">void</span>                <a class="link" href="GtkTable.html#gtk-table-resize" title="gtk_table_resize ()">gtk_table_resize</a>                    (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
56
                                                         <em class="parameter"><code><span class="type">guint</span> rows</code></em>,
 
57
                                                         <em class="parameter"><code><span class="type">guint</span> columns</code></em>);
 
58
<span class="returnvalue">void</span>                <a class="link" href="GtkTable.html#gtk-table-attach" title="gtk_table_attach ()">gtk_table_attach</a>                    (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
59
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
 
60
                                                         <em class="parameter"><code><span class="type">guint</span> left_attach</code></em>,
 
61
                                                         <em class="parameter"><code><span class="type">guint</span> right_attach</code></em>,
 
62
                                                         <em class="parameter"><code><span class="type">guint</span> top_attach</code></em>,
 
63
                                                         <em class="parameter"><code><span class="type">guint</span> bottom_attach</code></em>,
 
64
                                                         <em class="parameter"><code><a class="link" href="gtk2-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> xoptions</code></em>,
 
65
                                                         <em class="parameter"><code><a class="link" href="gtk2-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> yoptions</code></em>,
 
66
                                                         <em class="parameter"><code><span class="type">guint</span> xpadding</code></em>,
 
67
                                                         <em class="parameter"><code><span class="type">guint</span> ypadding</code></em>);
 
68
<span class="returnvalue">void</span>                <a class="link" href="GtkTable.html#gtk-table-attach-defaults" title="gtk_table_attach_defaults ()">gtk_table_attach_defaults</a>           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
69
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
 
70
                                                         <em class="parameter"><code><span class="type">guint</span> left_attach</code></em>,
 
71
                                                         <em class="parameter"><code><span class="type">guint</span> right_attach</code></em>,
 
72
                                                         <em class="parameter"><code><span class="type">guint</span> top_attach</code></em>,
 
73
                                                         <em class="parameter"><code><span class="type">guint</span> bottom_attach</code></em>);
 
74
<span class="returnvalue">void</span>                <a class="link" href="GtkTable.html#gtk-table-set-row-spacing" title="gtk_table_set_row_spacing ()">gtk_table_set_row_spacing</a>           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
75
                                                         <em class="parameter"><code><span class="type">guint</span> row</code></em>,
 
76
                                                         <em class="parameter"><code><span class="type">guint</span> spacing</code></em>);
 
77
<span class="returnvalue">void</span>                <a class="link" href="GtkTable.html#gtk-table-set-col-spacing" title="gtk_table_set_col_spacing ()">gtk_table_set_col_spacing</a>           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
78
                                                         <em class="parameter"><code><span class="type">guint</span> column</code></em>,
 
79
                                                         <em class="parameter"><code><span class="type">guint</span> spacing</code></em>);
 
80
<span class="returnvalue">void</span>                <a class="link" href="GtkTable.html#gtk-table-set-row-spacings" title="gtk_table_set_row_spacings ()">gtk_table_set_row_spacings</a>          (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
81
                                                         <em class="parameter"><code><span class="type">guint</span> spacing</code></em>);
 
82
<span class="returnvalue">void</span>                <a class="link" href="GtkTable.html#gtk-table-set-col-spacings" title="gtk_table_set_col_spacings ()">gtk_table_set_col_spacings</a>          (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
83
                                                         <em class="parameter"><code><span class="type">guint</span> spacing</code></em>);
 
84
<span class="returnvalue">void</span>                <a class="link" href="GtkTable.html#gtk-table-set-homogeneous" title="gtk_table_set_homogeneous ()">gtk_table_set_homogeneous</a>           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
85
                                                         <em class="parameter"><code><span class="type">gboolean</span> homogeneous</code></em>);
 
86
<span class="returnvalue">guint</span>               <a class="link" href="GtkTable.html#gtk-table-get-default-row-spacing" title="gtk_table_get_default_row_spacing ()">gtk_table_get_default_row_spacing</a>   (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>);
 
87
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkTable.html#gtk-table-get-homogeneous" title="gtk_table_get_homogeneous ()">gtk_table_get_homogeneous</a>           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>);
 
88
<span class="returnvalue">guint</span>               <a class="link" href="GtkTable.html#gtk-table-get-row-spacing" title="gtk_table_get_row_spacing ()">gtk_table_get_row_spacing</a>           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
89
                                                         <em class="parameter"><code><span class="type">guint</span> row</code></em>);
 
90
<span class="returnvalue">guint</span>               <a class="link" href="GtkTable.html#gtk-table-get-col-spacing" title="gtk_table_get_col_spacing ()">gtk_table_get_col_spacing</a>           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
91
                                                         <em class="parameter"><code><span class="type">guint</span> column</code></em>);
 
92
<span class="returnvalue">guint</span>               <a class="link" href="GtkTable.html#gtk-table-get-default-col-spacing" title="gtk_table_get_default_col_spacing ()">gtk_table_get_default_col_spacing</a>   (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>);
 
93
<span class="returnvalue">void</span>                <a class="link" href="GtkTable.html#gtk-table-get-size" title="gtk_table_get_size ()">gtk_table_get_size</a>                  (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
94
                                                         <em class="parameter"><code><span class="type">guint</span> *rows</code></em>,
 
95
                                                         <em class="parameter"><code><span class="type">guint</span> *columns</code></em>);
 
96
</pre>
 
97
</div>
 
98
<div class="refsect1">
 
99
<a name="GtkTable.object-hierarchy"></a><h2>Object Hierarchy</h2>
 
100
<pre class="synopsis">
 
101
  GObject
 
102
   +----GInitiallyUnowned
 
103
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
 
104
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
 
105
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
 
106
                           +----GtkTable
 
107
</pre>
 
108
</div>
 
109
<div class="refsect1">
 
110
<a name="GtkTable.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
 
111
<p>
 
112
GtkTable implements
 
113
 AtkImplementorIface and  <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>.</p>
 
114
</div>
 
115
<div class="refsect1">
 
116
<a name="GtkTable.properties"></a><h2>Properties</h2>
 
117
<pre class="synopsis">
 
118
  "<a class="link" href="GtkTable.html#GtkTable--column-spacing" title='The "column-spacing" property'>column-spacing</a>"           <span class="type">guint</span>                 : Read / Write
 
119
  "<a class="link" href="GtkTable.html#GtkTable--homogeneous" title='The "homogeneous" property'>homogeneous</a>"              <span class="type">gboolean</span>              : Read / Write
 
120
  "<a class="link" href="GtkTable.html#GtkTable--n-columns" title='The "n-columns" property'>n-columns</a>"                <span class="type">guint</span>                 : Read / Write
 
121
  "<a class="link" href="GtkTable.html#GtkTable--n-rows" title='The "n-rows" property'>n-rows</a>"                   <span class="type">guint</span>                 : Read / Write
 
122
  "<a class="link" href="GtkTable.html#GtkTable--row-spacing" title='The "row-spacing" property'>row-spacing</a>"              <span class="type">guint</span>                 : Read / Write
 
123
</pre>
 
124
</div>
 
125
<div class="refsect1">
 
126
<a name="GtkTable.child-properties"></a><h2>Child Properties</h2>
 
127
<pre class="synopsis">
 
128
  "<a class="link" href="GtkTable.html#GtkTable--c-bottom-attach" title='The "bottom-attach" child property'>bottom-attach</a>"            <span class="type">guint</span>                 : Read / Write
 
129
  "<a class="link" href="GtkTable.html#GtkTable--c-left-attach" title='The "left-attach" child property'>left-attach</a>"              <span class="type">guint</span>                 : Read / Write
 
130
  "<a class="link" href="GtkTable.html#GtkTable--c-right-attach" title='The "right-attach" child property'>right-attach</a>"             <span class="type">guint</span>                 : Read / Write
 
131
  "<a class="link" href="GtkTable.html#GtkTable--c-top-attach" title='The "top-attach" child property'>top-attach</a>"               <span class="type">guint</span>                 : Read / Write
 
132
  "<a class="link" href="GtkTable.html#GtkTable--c-x-options" title='The "x-options" child property'>x-options</a>"                <a class="link" href="gtk2-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a>      : Read / Write
 
133
  "<a class="link" href="GtkTable.html#GtkTable--c-x-padding" title='The "x-padding" child property'>x-padding</a>"                <span class="type">guint</span>                 : Read / Write
 
134
  "<a class="link" href="GtkTable.html#GtkTable--c-y-options" title='The "y-options" child property'>y-options</a>"                <a class="link" href="gtk2-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a>      : Read / Write
 
135
  "<a class="link" href="GtkTable.html#GtkTable--c-y-padding" title='The "y-padding" child property'>y-padding</a>"                <span class="type">guint</span>                 : Read / Write
 
136
</pre>
 
137
</div>
 
138
<div class="refsect1">
 
139
<a name="GtkTable.description"></a><h2>Description</h2>
 
140
<p>
 
141
The <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> functions allow the programmer to arrange widgets in rows and
 
142
columns, making it easy to align many widgets next to each other,
 
143
horizontally and vertically.
 
144
</p>
 
145
<p>
 
146
Tables are created with a call to <a class="link" href="GtkTable.html#gtk-table-new" title="gtk_table_new ()"><code class="function">gtk_table_new()</code></a>, the size of which can
 
147
later be changed with <a class="link" href="GtkTable.html#gtk-table-resize" title="gtk_table_resize ()"><code class="function">gtk_table_resize()</code></a>.
 
148
</p>
 
149
<p>
 
150
Widgets can be added to a table using <a class="link" href="GtkTable.html#gtk-table-attach" title="gtk_table_attach ()"><code class="function">gtk_table_attach()</code></a> or the more
 
151
convenient (but slightly less flexible) <a class="link" href="GtkTable.html#gtk-table-attach-defaults" title="gtk_table_attach_defaults ()"><code class="function">gtk_table_attach_defaults()</code></a>.
 
152
</p>
 
153
<p>
 
154
To alter the space next to a specific row, use <a class="link" href="GtkTable.html#gtk-table-set-row-spacing" title="gtk_table_set_row_spacing ()"><code class="function">gtk_table_set_row_spacing()</code></a>,
 
155
and for a column, <a class="link" href="GtkTable.html#gtk-table-set-col-spacing" title="gtk_table_set_col_spacing ()"><code class="function">gtk_table_set_col_spacing()</code></a>.</p>
 
156
<p>
 
157
The gaps between <span class="emphasis"><em>all</em></span> rows or columns can be changed by calling
 
158
<a class="link" href="GtkTable.html#gtk-table-set-row-spacings" title="gtk_table_set_row_spacings ()"><code class="function">gtk_table_set_row_spacings()</code></a> or <a class="link" href="GtkTable.html#gtk-table-set-col-spacings" title="gtk_table_set_col_spacings ()"><code class="function">gtk_table_set_col_spacings()</code></a> respectively.
 
159
</p>
 
160
<p>
 
161
<a class="link" href="GtkTable.html#gtk-table-set-homogeneous" title="gtk_table_set_homogeneous ()"><code class="function">gtk_table_set_homogeneous()</code></a>, can be used to set whether all cells in the
 
162
table will resize themselves to the size of the largest widget in the table.
 
163
</p>
 
164
</div>
 
165
<div class="refsect1">
 
166
<a name="GtkTable.details"></a><h2>Details</h2>
 
167
<div class="refsect2">
 
168
<a name="GtkTable-struct"></a><h3>struct GtkTable</h3>
 
169
<pre class="programlisting">struct GtkTable;</pre>
 
170
<p>
 
171
The <span class="structname">GtkTable</span> structure holds the data for the actual table itself.
 
172
<em class="structfield"><code>children</code></em> is a <span class="type">GList</span> of all the widgets the table contains. <em class="structfield"><code>rows</code></em> and <em class="structfield"><code>columns</code></em> are pointers to <span class="type">GtkTableRowCol</span> structures, which contain the default spacing and expansion details for the <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>'s rows and columns, respectively.
 
173
</p>
 
174
<p>
 
175
<em class="structfield"><code>nrows</code></em> and <em class="structfield"><code>ncols</code></em> are 16bit integers storing the number of rows and columns the table has.
 
176
</p>
 
177
</div>
 
178
<hr>
 
179
<div class="refsect2">
 
180
<a name="gtk-table-new"></a><h3>gtk_table_new ()</h3>
 
181
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_table_new                       (<em class="parameter"><code><span class="type">guint</span> rows</code></em>,
 
182
                                                         <em class="parameter"><code><span class="type">guint</span> columns</code></em>,
 
183
                                                         <em class="parameter"><code><span class="type">gboolean</span> homogeneous</code></em>);</pre>
 
184
<p>
 
185
Used to create a new table widget. An initial size must be given by
 
186
specifying how many rows and columns the table should have, although
 
187
this can be changed later with <a class="link" href="GtkTable.html#gtk-table-resize" title="gtk_table_resize ()"><code class="function">gtk_table_resize()</code></a>.  <em class="parameter"><code>rows</code></em> and <em class="parameter"><code>columns</code></em>
 
188
must both be in the range 1 .. 65535. For historical reasons, 0 is accepted
 
189
as well and is silently interpreted as 1.
 
190
</p>
 
191
<div class="variablelist"><table border="0" class="variablelist">
 
192
<colgroup>
 
193
<col align="left" valign="top">
 
194
<col>
 
195
</colgroup>
 
196
<tbody>
 
197
<tr>
 
198
<td><p><span class="term"><em class="parameter"><code>rows</code></em> :</span></p></td>
 
199
<td>The number of rows the new table should have.</td>
 
200
</tr>
 
201
<tr>
 
202
<td><p><span class="term"><em class="parameter"><code>columns</code></em> :</span></p></td>
 
203
<td>The number of columns the new table should have.</td>
 
204
</tr>
 
205
<tr>
 
206
<td><p><span class="term"><em class="parameter"><code>homogeneous</code></em> :</span></p></td>
 
207
<td>If set to <code class="literal">TRUE</code>, all table cells are resized to the size of the cell
 
208
containing the largest widget.</td>
 
209
</tr>
 
210
<tr>
 
211
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
212
<td>A pointer to the the newly created table widget.</td>
 
213
</tr>
 
214
</tbody>
 
215
</table></div>
 
216
</div>
 
217
<hr>
 
218
<div class="refsect2">
 
219
<a name="gtk-table-resize"></a><h3>gtk_table_resize ()</h3>
 
220
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_table_resize                    (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
221
                                                         <em class="parameter"><code><span class="type">guint</span> rows</code></em>,
 
222
                                                         <em class="parameter"><code><span class="type">guint</span> columns</code></em>);</pre>
 
223
<p>
 
224
If you need to change a table's size <span class="emphasis"><em>after</em></span> it has been created, this function allows you to do so.
 
225
</p>
 
226
<div class="variablelist"><table border="0" class="variablelist">
 
227
<colgroup>
 
228
<col align="left" valign="top">
 
229
<col>
 
230
</colgroup>
 
231
<tbody>
 
232
<tr>
 
233
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
234
<td>The <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> you wish to change the size of.</td>
 
235
</tr>
 
236
<tr>
 
237
<td><p><span class="term"><em class="parameter"><code>rows</code></em> :</span></p></td>
 
238
<td>The new number of rows.</td>
 
239
</tr>
 
240
<tr>
 
241
<td><p><span class="term"><em class="parameter"><code>columns</code></em> :</span></p></td>
 
242
<td>The new number of columns.</td>
 
243
</tr>
 
244
</tbody>
 
245
</table></div>
 
246
</div>
 
247
<hr>
 
248
<div class="refsect2">
 
249
<a name="gtk-table-attach"></a><h3>gtk_table_attach ()</h3>
 
250
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_table_attach                    (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
251
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
 
252
                                                         <em class="parameter"><code><span class="type">guint</span> left_attach</code></em>,
 
253
                                                         <em class="parameter"><code><span class="type">guint</span> right_attach</code></em>,
 
254
                                                         <em class="parameter"><code><span class="type">guint</span> top_attach</code></em>,
 
255
                                                         <em class="parameter"><code><span class="type">guint</span> bottom_attach</code></em>,
 
256
                                                         <em class="parameter"><code><a class="link" href="gtk2-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> xoptions</code></em>,
 
257
                                                         <em class="parameter"><code><a class="link" href="gtk2-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> yoptions</code></em>,
 
258
                                                         <em class="parameter"><code><span class="type">guint</span> xpadding</code></em>,
 
259
                                                         <em class="parameter"><code><span class="type">guint</span> ypadding</code></em>);</pre>
 
260
<p>
 
261
Adds a widget to a table. The number of 'cells' that a widget will occupy is
 
262
specified by <em class="parameter"><code>left_attach</code></em>, <em class="parameter"><code>right_attach</code></em>, <em class="parameter"><code>top_attach</code></em> and <em class="parameter"><code>bottom_attach</code></em>.
 
263
These each represent the leftmost, rightmost, uppermost and lowest column
 
264
and row numbers of the table. (Columns and rows are indexed from zero).
 
265
</p>
 
266
<div class="variablelist"><table border="0" class="variablelist">
 
267
<colgroup>
 
268
<col align="left" valign="top">
 
269
<col>
 
270
</colgroup>
 
271
<tbody>
 
272
<tr>
 
273
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
274
<td>The <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> to add a new widget to.</td>
 
275
</tr>
 
276
<tr>
 
277
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
 
278
<td>The widget to add.</td>
 
279
</tr>
 
280
<tr>
 
281
<td><p><span class="term"><em class="parameter"><code>left_attach</code></em> :</span></p></td>
 
282
<td>the column number to attach the left side of a child widget to.</td>
 
283
</tr>
 
284
<tr>
 
285
<td><p><span class="term"><em class="parameter"><code>right_attach</code></em> :</span></p></td>
 
286
<td>the column number to attach the right side of a child widget to.</td>
 
287
</tr>
 
288
<tr>
 
289
<td><p><span class="term"><em class="parameter"><code>top_attach</code></em> :</span></p></td>
 
290
<td>the row number to attach the top of a child widget to.</td>
 
291
</tr>
 
292
<tr>
 
293
<td><p><span class="term"><em class="parameter"><code>bottom_attach</code></em> :</span></p></td>
 
294
<td>the row number to attach the bottom of a child widget to.</td>
 
295
</tr>
 
296
<tr>
 
297
<td><p><span class="term"><em class="parameter"><code>xoptions</code></em> :</span></p></td>
 
298
<td>Used to specify the properties of the child widget when the table is resized.</td>
 
299
</tr>
 
300
<tr>
 
301
<td><p><span class="term"><em class="parameter"><code>yoptions</code></em> :</span></p></td>
 
302
<td>The same as xoptions, except this field determines behaviour of vertical resizing.</td>
 
303
</tr>
 
304
<tr>
 
305
<td><p><span class="term"><em class="parameter"><code>xpadding</code></em> :</span></p></td>
 
306
<td>An integer value specifying the padding on the left and right of the widget being added to the table.</td>
 
307
</tr>
 
308
<tr>
 
309
<td><p><span class="term"><em class="parameter"><code>ypadding</code></em> :</span></p></td>
 
310
<td>The amount of padding above and below the child widget.</td>
 
311
</tr>
 
312
</tbody>
 
313
</table></div>
 
314
</div>
 
315
<hr>
 
316
<div class="refsect2">
 
317
<a name="gtk-table-attach-defaults"></a><h3>gtk_table_attach_defaults ()</h3>
 
318
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_table_attach_defaults           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
319
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
 
320
                                                         <em class="parameter"><code><span class="type">guint</span> left_attach</code></em>,
 
321
                                                         <em class="parameter"><code><span class="type">guint</span> right_attach</code></em>,
 
322
                                                         <em class="parameter"><code><span class="type">guint</span> top_attach</code></em>,
 
323
                                                         <em class="parameter"><code><span class="type">guint</span> bottom_attach</code></em>);</pre>
 
324
<p>
 
325
As there are many options associated with <a class="link" href="GtkTable.html#gtk-table-attach" title="gtk_table_attach ()"><code class="function">gtk_table_attach()</code></a>, this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options. The values used for the <a class="link" href="gtk2-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> are <code class="literal">GTK_EXPAND | GTK_FILL</code>, and the padding is set to 0.
 
326
</p>
 
327
<div class="variablelist"><table border="0" class="variablelist">
 
328
<colgroup>
 
329
<col align="left" valign="top">
 
330
<col>
 
331
</colgroup>
 
332
<tbody>
 
333
<tr>
 
334
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
335
<td>The table to add a new child widget to.</td>
 
336
</tr>
 
337
<tr>
 
338
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
 
339
<td>The child widget to add.</td>
 
340
</tr>
 
341
<tr>
 
342
<td><p><span class="term"><em class="parameter"><code>left_attach</code></em> :</span></p></td>
 
343
<td>The column number to attach the left side of the child widget to.</td>
 
344
</tr>
 
345
<tr>
 
346
<td><p><span class="term"><em class="parameter"><code>right_attach</code></em> :</span></p></td>
 
347
<td>The column number to attach the right side of the child widget to.</td>
 
348
</tr>
 
349
<tr>
 
350
<td><p><span class="term"><em class="parameter"><code>top_attach</code></em> :</span></p></td>
 
351
<td>The row number to attach the top of the child widget to.</td>
 
352
</tr>
 
353
<tr>
 
354
<td><p><span class="term"><em class="parameter"><code>bottom_attach</code></em> :</span></p></td>
 
355
<td>The row number to attach the bottom of the child widget to.</td>
 
356
</tr>
 
357
</tbody>
 
358
</table></div>
 
359
</div>
 
360
<hr>
 
361
<div class="refsect2">
 
362
<a name="gtk-table-set-row-spacing"></a><h3>gtk_table_set_row_spacing ()</h3>
 
363
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_table_set_row_spacing           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
364
                                                         <em class="parameter"><code><span class="type">guint</span> row</code></em>,
 
365
                                                         <em class="parameter"><code><span class="type">guint</span> spacing</code></em>);</pre>
 
366
<p>
 
367
Changes the space between a given table row and the subsequent row.
 
368
</p>
 
369
<div class="variablelist"><table border="0" class="variablelist">
 
370
<colgroup>
 
371
<col align="left" valign="top">
 
372
<col>
 
373
</colgroup>
 
374
<tbody>
 
375
<tr>
 
376
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
377
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> containing the row whose properties you wish to change.</td>
 
378
</tr>
 
379
<tr>
 
380
<td><p><span class="term"><em class="parameter"><code>row</code></em> :</span></p></td>
 
381
<td>row number whose spacing will be changed.</td>
 
382
</tr>
 
383
<tr>
 
384
<td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
 
385
<td>number of pixels that the spacing should take up.</td>
 
386
</tr>
 
387
</tbody>
 
388
</table></div>
 
389
</div>
 
390
<hr>
 
391
<div class="refsect2">
 
392
<a name="gtk-table-set-col-spacing"></a><h3>gtk_table_set_col_spacing ()</h3>
 
393
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_table_set_col_spacing           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
394
                                                         <em class="parameter"><code><span class="type">guint</span> column</code></em>,
 
395
                                                         <em class="parameter"><code><span class="type">guint</span> spacing</code></em>);</pre>
 
396
<p>
 
397
Alters the amount of space between a given table column and the following
 
398
column.
 
399
</p>
 
400
<div class="variablelist"><table border="0" class="variablelist">
 
401
<colgroup>
 
402
<col align="left" valign="top">
 
403
<col>
 
404
</colgroup>
 
405
<tbody>
 
406
<tr>
 
407
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
408
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>.</td>
 
409
</tr>
 
410
<tr>
 
411
<td><p><span class="term"><em class="parameter"><code>column</code></em> :</span></p></td>
 
412
<td>the column whose spacing should be changed.</td>
 
413
</tr>
 
414
<tr>
 
415
<td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
 
416
<td>number of pixels that the spacing should take up.</td>
 
417
</tr>
 
418
</tbody>
 
419
</table></div>
 
420
</div>
 
421
<hr>
 
422
<div class="refsect2">
 
423
<a name="gtk-table-set-row-spacings"></a><h3>gtk_table_set_row_spacings ()</h3>
 
424
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_table_set_row_spacings          (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
425
                                                         <em class="parameter"><code><span class="type">guint</span> spacing</code></em>);</pre>
 
426
<p>
 
427
Sets the space between every row in <em class="parameter"><code>table</code></em> equal to <em class="parameter"><code>spacing</code></em>.
 
428
</p>
 
429
<div class="variablelist"><table border="0" class="variablelist">
 
430
<colgroup>
 
431
<col align="left" valign="top">
 
432
<col>
 
433
</colgroup>
 
434
<tbody>
 
435
<tr>
 
436
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
437
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>.</td>
 
438
</tr>
 
439
<tr>
 
440
<td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
 
441
<td>the number of pixels of space to place between every row in the table.</td>
 
442
</tr>
 
443
</tbody>
 
444
</table></div>
 
445
</div>
 
446
<hr>
 
447
<div class="refsect2">
 
448
<a name="gtk-table-set-col-spacings"></a><h3>gtk_table_set_col_spacings ()</h3>
 
449
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_table_set_col_spacings          (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
450
                                                         <em class="parameter"><code><span class="type">guint</span> spacing</code></em>);</pre>
 
451
<p>
 
452
Sets the space between every column in <em class="parameter"><code>table</code></em> equal to <em class="parameter"><code>spacing</code></em>.
 
453
</p>
 
454
<div class="variablelist"><table border="0" class="variablelist">
 
455
<colgroup>
 
456
<col align="left" valign="top">
 
457
<col>
 
458
</colgroup>
 
459
<tbody>
 
460
<tr>
 
461
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
462
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>.</td>
 
463
</tr>
 
464
<tr>
 
465
<td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
 
466
<td>the number of pixels of space to place between every column in the table.</td>
 
467
</tr>
 
468
</tbody>
 
469
</table></div>
 
470
</div>
 
471
<hr>
 
472
<div class="refsect2">
 
473
<a name="gtk-table-set-homogeneous"></a><h3>gtk_table_set_homogeneous ()</h3>
 
474
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_table_set_homogeneous           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
475
                                                         <em class="parameter"><code><span class="type">gboolean</span> homogeneous</code></em>);</pre>
 
476
<p>
 
477
Changes the homogenous property of table cells, ie. whether all cells are an equal size or not.
 
478
</p>
 
479
<div class="variablelist"><table border="0" class="variablelist">
 
480
<colgroup>
 
481
<col align="left" valign="top">
 
482
<col>
 
483
</colgroup>
 
484
<tbody>
 
485
<tr>
 
486
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
487
<td>The <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> you wish to set the homogeneous properties of.</td>
 
488
</tr>
 
489
<tr>
 
490
<td><p><span class="term"><em class="parameter"><code>homogeneous</code></em> :</span></p></td>
 
491
<td>Set to <code class="literal">TRUE</code> to ensure all table cells are the same size. Set
 
492
to <code class="literal">FALSE</code> if this is not your desired behaviour.</td>
 
493
</tr>
 
494
</tbody>
 
495
</table></div>
 
496
</div>
 
497
<hr>
 
498
<div class="refsect2">
 
499
<a name="gtk-table-get-default-row-spacing"></a><h3>gtk_table_get_default_row_spacing ()</h3>
 
500
<pre class="programlisting"><span class="returnvalue">guint</span>               gtk_table_get_default_row_spacing   (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>);</pre>
 
501
<p>
 
502
Gets the default row spacing for the table. This is
 
503
the spacing that will be used for newly added rows.
 
504
(See <a class="link" href="GtkTable.html#gtk-table-set-row-spacings" title="gtk_table_set_row_spacings ()"><code class="function">gtk_table_set_row_spacings()</code></a>)
 
505
</p>
 
506
<div class="variablelist"><table border="0" class="variablelist">
 
507
<colgroup>
 
508
<col align="left" valign="top">
 
509
<col>
 
510
</colgroup>
 
511
<tbody>
 
512
<tr>
 
513
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
514
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>
 
515
</td>
 
516
</tr>
 
517
<tr>
 
518
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
519
<td>the default row spacing</td>
 
520
</tr>
 
521
</tbody>
 
522
</table></div>
 
523
</div>
 
524
<hr>
 
525
<div class="refsect2">
 
526
<a name="gtk-table-get-homogeneous"></a><h3>gtk_table_get_homogeneous ()</h3>
 
527
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_table_get_homogeneous           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>);</pre>
 
528
<p>
 
529
Returns whether the table cells are all constrained to the same
 
530
width and height. (See <code class="function">gtk_table_set_homogenous()</code>)
 
531
</p>
 
532
<div class="variablelist"><table border="0" class="variablelist">
 
533
<colgroup>
 
534
<col align="left" valign="top">
 
535
<col>
 
536
</colgroup>
 
537
<tbody>
 
538
<tr>
 
539
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
540
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>
 
541
</td>
 
542
</tr>
 
543
<tr>
 
544
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
545
<td>
 
546
<code class="literal">TRUE</code> if the cells are all constrained to the same size</td>
 
547
</tr>
 
548
</tbody>
 
549
</table></div>
 
550
</div>
 
551
<hr>
 
552
<div class="refsect2">
 
553
<a name="gtk-table-get-row-spacing"></a><h3>gtk_table_get_row_spacing ()</h3>
 
554
<pre class="programlisting"><span class="returnvalue">guint</span>               gtk_table_get_row_spacing           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
555
                                                         <em class="parameter"><code><span class="type">guint</span> row</code></em>);</pre>
 
556
<p>
 
557
Gets the amount of space between row <em class="parameter"><code>row</code></em>, and
 
558
row <em class="parameter"><code>row</code></em> + 1. See <a class="link" href="GtkTable.html#gtk-table-set-row-spacing" title="gtk_table_set_row_spacing ()"><code class="function">gtk_table_set_row_spacing()</code></a>.
 
559
</p>
 
560
<div class="variablelist"><table border="0" class="variablelist">
 
561
<colgroup>
 
562
<col align="left" valign="top">
 
563
<col>
 
564
</colgroup>
 
565
<tbody>
 
566
<tr>
 
567
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
568
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>
 
569
</td>
 
570
</tr>
 
571
<tr>
 
572
<td><p><span class="term"><em class="parameter"><code>row</code></em> :</span></p></td>
 
573
<td>a row in the table, 0 indicates the first row</td>
 
574
</tr>
 
575
<tr>
 
576
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
577
<td>the row spacing</td>
 
578
</tr>
 
579
</tbody>
 
580
</table></div>
 
581
</div>
 
582
<hr>
 
583
<div class="refsect2">
 
584
<a name="gtk-table-get-col-spacing"></a><h3>gtk_table_get_col_spacing ()</h3>
 
585
<pre class="programlisting"><span class="returnvalue">guint</span>               gtk_table_get_col_spacing           (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
586
                                                         <em class="parameter"><code><span class="type">guint</span> column</code></em>);</pre>
 
587
<p>
 
588
Gets the amount of space between column <em class="parameter"><code>col</code></em>, and
 
589
column <em class="parameter"><code>col</code></em> + 1. See <a class="link" href="GtkTable.html#gtk-table-set-col-spacing" title="gtk_table_set_col_spacing ()"><code class="function">gtk_table_set_col_spacing()</code></a>.
 
590
</p>
 
591
<div class="variablelist"><table border="0" class="variablelist">
 
592
<colgroup>
 
593
<col align="left" valign="top">
 
594
<col>
 
595
</colgroup>
 
596
<tbody>
 
597
<tr>
 
598
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
599
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>
 
600
</td>
 
601
</tr>
 
602
<tr>
 
603
<td><p><span class="term"><em class="parameter"><code>column</code></em> :</span></p></td>
 
604
<td>a column in the table, 0 indicates the first column</td>
 
605
</tr>
 
606
<tr>
 
607
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
608
<td>the column spacing</td>
 
609
</tr>
 
610
</tbody>
 
611
</table></div>
 
612
</div>
 
613
<hr>
 
614
<div class="refsect2">
 
615
<a name="gtk-table-get-default-col-spacing"></a><h3>gtk_table_get_default_col_spacing ()</h3>
 
616
<pre class="programlisting"><span class="returnvalue">guint</span>               gtk_table_get_default_col_spacing   (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>);</pre>
 
617
<p>
 
618
Gets the default column spacing for the table. This is
 
619
the spacing that will be used for newly added columns.
 
620
(See <a class="link" href="GtkTable.html#gtk-table-set-col-spacings" title="gtk_table_set_col_spacings ()"><code class="function">gtk_table_set_col_spacings()</code></a>)
 
621
</p>
 
622
<div class="variablelist"><table border="0" class="variablelist">
 
623
<colgroup>
 
624
<col align="left" valign="top">
 
625
<col>
 
626
</colgroup>
 
627
<tbody>
 
628
<tr>
 
629
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
630
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>
 
631
</td>
 
632
</tr>
 
633
<tr>
 
634
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
635
<td>the default column spacing</td>
 
636
</tr>
 
637
</tbody>
 
638
</table></div>
 
639
</div>
 
640
<hr>
 
641
<div class="refsect2">
 
642
<a name="gtk-table-get-size"></a><h3>gtk_table_get_size ()</h3>
 
643
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_table_get_size                  (<em class="parameter"><code><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> *table</code></em>,
 
644
                                                         <em class="parameter"><code><span class="type">guint</span> *rows</code></em>,
 
645
                                                         <em class="parameter"><code><span class="type">guint</span> *columns</code></em>);</pre>
 
646
<div class="variablelist"><table border="0" class="variablelist">
 
647
<colgroup>
 
648
<col align="left" valign="top">
 
649
<col>
 
650
</colgroup>
 
651
<tbody>
 
652
<tr>
 
653
<td><p><span class="term"><em class="parameter"><code>table</code></em> :</span></p></td>
 
654
<td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>
 
655
</td>
 
656
</tr>
 
657
<tr>
 
658
<td><p><span class="term"><em class="parameter"><code>rows</code></em> :</span></p></td>
 
659
<td>return location for the number of
 
660
rows, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
661
</td>
 
662
</tr>
 
663
<tr>
 
664
<td><p><span class="term"><em class="parameter"><code>columns</code></em> :</span></p></td>
 
665
<td>return location for the number
 
666
of columns, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
667
</td>
 
668
</tr>
 
669
</tbody>
 
670
</table></div>
 
671
<p class="since">Since 2.22</p>
 
672
</div>
 
673
</div>
 
674
<div class="refsect1">
 
675
<a name="GtkTable.property-details"></a><h2>Property Details</h2>
 
676
<div class="refsect2">
 
677
<a name="GtkTable--column-spacing"></a><h3>The <code class="literal">"column-spacing"</code> property</h3>
 
678
<pre class="programlisting">  "column-spacing"           <span class="type">guint</span>                 : Read / Write</pre>
 
679
<p>The amount of space between two consecutive columns.</p>
 
680
<p>Allowed values: &lt;= 65535</p>
 
681
<p>Default value: 0</p>
 
682
</div>
 
683
<hr>
 
684
<div class="refsect2">
 
685
<a name="GtkTable--homogeneous"></a><h3>The <code class="literal">"homogeneous"</code> property</h3>
 
686
<pre class="programlisting">  "homogeneous"              <span class="type">gboolean</span>              : Read / Write</pre>
 
687
<p>If TRUE, the table cells are all the same width/height.</p>
 
688
<p>Default value: FALSE</p>
 
689
</div>
 
690
<hr>
 
691
<div class="refsect2">
 
692
<a name="GtkTable--n-columns"></a><h3>The <code class="literal">"n-columns"</code> property</h3>
 
693
<pre class="programlisting">  "n-columns"                <span class="type">guint</span>                 : Read / Write</pre>
 
694
<p>The number of columns in the table.</p>
 
695
<p>Allowed values: [1,65535]</p>
 
696
<p>Default value: 1</p>
 
697
</div>
 
698
<hr>
 
699
<div class="refsect2">
 
700
<a name="GtkTable--n-rows"></a><h3>The <code class="literal">"n-rows"</code> property</h3>
 
701
<pre class="programlisting">  "n-rows"                   <span class="type">guint</span>                 : Read / Write</pre>
 
702
<p>The number of rows in the table.</p>
 
703
<p>Allowed values: [1,65535]</p>
 
704
<p>Default value: 1</p>
 
705
</div>
 
706
<hr>
 
707
<div class="refsect2">
 
708
<a name="GtkTable--row-spacing"></a><h3>The <code class="literal">"row-spacing"</code> property</h3>
 
709
<pre class="programlisting">  "row-spacing"              <span class="type">guint</span>                 : Read / Write</pre>
 
710
<p>The amount of space between two consecutive rows.</p>
 
711
<p>Allowed values: &lt;= 65535</p>
 
712
<p>Default value: 0</p>
 
713
</div>
 
714
</div>
 
715
<div class="refsect1">
 
716
<a name="GtkTable.child-property-details"></a><h2>Child Property Details</h2>
 
717
<div class="refsect2">
 
718
<a name="GtkTable--c-bottom-attach"></a><h3>The <code class="literal">"bottom-attach"</code> child property</h3>
 
719
<pre class="programlisting">  "bottom-attach"            <span class="type">guint</span>                 : Read / Write</pre>
 
720
<p>The row number to attach the bottom of the child to.</p>
 
721
<p>Allowed values: [1,65535]</p>
 
722
<p>Default value: 1</p>
 
723
</div>
 
724
<hr>
 
725
<div class="refsect2">
 
726
<a name="GtkTable--c-left-attach"></a><h3>The <code class="literal">"left-attach"</code> child property</h3>
 
727
<pre class="programlisting">  "left-attach"              <span class="type">guint</span>                 : Read / Write</pre>
 
728
<p>The column number to attach the left side of the child to.</p>
 
729
<p>Allowed values: &lt;= 65535</p>
 
730
<p>Default value: 0</p>
 
731
</div>
 
732
<hr>
 
733
<div class="refsect2">
 
734
<a name="GtkTable--c-right-attach"></a><h3>The <code class="literal">"right-attach"</code> child property</h3>
 
735
<pre class="programlisting">  "right-attach"             <span class="type">guint</span>                 : Read / Write</pre>
 
736
<p>The column number to attach the right side of a child widget to.</p>
 
737
<p>Allowed values: [1,65535]</p>
 
738
<p>Default value: 1</p>
 
739
</div>
 
740
<hr>
 
741
<div class="refsect2">
 
742
<a name="GtkTable--c-top-attach"></a><h3>The <code class="literal">"top-attach"</code> child property</h3>
 
743
<pre class="programlisting">  "top-attach"               <span class="type">guint</span>                 : Read / Write</pre>
 
744
<p>The row number to attach the top of a child widget to.</p>
 
745
<p>Allowed values: &lt;= 65535</p>
 
746
<p>Default value: 0</p>
 
747
</div>
 
748
<hr>
 
749
<div class="refsect2">
 
750
<a name="GtkTable--c-x-options"></a><h3>The <code class="literal">"x-options"</code> child property</h3>
 
751
<pre class="programlisting">  "x-options"                <a class="link" href="gtk2-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a>      : Read / Write</pre>
 
752
<p>Options specifying the horizontal behaviour of the child.</p>
 
753
<p>Default value: GTK_EXPAND|GTK_FILL</p>
 
754
</div>
 
755
<hr>
 
756
<div class="refsect2">
 
757
<a name="GtkTable--c-x-padding"></a><h3>The <code class="literal">"x-padding"</code> child property</h3>
 
758
<pre class="programlisting">  "x-padding"                <span class="type">guint</span>                 : Read / Write</pre>
 
759
<p>Extra space to put between the child and its left and right neighbors, in pixels.</p>
 
760
<p>Allowed values: &lt;= 65535</p>
 
761
<p>Default value: 0</p>
 
762
</div>
 
763
<hr>
 
764
<div class="refsect2">
 
765
<a name="GtkTable--c-y-options"></a><h3>The <code class="literal">"y-options"</code> child property</h3>
 
766
<pre class="programlisting">  "y-options"                <a class="link" href="gtk2-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a>      : Read / Write</pre>
 
767
<p>Options specifying the vertical behaviour of the child.</p>
 
768
<p>Default value: GTK_EXPAND|GTK_FILL</p>
 
769
</div>
 
770
<hr>
 
771
<div class="refsect2">
 
772
<a name="GtkTable--c-y-padding"></a><h3>The <code class="literal">"y-padding"</code> child property</h3>
 
773
<pre class="programlisting">  "y-padding"                <span class="type">guint</span>                 : Read / Write</pre>
 
774
<p>Extra space to put between the child and its upper and lower neighbors, in pixels.</p>
 
775
<p>Allowed values: &lt;= 65535</p>
 
776
<p>Default value: 0</p>
 
777
</div>
 
778
</div>
 
779
<div class="refsect1">
 
780
<a name="GtkTable.see-also"></a><h2>See Also</h2>
 
781
<p>
 
782
</p>
 
783
<div class="variablelist"><table border="0" class="variablelist">
 
784
<colgroup>
 
785
<col align="left" valign="top">
 
786
<col>
 
787
</colgroup>
 
788
<tbody>
 
789
<tr>
 
790
<td><p><span class="term"><a class="link" href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a></span></p></td>
 
791
<td><p>For packing widgets vertically only.</p></td>
 
792
</tr>
 
793
<tr>
 
794
<td><p><span class="term"><a class="link" href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a></span></p></td>
 
795
<td><p>For packing widgets horizontally only.</p></td>
 
796
</tr>
 
797
</tbody>
 
798
</table></div>
 
799
<p>
 
800
</p>
 
801
</div>
 
802
</div>
 
803
<div class="footer">
 
804
<hr>
 
805
          Generated by GTK-Doc V1.18</div>
 
806
</body>
 
807
</html>
 
 
b'\\ No newline at end of file'