Skip to main content

kova_native_layout/
lib.rs

1//! Layout for Kova Native.
2//!
3//! [`LayoutStyle`] is Kova Native's own vocabulary for flexbox, grid, block,
4//! absolute positioning, sizing constraints, spacing and overflow. The
5//! [`LayoutEngine`] solves it incrementally with taffy: nodes cache their
6//! results and only dirty subtrees are recomputed.
7
8mod engine;
9mod style;
10
11pub use engine::{AvailableSpace, LayoutEngine, LayoutId, MeasureInput, NodeLayout};
12pub use style::{
13    Align, Axes, Display, FlexDirection, FlexWrap, GridPlacement, GridStyle, Justify, LayoutStyle,
14    Length, Overflow, Position, Track, auto, pct, px, relative,
15};
16
17#[cfg(test)]
18mod tests;