public class GridLayout extends Layout:
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)| Modifier and Type | Member | Description |
|---|---|---|
| public property | columnscolumns as Int = 1 |
No summary. |
| public property | horizontalSpacinghorizontalSpacing as Int = 8 |
No summary. |
| public property | rowsrows as Int = 0 |
No summary. |
| public property | verticalSpacingverticalSpacing as Int = 8 |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | GridLayoutGridLayout(rows as Int = 0, columns as Int = 1, horizontalSpacing as Int = 8, verticalSpacing as Int = 8): |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | add | Adds a widget at a fixed grid position. |
| public override | layoutlayout(container as Container) as Void: |
No summary. |