gtk.grid_layout
Module for [GridLayout] class
Types 3
[gtk.grid_layout.GridLayout] 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 [gtk.grid_layout_child.GridLayoutChild] associated to each child widget.
The behaviour of [gtk.grid_layout.GridLayout] when several children occupy the same grid cell is undefined.
[gtk.grid_layout.GridLayout] can be used like a [gtk.box_layout.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 [gtk.box_layout.BoxLayout].
GridLayout self()Returns `this`, for use in `with` statements.GridLayoutGidBuilder builder()Get builder for [gtk.grid_layout.GridLayout] Returns: New builder objectint baselineRow() @propertyGet `baselineRow` property. Returns: The row to align to the baseline, when `GtkWidget:valign` is set to [gtk.types.Align.Baseline].void baselineRow(int propval) @propertySet `baselineRow` property. Params: propval = The row to align to the baseline, when `GtkWidget:valign` is set to [gtk.types.Align.Baseline].bool columnHomogeneous() @propertyGet `columnHomogeneous` property. Returns: Whether all the columns in the grid have the same width.void columnHomogeneous(bool propval) @propertySet `columnHomogeneous` property. Params: propval = Whether all the columns in the grid have the same width.int columnSpacing() @propertyGet `columnSpacing` property. Returns: The amount of space between to consecutive columns.void columnSpacing(int propval) @propertySet `columnSpacing` property. Params: propval = The amount of space between to consecutive columns.bool rowHomogeneous() @propertyGet `rowHomogeneous` property. Returns: Whether all the rows in the grid have the same height.void rowHomogeneous(bool propval) @propertySet `rowHomogeneous` property. Params: propval = Whether all the rows in the grid have the same height.int rowSpacing() @propertyGet `rowSpacing` property. Returns: The amount of space between to consecutive rows.void rowSpacing(int propval) @propertySet `rowSpacing` property. Params: propval = The amount of space between to consecutive rows.int getBaselineRow()Retrieves the row set with [gtk.grid_layout.GridLayout.setBaselineRow]. Returns: the global baseline rowbool getColumnHomogeneous()Checks whether all columns of grid should have the same width. Returns: true if the columns are homogeneous, and false otherwiseuint getColumnSpacing()Retrieves the spacing set with [gtk.grid_layout.GridLayout.setColumnSpacing]. Returns: the spacing between consecutive columnsgtk.types.BaselinePosition getRowBaselinePosition(int row)Returns the baseline position of row.bool getRowHomogeneous()Checks whether all rows of grid should have the same height. Returns: true if the rows are homogeneous, and false otherwiseuint getRowSpacing()Retrieves the spacing set with [gtk.grid_layout.GridLayout.setRowSpacing]. Returns: the spacing between consecutive rowsvoid setBaselineRow(int row)Sets which row defines the global baseline for the entire grid.void setColumnHomogeneous(bool homogeneous)Sets whether all columns of grid should have the same width.void setColumnSpacing(uint spacing)Sets the amount of space to insert between consecutive columns.void setRowBaselinePosition(int row, gtk.types.BaselinePosition pos)Sets how the baseline should be positioned on row of the grid, in case that row is assigned more space than is requested.void setRowHomogeneous(bool homogeneous)Sets whether all rows of grid should have the same height.void setRowSpacing(uint spacing)Sets the amount of space to insert between consecutive rows.T baselineRow(int propval)Set `baselineRow` property. Params: propval = The row to align to the baseline, when `GtkWidget:valign` is set to [gtk.types.Align.Baseline]. Returns: Builder instance for fluent chainingT columnHomogeneous(bool propval)Set `columnHomogeneous` property. Params: propval = Whether all the columns in the grid have the same width. Returns: Builder instance for fluent chainingT columnSpacing(int propval)Set `columnSpacing` property. Params: propval = The amount of space between to consecutive columns. Returns: Builder instance for fluent chainingT rowHomogeneous(bool propval)Set `rowHomogeneous` property. Params: propval = Whether all the rows in the grid have the same height. Returns: Builder instance for fluent chainingT rowSpacing(int propval)Set `rowSpacing` property. Params: propval = The amount of space between to consecutive rows. Returns: Builder instance for fluent chainingFluent builder for [gtk.grid_layout.GridLayout]