Skip to main content

Crate ravenrs_layout

Crate ravenrs_layout 

Source
Expand description

Layout for RavenRS, built on Taffy.

Widgets describe boxes with LayoutStyle (a deliberately small subset of flexbox: stacks, gaps, padding, alignment, sizes and growth). Leaves that size themselves, such as text, carry a context C and are measured through a callback, so this crate does not depend on the text engine.

Structs§

LayoutError
A failure reported by the underlying Taffy tree, e.g. an unknown node id.
LayoutId
A type representing the id of a single node in a tree of nodes
LayoutStyle
The box model a widget asks for. axis: None makes a leaf.
LayoutTree
A layout tree whose measured leaves carry a context C.
MeasureInput
What a measured leaf is asked.

Enums§

Align
Cross-axis alignment of a stack’s children.
Available
Space offered to a measured leaf along one axis.
Axis
Direction in which a stack places its children.
Justify
Main-axis distribution of a stack’s children.