GridLayout
class in package klyn.gui.windows.layouts

    public class GridLayout extends Layout:

Layout
└ GridLayout

Grid layout.

Widgets are distributed in a matrix of equal cells. `GridLayoutParams` can override row, column and spans for individual widgets.

    layout = GridLayout()
    layout.columns = 2
    grid = Container(layout)
    layout.add(Label("Host"), 0, 0)
    layout.add(TextBox(), 0, 1)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | columns `columns as Int = 1` | No summary.
public property | horizontalSpacing `horizontalSpacing as Int = 8` | No summary.
public property | rows `rows as Int = 0` | No summary.
public property | verticalSpacing `verticalSpacing as Int = 8` | No summary.

Inherited Properties
property Inherited Properties from Layout: container
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | GridLayout `GridLayout(rows as Int = 0, columns as Int = 1, horizontalSpacing as Int = 8, verticalSpacing as Int = 8):` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | add `add(widget as Widget, row as Int, column as Int, rowSpan as Int = 1, columnSpan as Int = 1) as Void:` | Adds a widget at a fixed grid position.
public override | layout `layout(container as Container) as Void:` | No summary.

Inherited Methods
method Inherited Methods from Layout: _ceilDiv, _childOuterPreferredHeight, _childOuterPreferredWidth, _childParams, _clamp, _edgeBottom, _edgeLeft, _edgeRight, _edgeTop, _growX, _growY, _horizontalSizePolicy, _innerHeight, _innerWidth, _innerX, _innerY, _marginBottom, _marginLeft, _marginRight, _marginTop, _max, _metric, _min, _normalizeAlign, _place, _preferredHeight, _preferredWidth, _verticalSizePolicy, add, attach, detach, layout