GtkTable

The #GtkTable 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 gtk.table.Table.new_, the size of which can later be changed with gtk.table.Table.resize.

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

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

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

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

Members

Variables

container
GtkContainer container;
priv
GtkTablePrivate* priv;