Object Hierarchy:

Object hierarchy for Table


[ CCode ( type_id = "gtk_table_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "3.4" , replacement = "Grid" ) ]
public class Table : Container, Implementor, Buildable

Warning: Table is deprecated since 3.4. Use Grid.

The Table functions allow the programmer to arrange widgets in rows and columns, making it easy to align many widgets next to each other, horizontally and vertically.

Tables are created with a call to Table, the size of which can later be changed with resize.

Widgets can be added to a table using attach or the more convenient (but slightly less flexible) attach_defaults.

To alter the space next to a specific row, use set_row_spacing, and for a column, set_col_spacing. The gaps between all rows or columns can be changed by calling set_row_spacings or set_col_spacings respectively. Note that spacing is added between the children, while padding added by attach is added on either side of the widget it belongs to.

set_homogeneous, can be used to set whether all cells in the table will resize themselves to the size of the largest widget in the table.


Table has been deprecated. Use Grid instead. It provides the same capabilities as GtkTable for arranging widgets in a rectangular grid, but does support height-for-width geometry management.

Namespace: Gtk
Package: gtk+-3.0



Creation methods:


Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor