HBoxLayout
class in package klyn.gui.windows.layouts

    public class HBoxLayout extends Layout:

Layout
└ HBoxLayout

Horizontal layout.

Widgets are placed from left to right. Extra horizontal space is distributed according to `LayoutParams.growX`; when no explicit layout parameter is set, `SizePolicy.EXPANDING` contributes a default grow weight.

    layout = HBoxLayout(spacing=8)
    row = Container(layout)
    layout.add(Button("Cancel"))
    ok = Button("Save")
    ok.layoutParams = LayoutParams(growX=1)
    layout.add(ok)
    canvas = PreviewCanvas()
    canvas.sizePolicy = (SizePolicy.EXPANDING, SizePolicy.EXPANDING)
    layout.add(canvas)

Properties

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

Properties inherited from Layout: container
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | HBoxLayout `HBoxLayout(spacing as Int = 8, align as String = "fill"):` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | layout `layout(container as Container) as Void:` | No summary.

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