Skip to main content

Module layout_node

Module layout_node 

Source
Expand description

Layout node system for exposing component layout structure.

This allows VStack, HStack, and ScrollView to expose their internal structure to the layout system for proper constrained layout.

Structs§

HStackNode
HStack layout node.
LayoutViewport
A viewport for layout calculations.
ScrollNode
Scroll view layout node.
StackLayoutEntry
A layout entry in a stack.
VStackNode
VStack layout node.

Enums§

LayoutNode
Layout node types.

Traits§

LayoutNodeProvider
Trait for components that expose a layout node.

Functions§

allocate_stack_sizes
Calculate sizes for stack entries given available space.
visible_stack_entries
Filter visible stack entries based on viewport.