← Standard library

FixedChild7LayoutContext

scoped struct FixedChild7LayoutContext
import FixedChild7LayoutContext from Wax;

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

Layout.wax:491

Members

countgetter

public get count() : int32

The fixed child count, 7.

Layout.wax:497

Measuremethod

public fn Measure(int32 index, ChildConstraints constraints) : ChildGeometry

Measures the child with the supplied constraints. Repeated measurement is allowed; the latest successful result is used by Place. An index outside [0, count) panics.

Layout.wax:502

Placemethod

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

Places the previously measured child at x/y logical-point offsets. Requires a successful measurement in this invocation. An index outside [0, count) panics.

Layout.wax:507

Omitmethod

public fn Omit(int32 index) : void

Explicitly excludes the child from this layout invocation instead of measuring and placing it. An index outside [0, count) panics.

Layout.wax:512

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.