Package: gtk

Class gtk:grid-layout

Superclasses

gtk:layout-manager, gobject: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 to the baseline, when the valign property is set to the :baseline of the gtk:align enumeration.
Allowed values: >= 0
Default value: 0
column-homogeneous
The column-homogeneous property of type :boolean (Read / Write)
Whether all the columns in the grid have the same width.
Default value: false
column-spacing
The column-spacing property of type :int (Read / Write)
The amount of space between to consecutive columns.
Allowed values: [0,32767]
Default value: 0
row-homogeneous
The row-homogeneous property of type :boolean (Read / Write)
Whether all the rows in the grid have the same height.
Default value: false
row-spacing
The row-spacing property of type :int (Read / Write)
The amount of space between to consecutive rows.
Allowed values: [0,32767]
Default value: 0

Details

Layout manager for grid like widgets. The gtk:grid-layout object is a layout manager which arranges child widgets in rows and columns, with arbitrary positions and horizontal/vertical spans.

Children have an "attach point" defined by the horizontal and vertical index of the cell they occupy. Children can span multiple rows or columns. The layout properties for setting the attach points and spans are set using the gtk:grid-layout-child object associated to each child widget.

The behaviour of the gtk:grid widget when several children occupy the same grid cell is undefined.

The gtk:grid-layout object can be used like a gtk:box-layout object if all children are attached to the same row or column. However, if you only ever need a single row or column, you should consider using the gtk:box-layout object.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-4-23