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.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
GridLayout self() nothrowReturns `this`, for use in `with` statements.
GridLayoutGidBuilder builder() static nothrowGet builder for [gtk.grid_layout.GridLayout] Returns: New builder object
int baselineRow() @property nothrowGet `baselineRow` property. Returns: The row to align to the baseline, when `GtkWidget:valign` is set to [gtk.types.Align.Baseline].
void baselineRow(int propval) @property nothrowSet `baselineRow` property. Params: propval = The row to align to the baseline, when `GtkWidget:valign` is set to [gtk.types.Align.Baseline].
bool columnHomogeneous() @property nothrowGet `columnHomogeneous` property. Returns: Whether all the columns in the grid have the same width.
void columnHomogeneous(bool propval) @property nothrowSet `columnHomogeneous` property. Params: propval = Whether all the columns in the grid have the same width.
int columnSpacing() @property nothrowGet `columnSpacing` property. Returns: The amount of space between to consecutive columns.
void columnSpacing(int propval) @property nothrowSet `columnSpacing` property. Params: propval = The amount of space between to consecutive columns.
bool rowHomogeneous() @property nothrowGet `rowHomogeneous` property. Returns: Whether all the rows in the grid have the same height.
void rowHomogeneous(bool propval) @property nothrowSet `rowHomogeneous` property. Params: propval = Whether all the rows in the grid have the same height.
int rowSpacing() @property nothrowGet `rowSpacing` property. Returns: The amount of space between to consecutive rows.
void rowSpacing(int propval) @property nothrowSet `rowSpacing` property. Params: propval = The amount of space between to consecutive rows.
int getBaselineRow() nothrowRetrieves the row set with [gtk.grid_layout.GridLayout.setBaselineRow]. Returns: the global baseline row
bool getColumnHomogeneous() nothrowChecks whether all columns of grid should have the same width. Returns: true if the columns are homogeneous, and false otherwise
uint getColumnSpacing() nothrowRetrieves the spacing set with [gtk.grid_layout.GridLayout.setColumnSpacing]. Returns: the spacing between consecutive columns
gtk.types.BaselinePosition getRowBaselinePosition(int row) nothrowReturns the baseline position of row.
bool getRowHomogeneous() nothrowChecks whether all rows of grid should have the same height. Returns: true if the rows are homogeneous, and false otherwise
uint getRowSpacing() nothrowRetrieves the spacing set with [gtk.grid_layout.GridLayout.setRowSpacing]. Returns: the spacing between consecutive rows
void setBaselineRow(int row) nothrowSets which row defines the global baseline for the entire grid.
void setColumnHomogeneous(bool homogeneous) nothrowSets whether all columns of grid should have the same width.
void setColumnSpacing(uint spacing) nothrowSets the amount of space to insert between consecutive columns.
void setRowBaselinePosition(int row, gtk.types.BaselinePosition pos) nothrowSets 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) nothrowSets whether all rows of grid should have the same height.
void setRowSpacing(uint spacing) nothrowSets the amount of space to insert between consecutive rows.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.grid_layout.GridLayout]. Returns: the newly created [gtk.grid_layout.GridLayout]

Fluent builder implementation template for gtk.grid_layout.GridLayout

Methods
T baselineRow(int propval) nothrowSet `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 chaining
T columnHomogeneous(bool propval) nothrowSet `columnHomogeneous` property. Params: propval = Whether all the columns in the grid have the same width. Returns: Builder instance for fluent chaining
T columnSpacing(int propval) nothrowSet `columnSpacing` property. Params: propval = The amount of space between to consecutive columns. Returns: Builder instance for fluent chaining
T rowHomogeneous(bool propval) nothrowSet `rowHomogeneous` property. Params: propval = Whether all the rows in the grid have the same height. Returns: Builder instance for fluent chaining
T rowSpacing(int propval) nothrowSet `rowSpacing` property. Params: propval = The amount of space between to consecutive rows. Returns: Builder instance for fluent chaining

Fluent builder for gtk.grid_layout.GridLayout

Methods
GridLayout build() nothrowCreate object from builder. Returns: New object