49
49
#include <gtk/gtk.h>
51
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> rows</code></em>,
53
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> columns</code></em>,
54
<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>);
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
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> rows</code></em>,
57
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> columns</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
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
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> left_attach</code></em>,
61
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> right_attach</code></em>,
62
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> top_attach</code></em>,
63
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> bottom_attach</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
64
<em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> xoptions</code></em>,
65
65
<em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> yoptions</code></em>,
66
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> xpadding</code></em>,
67
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> ypadding</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
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
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> left_attach</code></em>,
71
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> right_attach</code></em>,
72
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> top_attach</code></em>,
73
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> bottom_attach</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
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> row</code></em>,
76
<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>);
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
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> column</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>);
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
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);
81
<em class="parameter"><code><span class="type">guint</span> spacing</code></em>);
82
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);
83
<em class="parameter"><code><span class="type">guint</span> spacing</code></em>);
84
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</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="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
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> row</code></em>);
90
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> column</code></em>);
92
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <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>);
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
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *rows</code></em>,
95
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *columns</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>);
98
98
<div class="refsect1">
99
99
<a name="GtkTable.object-hierarchy"></a><h2>Object Hierarchy</h2>
100
100
<pre class="synopsis">
101
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
102
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
102
+----GInitiallyUnowned
103
103
+----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
104
104
+----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
105
105
+----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
115
115
<div class="refsect1">
116
116
<a name="GtkTable.properties"></a><h2>Properties</h2>
117
117
<pre class="synopsis">
118
"<a class="link" href="GtkTable.html#GtkTable--column-spacing" title='The "column-spacing" property'>column-spacing</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
119
"<a class="link" href="GtkTable.html#GtkTable--homogeneous" title='The "homogeneous" property'>homogeneous</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
120
"<a class="link" href="GtkTable.html#GtkTable--n-columns" title='The "n-columns" property'>n-columns</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
121
"<a class="link" href="GtkTable.html#GtkTable--n-rows" title='The "n-rows" property'>n-rows</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
122
"<a class="link" href="GtkTable.html#GtkTable--row-spacing" title='The "row-spacing" property'>row-spacing</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
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
125
125
<div class="refsect1">
126
126
<a name="GtkTable.child-properties"></a><h2>Child Properties</h2>
127
127
<pre class="synopsis">
128
"<a class="link" href="GtkTable.html#GtkTable--c-bottom-attach" title='The "bottom-attach" child property'>bottom-attach</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
129
"<a class="link" href="GtkTable.html#GtkTable--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#guint"><span class="type">guint</span></a> : Read / Write
130
"<a class="link" href="GtkTable.html#GtkTable--c-right-attach" title='The "right-attach" child property'>right-attach</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
131
"<a class="link" href="GtkTable.html#GtkTable--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#guint"><span class="type">guint</span></a> : Read / Write
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
132
"<a class="link" href="GtkTable.html#GtkTable--c-x-options" title='The "x-options" child property'>x-options</a>" <a class="link" href="gtk-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>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</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
134
"<a class="link" href="GtkTable.html#GtkTable--c-y-options" title='The "y-options" child property'>y-options</a>" <a class="link" href="gtk-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>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</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
138
138
<div class="refsect1">
243
243
<a name="gtk-table-attach"></a><h3>gtk_table_attach ()</h3>
244
244
<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>,
245
245
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
246
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> left_attach</code></em>,
247
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> right_attach</code></em>,
248
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> top_attach</code></em>,
249
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> bottom_attach</code></em>,
246
<em class="parameter"><code><span class="type">guint</span> left_attach</code></em>,
247
<em class="parameter"><code><span class="type">guint</span> right_attach</code></em>,
248
<em class="parameter"><code><span class="type">guint</span> top_attach</code></em>,
249
<em class="parameter"><code><span class="type">guint</span> bottom_attach</code></em>,
250
250
<em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> xoptions</code></em>,
251
251
<em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkAttachOptions" title="enum GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> yoptions</code></em>,
252
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> xpadding</code></em>,
253
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> ypadding</code></em>);</pre>
252
<em class="parameter"><code><span class="type">guint</span> xpadding</code></em>,
253
<em class="parameter"><code><span class="type">guint</span> ypadding</code></em>);</pre>
255
255
Adds a widget to a table. The number of 'cells' that a widget will occupy is
256
256
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>.