GridLayout
GtkGridLayout
is a layout manager which arranges child widgets in rows and columns.
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 class@Gtk.GridLayoutChild associated to each child widget.
The behaviour of GtkGridLayout
when several children occupy the same grid cell is undefined.
GtkGridLayout
can be used like a GtkBoxLayout
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 GtkBoxLayout
.
Constructors
Properties
The row to align to the baseline, when GtkWidget:valign
is set to %GTK_ALIGN_BASELINE.
Whether all the columns in the grid have the same width.
The amount of space between to consecutive columns.
Whether all the rows in the grid have the same height.
The amount of space between to consecutive rows.
Functions
Retrieves the row set with gtk_grid_layout_set_baseline_row().
Checks whether all columns of @grid should have the same width.
Retrieves the spacing set with gtk_grid_layout_set_column_spacing().
Retrieves a GtkLayoutChild
instance for the GtkLayoutManager
, creating one if necessary.
Retrieves the request mode of @manager.
Returns the baseline position of @row.
Checks whether all rows of @grid should have the same height.
Retrieves the spacing set with gtk_grid_layout_set_row_spacing().
Queues a resize on the GtkWidget
using @manager, if any.
Sets which row defines the global baseline for the entire grid.
Sets whether all columns of @grid should have the same width.
Sets the amount of space to insert between consecutive columns.
Sets how the baseline should be positioned on @row of the grid, in case that row is assigned more space than is requested.
Sets whether all rows of @grid should have the same height.
Sets the amount of space to insert between consecutive rows.