Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Fluent constructor for a Grid over bare VNodes. Every vnode becomes a 1×1 cell. Use the Grid case directly when you need colSpan / rowSpan control.
Fluent constructor for a Grid over bare VNodes. Every vnode becomes a 1×1 cell. Use the Grid case directly when you need colSpan / rowSpan control.
Layout.grid(columns = 3, rowGap = 1, colGap = 2)(
TextNode(1.x, 1.y, List("a".text)),
TextNode(1.x, 1.y, List("b".text)),
TextNode(1.x, 1.y, List("c".text)),
TextNode(1.x, 1.y, List("d".text))
)
Attributes
Natural size of a layout, ignoring any container it will be placed in.
Natural size of a layout, ignoring any container it will be placed in.
Public for tests and for callers who want to size a surrounding box from measured layout dimensions.
Attributes
Resolve a layout into absolute-positioned VNodes with optional axis-size constraints.
Resolve a layout into absolute-positioned VNodes with optional axis-size constraints.
Pass -1 for either dimension to mean "no constraint" — Fill children in that axis fall back to their natural size, exactly the old behaviour. Passing a non-negative value enables Fill to consume whatever's left after fixed-size siblings; multiple Fill siblings split the remainder evenly (any leftover cells go to the last Fill child so totals add up exactly).
Value parameters
- at
-
Top-left of the layout's allocated rectangle.
- availableHeight
-
Height budget for the major axis of a Column.
-1= unbounded. - availableWidth
-
Width budget for the major axis of a Row (or just the layout, for an outermost call).
-1= unbounded.
Attributes
Resolve a layout into both (VNode list, hit-test registry). The registry is populated from any Layout.Zone wrappers encountered during resolution, so apps wiring mouse interaction can map a click coordinate back to a logical zone without recomputing rectangles.
Resolve a layout into both (VNode list, hit-test registry). The registry is populated from any Layout.Zone wrappers encountered during resolution, so apps wiring mouse interaction can map a click coordinate back to a logical zone without recomputing rectangles.
Zones outside the resolver's wrapping always pick up a real rectangle regardless of availableWidth / availableHeight: the tracked rect uses each subtree's resolved size, so Layout.Fill children record their post-fill rectangle, not their natural size.
Type parameter Id declares the registry's id type at the call site. Because of JVM erasure the cast is unchecked at runtime — apps are responsible for using uniform id types within a single tracked layout tree (sealed enums / strings / ints; not mixed). Mixing id types and recovering the right ones from the registry requires the caller to pattern-match on each entry's runtime value.
Value parameters
- at
-
Top-left of the layout's allocated rectangle.
- availableHeight
-
Height budget along the major axis.
-1= unbounded. - availableWidth
-
Width budget along the major axis.
-1= unbounded (same convention as resolveTo). - layout
-
Layout to resolve.
Attributes
Extensions
Extensions
Extension lifting a VNode into a Layout.Elem.