GtkTable

GtkTable

Container that provides a flexible grid for packing its children.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkTable

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.

Methods

resize()
  Resizes to accommodate changes.
attach()
  Means of arranging child widgets in a GtkTable.
attach_defaults()
  Packing defaults.
set_row_spacing()
  Determines the space below a given row.
set_col_spacing()
  Determines the space to the right of a given column.
set_row_spacings()
  Determines the spacing between all rows.
set_col_spacings()
  Determines the spacing between all columns.
set_homogeneous()
  Sets all child allocations to size of largest request.

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.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.