kova-native-layout 0.2.0

Flexbox/grid layout engine for Kova Native built on taffy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Layout for Kova Native.
//!
//! [`LayoutStyle`] is Kova Native's own vocabulary for flexbox, grid, block,
//! absolute positioning, sizing constraints, spacing and overflow. The
//! [`LayoutEngine`] solves it incrementally with taffy: nodes cache their
//! results and only dirty subtrees are recomputed.

mod engine;
mod style;

pub use engine::{AvailableSpace, LayoutEngine, LayoutId, MeasureInput, NodeLayout};
pub use style::{
    Align, Axes, Display, FlexDirection, FlexWrap, GridPlacement, GridStyle, Justify, LayoutStyle,
    Length, Overflow, Position, Track, auto, pct, px, relative,
};

#[cfg(test)]
mod tests;