Package: gtk

Class gtk-table

Superclasses

gtk-container, gtk-widget, g-initially-unowned, gtk-buildable, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

column-spacing
The "column-spacing" property of type :uint (Read / Write)
The amount of space between two consecutive columns.
Allowed values: <= 65535
Default value: 0
homogeneous
The "homogeneous" property of type :boolean (Read / Write)
If true, the table cells are all the same width/height.
Default value: nil
n-columns
The "n-columns" property of type :uint (Read / Write)
The number of columns in the table.
Allowed values: [1,65535]
Default value: 1
n-rows
The "n-rows" property of type :uint (Read / Write)
The number of rows in the table.
Allowed values: [1,65535]
Default value: 1
row-spacing
The "row-spacing" property of type :uint (Read / Write)
The amount of space between two consecutive rows.
Allowed values: <= 65535
Default value: 0

Details

The gtk-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 the function gtk-table-new, the size of which can later be changed with the function gtk-table-resize.

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

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

The function gtk-table-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.

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

Child Property Details

The "bottom-attach" child property
"bottom-attach" of type :uint (Read / Write)
The row number to attach the bottom of the child to.
Allowed values: [1,65535]
Default value: 1

The "left-attach" child property
"left-attach" of type :uint (Read / Write)
The column number to attach the left side of the child to.
Allowed values: <= 65535
Default value: 0

The "right-attach" child property
"right-attach" of type :uint (Read / Write)
The column number to attach the right side of a child widget to.
Allowed values: [1,65535]
Default value: 1

The "top-attach" child property
"top-attach" of type :uint (Read / Write)
The row number to attach the top of a child widget to.
Allowed values: <= 65535
Default value: 0

The "x-options" child property
"x-options" of type gtk-attach-options (Read / Write)
Options specifying the horizontal behaviour of the child.
Default value: '(:expand :fill)

The "x-padding" child property
"x-padding" of type :uint (Read / Write)
Extra space to put between the child and its left and right neighbors, in pixels.
Allowed values: <= 65535
Default value: 0

The "y-options" child property
"y-options" of type gtk-attach-options (Read / Write)
Options specifying the vertical behaviour of the child.
Default value: '(:expand :fill)

The "y-padding" child property
"y-padding" of type :uint (Read / Write)
Extra space to put between the child and its upper and lower neighbors, in pixels.
Allowed values: <= 65535
Default value: 0
 

Slot Access Functions

Inherited Slot Access Functions

2013-5-20