100
100
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#a0847343664611db4fc8bfd75658d07b4">get_size</a> (guint& rows, guint& columns) const </td></tr>
101
101
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the number of rows and columns in the table. <a href="#a0847343664611db4fc8bfd75658d07b4"></a><br/></td></tr>
102
102
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#a976db556e26e07f41f0b611bd073e477">property_n_rows</a> ()</td></tr>
103
<tr><td class="mdescLeft"> </td><td class="mdescRight">The number of rows in the table. <a href="#a976db556e26e07f41f0b611bd073e477"></a><br/></td></tr>
103
<tr><td class="mdescLeft"> </td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#a976db556e26e07f41f0b611bd073e477"></a><br/></td></tr>
104
104
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
105
105
< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#af256587c6cfbbc5d5d6bf0b372333efb">property_n_rows</a> () const </td></tr>
106
106
<tr><td class="mdescLeft"> </td><td class="mdescRight">The number of rows in the table. <a href="#af256587c6cfbbc5d5d6bf0b372333efb"></a><br/></td></tr>
107
107
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#a66928e6507d50d00f0ed2bb7a0972a31">property_n_columns</a> ()</td></tr>
108
<tr><td class="mdescLeft"> </td><td class="mdescRight">The number of columns in the table. <a href="#a66928e6507d50d00f0ed2bb7a0972a31"></a><br/></td></tr>
108
<tr><td class="mdescLeft"> </td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#a66928e6507d50d00f0ed2bb7a0972a31"></a><br/></td></tr>
109
109
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
110
110
< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#a82a93feb67f6bd5c51410635de5cc631">property_n_columns</a> () const </td></tr>
111
111
<tr><td class="mdescLeft"> </td><td class="mdescRight">The number of columns in the table. <a href="#a82a93feb67f6bd5c51410635de5cc631"></a><br/></td></tr>
112
112
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#abd91832d63a3d8111a8b7726b145b3c7">property_column_spacing</a> ()</td></tr>
113
<tr><td class="mdescLeft"> </td><td class="mdescRight">The amount of space between two consecutive columns. <a href="#abd91832d63a3d8111a8b7726b145b3c7"></a><br/></td></tr>
113
<tr><td class="mdescLeft"> </td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#abd91832d63a3d8111a8b7726b145b3c7"></a><br/></td></tr>
114
114
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
115
115
< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#a05a1a54e3addbd0d636de9c1a4536854">property_column_spacing</a> () const </td></tr>
116
116
<tr><td class="mdescLeft"> </td><td class="mdescRight">The amount of space between two consecutive columns. <a href="#a05a1a54e3addbd0d636de9c1a4536854"></a><br/></td></tr>
117
117
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#a42bb570f272cd1c44a9fcf836986d259">property_row_spacing</a> ()</td></tr>
118
<tr><td class="mdescLeft"> </td><td class="mdescRight">The amount of space between two consecutive rows. <a href="#a42bb570f272cd1c44a9fcf836986d259"></a><br/></td></tr>
118
<tr><td class="mdescLeft"> </td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#a42bb570f272cd1c44a9fcf836986d259"></a><br/></td></tr>
119
119
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
120
120
< guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#a177a71056b22656806bd1ef08ef016d8">property_row_spacing</a> () const </td></tr>
121
121
<tr><td class="mdescLeft"> </td><td class="mdescRight">The amount of space between two consecutive rows. <a href="#a177a71056b22656806bd1ef08ef016d8"></a><br/></td></tr>
122
122
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#a9b8bca913e136d0564938402e03d9d17">property_homogeneous</a> ()</td></tr>
123
<tr><td class="mdescLeft"> </td><td class="mdescRight">If TRUE, the table cells are all the same width/height. <a href="#a9b8bca913e136d0564938402e03d9d17"></a><br/></td></tr>
123
<tr><td class="mdescLeft"> </td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#a9b8bca913e136d0564938402e03d9d17"></a><br/></td></tr>
124
124
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
125
125
< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Table.html#a6b6e4324f3670cf51a1ff6681fab5228">property_homogeneous</a> () const </td></tr>
126
126
<tr><td class="mdescLeft"> </td><td class="mdescRight">If TRUE, the table cells are all the same width/height. <a href="#a6b6e4324f3670cf51a1ff6681fab5228"></a><br/></td></tr>
141
141
<div class="image">
142
142
<img src="table1.png" alt="table1.png"/>
144
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000018">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Grid.html" title="A container which arranges its child widgets in rows and columns.">Gtk::Grid</a> instead. It provides the same capabilities as <a class="el" href="classGtk_1_1Table.html" title="Pack widgets in regular patterns.">Gtk::Table</a> for arranging widgets in a rectangular grid, but does support height-for-width geometry management.</dd></dl>
144
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000023">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Grid.html" title="A container which arranges its child widgets in rows and columns.">Gtk::Grid</a> instead. It provides the same capabilities as <a class="el" href="classGtk_1_1Table.html" title="Pack widgets in regular patterns.">Gtk::Table</a> for arranging widgets in a rectangular grid, but does support height-for-width geometry management.</dd></dl>
145
145
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classGtk_1_1HBox.html" title="Horizontal Box for laying widgets in a horizontal row.">Gtk::HBox</a>, <a class="el" href="classGtk_1_1VBox.html" title="Vertical Box for laying widgets in a vertical row.">Gtk::VBox</a> </dd></dl>
146
146
</div><hr/><h2>Constructor & Destructor Documentation</h2>
147
147
<a class="anchor" id="ae680cef1bee0049182eae639c3b90fd7"></a><!-- doxytag: member="Gtk::Table::~Table" ref="ae680cef1bee0049182eae639c3b90fd7" args="()" -->
264
264
<p>Adds a widget to a table. </p>
265
265
<p>The number of 'cells' that a widget will occupy is specified by <em>left_attach</em>, <em>right_attach</em>, <em>top_attach</em> and <em>bottom_attach</em>. These each represent the leftmost, rightmost, uppermost and lowest column and row numbers of the table. (Columns and rows are indexed from zero).</p>
266
<p>To make a button occupy the lower right cell of a 2x2 table, use</p>
267
<p>If you want to make the button span the entire bottom row, use <em>left_attach</em> == 0 and <em>right_attach</em> = 2 instead. </p>
266
<p>To make a button occupy the lower right cell of a 2x2 table, use [C example ellipted] If you want to make the button span the entire bottom row, use <em>left_attach</em> == 0 and <em>right_attach</em> = 2 instead.</p>
267
<p>Deprecated: 3.4: Use <a class="el" href="classGtk_1_1Grid.html#a9c425e95660daff60a77fc0cafc18115" title="Adds a widget to the grid.">Gtk::Grid::attach()</a> with <a class="el" href="classGtk_1_1Grid.html" title="A container which arranges its child widgets in rows and columns.">Gtk::Grid</a>. Note that the attach arguments differ between those two functions. </p>
268
268
<dl><dt><b>Parameters:</b></dt><dd>
269
269
<table class="params">
270
270
<tr><td class="paramname">child</td><td>The widget to add. </td></tr>
298
298
<div class="memdoc">
300
300
<p>Gets the amount of space between column <em>col</em>, and column <em>col</em> + 1. </p>
301
<p>See <a class="el" href="classGtk_1_1Table.html#af77b4b9ea80e32d1c76c0e4466425676" title="Alters the amount of space between a given table column and the following column.">set_col_spacing()</a>. </p>
301
<p>See <a class="el" href="classGtk_1_1Table.html#af77b4b9ea80e32d1c76c0e4466425676" title="Alters the amount of space between a given table column and the following column.">set_col_spacing()</a>.</p>
302
<p>Deprecated: 3.4: <a class="el" href="classGtk_1_1Grid.html" title="A container which arranges its child widgets in rows and columns.">Gtk::Grid</a> does not offer a replacement for this functionality. </p>
302
303
<dl><dt><b>Parameters:</b></dt><dd>
303
304
<table class="params">
304
305
<tr><td class="paramname">column</td><td>A column in the table, 0 indicates the first column. </td></tr>
385
388
<div class="memdoc">
387
390
<p>Gets the amount of space between row <em>row</em>, and row <em>row</em> + 1. </p>
388
<p>See <a class="el" href="classGtk_1_1Table.html#aeaa6413b00c0a37f31f4c3334e906f67" title="Changes the space between a given table row and the subsequent row.">set_row_spacing()</a>. </p>
391
<p>See <a class="el" href="classGtk_1_1Table.html#aeaa6413b00c0a37f31f4c3334e906f67" title="Changes the space between a given table row and the subsequent row.">set_row_spacing()</a>.</p>
392
<p>Deprecated: 3.4: <a class="el" href="classGtk_1_1Grid.html" title="A container which arranges its child widgets in rows and columns.">Gtk::Grid</a> does not offer a replacement for this functionality. </p>
389
393
<dl><dt><b>Parameters:</b></dt><dd>
390
394
<table class="params">
391
395
<tr><td class="paramname">row</td><td>A row in the table, 0 indicates the first row. </td></tr>
786
789
<div class="memdoc">
788
791
<p>Changes the homogenous property of table cells, ie. </p>
789
<p>whether all cells are an equal size or not. </p>
792
<p>whether all cells are an equal size or not.</p>
793
<p>Deprecated: 3.4: Use <a class="el" href="classGtk_1_1Grid.html#ad2587a5431a9fb864db8d6da21bb6844" title="Sets whether all rows of grid will have the same height.">Gtk::Grid::set_row_homogeneous()</a> and <a class="el" href="classGtk_1_1Grid.html#a58ea6e69a33a9e719f5b5b4b430e8de3" title="Sets whether all columns of grid will have the same width.">Gtk::Grid::set_column_homogeneous()</a> with <a class="el" href="classGtk_1_1Grid.html" title="A container which arranges its child widgets in rows and columns.">Gtk::Grid</a>. </p>
790
794
<dl><dt><b>Parameters:</b></dt><dd>
791
795
<table class="params">
792
796
<tr><td class="paramname">homogeneous</td><td>Set to <code>true</code> to ensure all table cells are the same size. Set to <code>false</code> if this is not your desired behaviour. </td></tr>