GridLayout
classin packageklyn.gui.windows.layouts
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)
grid.add(Label("Host"))
grid.add(TextBox())
Properties
| Modifier and Type |
Member |
Description |
| public property |
columns |
No summary. |
| public property |
horizontalSpacinghorizontalSpacing as Int = 8 |
No summary. |
| public property |
rows |
No summary. |
| public property |
verticalSpacingverticalSpacing as Int = 8 |
No summary. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
GridLayout |
No summary. |
Methods
| Modifier and Type |
Member |
Description |
| public override |
layout |
No summary. |
Methods inherited from Layout: _ceilDiv,
_childOuterPreferredHeight,
_childOuterPreferredWidth,
_childParams,
_clamp,
_edgeBottom,
_edgeLeft,
_edgeRight,
_edgeTop,
_innerHeight,
_innerWidth,
_innerX,
_innerY,
_marginBottom,
_marginLeft,
_marginRight,
_marginTop,
_max,
_min,
_normalizeAlign,
_place,
_preferredHeight,
_preferredWidth,
layout