hti_layout/lib.rs
1mod absolute;
2mod mapper;
3
4pub use mapper::compute_layout;
5
6use hti_core::{LayoutNode, RenderWarning};
7
8pub struct LayoutOutput {
9 /// Flat list các node đã có tọa độ tuyệt đối, z-order sorted (painter's order).
10 pub nodes: Vec<LayoutNode>,
11 pub content_width: f32,
12 pub content_height: f32,
13 pub warnings: Vec<RenderWarning>,
14}