Layout
class in package klyn.gui.windows.layouts

    public abstract class Layout:

Layout

Base class for layout managers.

    layout = VBoxLayout(spacing=12)
    panel = Container(layout)
    panel.padding = (12, 12, 12, 12)
    layout.add(Label("Name"))
    panel.setBounds(0, 0, 400, 300)
    panel.applyLayout()

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | container `container as Container:` | Container currently driven by this layout.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | _ceilDiv `_ceilDiv(value as Int, divisor as Int) as Int:` | No summary.
public static | _childOuterPreferredHeight `_childOuterPreferredHeight(widget as Widget) as Int:` | No summary.
public static | _childOuterPreferredWidth `_childOuterPreferredWidth(widget as Widget) as Int:` | No summary.
public static | _childParams `_childParams(widget as Widget) as LayoutParams:` | No summary.
public static | _clamp `_clamp(value as Int, minValue as Int = 0, maxValue as Int = -1) as Int:` | No summary.
public static | _edgeBottom `_edgeBottom(values as IList<Int>) as Int:` | No summary.
public static | _edgeLeft `_edgeLeft(values as IList<Int>) as Int:` | No summary.
public static | _edgeRight `_edgeRight(values as IList<Int>) as Int:` | No summary.
public static | _edgeTop `_edgeTop(values as IList<Int>) as Int:` | No summary.
public static | _growX `_growX(widget as Widget, params as LayoutParams) as Int:` | Computes the horizontal grow weight for a child.
public static | _growY `_growY(widget as Widget, params as LayoutParams) as Int:` | Computes the vertical grow weight for a child.
public static | _horizontalSizePolicy `_horizontalSizePolicy(widget as Widget) as SizePolicy:` | Returns the horizontal size policy of a widget.
public static | _innerHeight `_innerHeight(container as Container) as Int:` | No summary.
public static | _innerWidth `_innerWidth(container as Container) as Int:` | No summary.
public static | _innerX `_innerX(container as Container) as Int:` | No summary.
public static | _innerY `_innerY(container as Container) as Int:` | No summary.
public static | _marginBottom `_marginBottom(widget as Widget) as Int:` | No summary.
public static | _marginLeft `_marginLeft(widget as Widget) as Int:` | No summary.
public static | _marginRight `_marginRight(widget as Widget) as Int:` | No summary.
public static | _marginTop `_marginTop(widget as Widget) as Int:` | No summary.
public static | _max `_max(a as Int, b as Int) as Int:` | No summary.
public static | _min `_min(a as Int, b as Int) as Int:` | No summary.
public static | _normalizeAlign `_normalizeAlign(value as String, fallback as String) as String:` | No summary.
public static | _place `_place(widget as Widget, slotX as Int, slotY as Int, slotWidth as Int, slotHeight as Int, defaultHorizontalAlign as String = "fill", defaultVerticalAlign as String = "fill") as Void:` | No summary.
public static | _preferredHeight `_preferredHeight(widget as Widget) as Int:` | No summary.
public static | _preferredWidth `_preferredWidth(widget as Widget) as Int:` | No summary.
public static | _verticalSizePolicy `_verticalSizePolicy(widget as Widget) as SizePolicy:` | Returns the vertical size policy of a widget.
public | add `add(widget as Widget) as Void:` | Adds a widget to the attached container.
public | attach `attach(container as Container) as Void:` | Attaches this layout to its owning container.
public | detach `detach(container as Container) as Void:` | Detaches this layout from a container.
public | layout `layout(container as Container) as Void:` | No summary.