GridLayout


Object Hierarchy:

Object hierarchy for GridLayout

Description:

[ CCode ( type_id = "gtk_grid_layout_get_type ()" ) ]
public class GridLayout : LayoutManager

GtkGridLayout 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 GridLayoutChild associated to each child widget.

The behaviour of GtkGrid when several children occupy the same grid cell is undefined.

GtkGridLayout can be used like a BoxLayout 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 BoxLayout.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members: