DockLayout
class in package klyn.gui.windows.layouts

    public class DockLayout extends Layout:

Layout
└ DockLayout

Dock layout.

Widgets consume the available area from the outside to the inside using the sides declared by `DockLayoutParams`.

    layout = DockLayout()
    root = Container(layout)
    toolbar = Container()
    layout.add(toolbar, "top")

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | spacing `spacing as Int = 8` | No summary.

Inherited Properties
property Inherited Properties from Layout: container
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | DockLayout `DockLayout(spacing as Int = 8):` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | add `add(widget as Widget, side as String) as Void:` | Adds a widget on a dock side.
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