SingleChildLayoutContext
scoped struct SingleChildLayoutContextimport 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.
Members
Measuremethod
public fn Measure(ChildConstraints constraints) : ChildGeometryMeasures the child with the supplied constraints. Repeated measurement is allowed; the latest successful result is used by Place.
Placemethod
public fn Place(float x, float y) : voidPlaces the previously measured child at x/y logical-point offsets. Requires a successful measurement in this invocation.
Omitmethod
public fn Omit() : voidExplicitly excludes the child from this layout invocation instead of measuring and placing it.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.