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§
- Layout
Error - A failure reported by the underlying Taffy tree, e.g. an unknown node id.
- Layout
Id - A type representing the id of a single node in a tree of nodes
- Layout
Style - The box model a widget asks for.
axis: Nonemakes a leaf. - Layout
Tree - A layout tree whose measured leaves carry a context
C. - Measure
Input - What a measured leaf is asked.