GtkTable
Container that provides a flexible grid for packing its children.
Object Hierarchy
Direct subclasses
None.
Description
A GtkTable is a very adaptable container widget
that is capable of having the layout of its children structured in both
directions. There is a more simplistic version of a similar container
in GtkFixed, but GtkTable
offers the advantage that the child positions can be relative rather than
absolute. The table's stucturing is similar to that of a
GtkBox.
As with the box classes, there is an underlying single-child structure
containing packing information, which consitutes one element of the array
of child data in a GtkTable. This element is known
as a GtkTableChild, and can be accessed through
the children property inherited from
GtkContainer. The child objects themselves can
also be accessed more directly through the
children() method inherited
from the same ancestor.
Constructor
GtkTable ([int
rows = 1
, [int
columns = 1
, [bool
homogeneous = FALSE
]]]); --
Creates a container whose children are arranged on a grid.
Properties
children:
Array of GtkTableChild elements.
nrows:
Number of rows.
ncols:
Number of columns.
column_spacing:
Spacing between columns.
row_spacing:
Spacing between rows.
homogeneous:
Determines whether child sizing is homogeneous.