← Standard library

SliverConstraints

struct SliverConstraints
import SliverConstraints from Wax;

Inputs to a sliver layout, in logical points along the scrolling and cross axes. Sliver and box layouts use separate protocols.

Layout.wax:226

Members

scrollOffsetfield

public float scrollOffset

The amount scrolled past the start along the main axis.

Layout.wax:230

remainingExtentfield

public float remainingExtent

The remaining extent available for painting along the main axis.

Layout.wax:234

crossAxisExtentfield

public float crossAxisExtent

The available extent perpendicular to scrolling.

Layout.wax:238

constructorconstructor

public constructor (float scrollOffset, float remainingExtent, float crossAxisExtent)

Stores the supplied sliver constraints.

Layout.wax:243

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.