ferroui_pretext_layout/lib.rs
1//! Reusable wrap metrics, exclusion geometry and text flow across columns.
2//!
3//! All coordinates use the same units as the configured text measurer. This
4//! crate has no rendering, windowing or native-platform dependency.
5
6#![forbid(unsafe_code)]
7
8mod column_flow_layout;
9mod layout_primitives;
10mod obstacle_layout_helper;
11mod prepared_text_metrics;
12
13pub use column_flow_layout::{ColumnFlowLayout, LayoutError};
14pub use layout_primitives::{CircleObstacle, Interval, PositionedLine, RectObstacle, WrapMetrics};
15pub use obstacle_layout_helper::ObstacleLayoutHelper;
16pub use prepared_text_metrics::PreparedTextMetrics;
17
18#[cfg(test)]
19mod tests;