Package: gtk

Class gtk-grid

Superclasses

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

Documented Subclasses

None

Direct Slots

baseline-row
The baseline-row property of type :int (Read / Write)
The row to align the to the baseline when valign has the value :center of the gtk-align enumeration.
Allowed values: >= 0
Default value: 0
column-homogeneous
The column-homogeneous property of type :boolean (Read / Write)
If true, the columns are all the same width.
Default value: nil
column-spacing
The column-spacing property of type :int (Read / Write)
The amount of space between two consecutive columns.
Allowed values: [0, 32767]
Default value: 0
row-homogeneous
The row-homogeneous property of type :boolean (Read / Write)
If true, the rows are all the same height.
Default value: nil
row-spacing
The row-spacing property of type :int (Read / Write)
The amount of space between two consecutive rows.
Allowed values: [0, 32767]
Default value: 0

Details

gtk-grid is a container which arranges its child widgets in rows and columns. It is a very similar to gtk-table and gtk-box, but it consistently uses gtk-widget's margin and expand properties instead of custom child properties, and it fully supports height-for-width geometry management.

Children are added using the function gtk-grid-attach. They can span multiple rows or columns. It is also possible to add a child next to an existing child, using the function gtk-grid-attach-next-to. The behaviour of gtk-grid when several children occupy the same grid cell is undefined.

gtk-grid can be used like a gtk-box by just using gtk-container-add, which will place children next to each other in the direction determined by the orientation property.

Child Property Details

The height child property
height of type :int (Read / Write)
The number of rows that a child spans.
Allowed values: >= 1
Default value: 1

The left-attach child property
left-attach of type :int (Read / Write)
The column number to attach the left side of the child to.
Default value: 0

The top-attach child property
top-attach of type :int (Read / Write)
The row number to attach the top side of a child widget to.
Default value: 0

The width child property
width of type :int (Read / Write)
The number of columns that a child spans.
Allowed values: >= 1
Default value: 1
 

Slot Access Functions

Inherited Slot Access Functions

See also

2013-12-7