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
//! This module contains traits and helpers for layout. By default, standard frame-based layouts
//! are supported via the `Layout` trait, which all widgets implement. If you opt in to the
//! `AutoLayout` feature, each widget will default to using AutoLayout, which can be beneficial in
//! more complicated views that need to deal with differing screen sizes.

mod traits;
pub use traits::Layout;

mod animator;
pub use animator::LayoutConstraintAnimatorProxy;

#[cfg(feature = "autolayout")]
mod attributes;

#[cfg(feature = "autolayout")]
pub use attributes::*;

#[cfg(feature = "autolayout")]
mod constraint;

#[cfg(feature = "autolayout")]
pub use constraint::LayoutConstraint;

#[cfg(feature = "autolayout")]
mod dimension;

#[cfg(feature = "autolayout")]
pub use dimension::LayoutAnchorDimension;

#[cfg(feature = "autolayout")]
mod horizontal;

#[cfg(feature = "autolayout")]
pub use horizontal::LayoutAnchorX;

#[cfg(feature = "autolayout")]
mod vertical;

#[cfg(feature = "autolayout")]
pub use vertical::LayoutAnchorY;

#[cfg(feature = "autolayout")]
mod safe_guide;

#[cfg(feature = "autolayout")]
pub use safe_guide::SafeAreaLayoutGuide;