tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 582HTML 275Markdown 8TOML 41545 Sutichaykuna

⎇ 859cd5182556840aff0fbdcdf1635c3df028e321 src/tree/mod.rs Rust · 33 siq'ikuna · 1.1 KB Ñawpa willay Pi imata llamkarqan ch'uya

Add API to expose computed grid information (#772) 859cd5182 · Steven Novaryo ·

1//! Contains both a high-level interface to Taffy using a ready-made node tree, and a set of traits for defining custom node trees.
2//!
3//! - For documentation on the high-level API, see the [`TaffyTree`] struct.
4//! - For documentation on the low-level trait-based API, see the [`traits`] module.
5
6// Submodules
7mod cache;
8mod layout;
9mod node;
10pub mod traits;
11
12pub use cache::Cache;
13pub use layout::{CollapsibleMarginSet, Layout, LayoutInput, LayoutOutput, RequestedAxis, RunMode, SizingMode};
14pub use node::NodeId;
15pub(crate) use traits::LayoutPartialTreeExt;
16pub use traits::{LayoutPartialTree, PrintTree, RoundTree, TraversePartialTree, TraverseTree};
17
18#[cfg(feature = "flexbox")]
19pub use traits::LayoutFlexboxContainer;
20
21#[cfg(feature = "grid")]
22pub use traits::LayoutGridContainer;
23
24#[cfg(feature = "block_layout")]
25pub use traits::LayoutBlockContainer;
26
27#[cfg(feature = "taffy_tree")]
28mod taffy_tree;
29#[cfg(feature = "taffy_tree")]
30pub use taffy_tree::{TaffyError, TaffyResult, TaffyTree};
31
32#[cfg(feature = "detailed_layout_info")]
33pub use layout::DetailedLayoutInfo;