Module stack

Module stack 

Source
Expand description

Stack-based layout primitives.

The submodules implement horizontal, vertical, and overlay stacks. These views arrange child content according to alignments and spacing and are the backbone of most declarative layouts in WaterUI.

Stack

Structs§

HStack
A view that arranges its children in a horizontal line.
HStackLayout
Layout engine shared by the public HStack view.
VStack
A view that arranges its children in a vertical line.
VStackLayout
Layout engine shared by the public VStack view.
ZStack
A view that overlays its children, aligning them in front of each other.
ZStackLayout
Stacks an arbitrary number of children with a shared alignment.

Enums§

Alignment
Combined two-dimensional alignment used by overlay stacks.
Axis
Defines the axis of a stack.
HorizontalAlignment
Defines horizontal alignment options for layout components.
VerticalAlignment
Defines vertical alignment options for layout components.

Functions§

hstack
Convenience constructor that centres children and uses the default spacing.
vstack
Convenience constructor that centres children and uses the default spacing.
zstack
Creates a new ZStack with center alignment and the specified contents.