1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! A layout system for positioning and sizing UI controls.
//!
//! The Layout component provides tools for arranging controls within containers.
//! It supports anchoring, docking, proportional sizing, and alignment options.
mod alignment;
mod anchors;
mod coordinate16;
mod coordinate;
mod dimension16;
mod dimension;
mod layout_mode;
mod layout_builder;
mod layout;
mod error;
mod macros;
mod dock;
mod pivot;
mod control_layout;
mod absolute_layout;
mod point_and_size_layout;
mod left_right_anchors_layout;
mod top_bottom_anchors_layout;
mod left_top_right_anchors_layout;
mod left_bottom_right_anchors_layout;
mod top_left_bottom_anchors_layout;
mod top_right_bottom_anchors_layout;
mod all_anchors_layout;
#[cfg(test)]
mod tests;
use anchors::Anchors;
use layout_mode::LayoutMode;
use absolute_layout::AbsoluteLayout;
use point_and_size_layout::PointAndSizeLayout;
use left_right_anchors_layout::LeftRightAnchorsLayout;
use top_bottom_anchors_layout::TopBottomAnchorsLayout;
use left_top_right_anchors_layout::LeftTopRightAnchorsLayout;
use left_bottom_right_anchors_layout::LeftBottomRightAnchorsLayout;
use top_left_bottom_anchors_layout::TopLeftBottomAnchorsLayout;
use top_right_bottom_anchors_layout::TopRightBottomAnchorsLayout;
use all_anchors_layout::AllAnchorsLayout;
use macros::{should_not_use, should_use};
use error::Error;
pub use layout::Layout;
pub use layout_builder::LayoutBuilder;
pub use coordinate::Coordinate;
pub use dimension::Dimension;
pub use dock::Dock;
pub use pivot::Pivot;
pub use alignment::Alignment;
pub (in crate) use dimension16::Dimension16;
pub (in crate) use coordinate16::Coordinate16;
pub (in crate) use control_layout::ControlLayout;