← Standard library

SingleChildLayoutContext

scoped struct SingleChildLayoutContext
import SingleChildLayoutContext from Wax;

A scoped capability for one child during one layout invocation. Cannot be constructed, stored, or retained. Every child must end the invocation measured and placed, or explicitly omitted.

Layout.wax:288

Members

Measuremethod

public fn Measure(ChildConstraints constraints) : ChildGeometry

Measures the child with the supplied constraints. Repeated measurement is allowed; the latest successful result is used by Place.

Layout.wax:295

Placemethod

public fn Place(float x, float y) : void

Places the previously measured child at x/y logical-point offsets. Requires a successful measurement in this invocation.

Layout.wax:300

Omitmethod

public fn Omit() : void

Explicitly excludes the child from this layout invocation instead of measuring and placing it.

Layout.wax:305

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.