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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//! Layout primitives for iced-plus.
//!
//! This crate provides type-safe layout components with direction-aware
//! alignment constraints and compile-time guarantees.
//!
//! # Key Types
//!
//! - [`HStack`] - Horizontal stack layout (left to right)
//! - [`VStack`] - Vertical stack layout (top to bottom)
//! - [`AppShell`] - Application shell with sidebar and header areas
//! - [`Modal`] - Modal overlay with backdrop
//! - [`Breakpoints`] - Responsive breakpoint definitions
//! - [`ShowOn`] - Show content only at certain breakpoints
//!
//! # Type Safety
//!
//! The direction is encoded in the type system:
//! - `HStack` only accepts `Vertical` cross-axis alignment
//! - `VStack` only accepts `Horizontal` cross-axis alignment
//!
//! This prevents mistakes like trying to set horizontal alignment on an HStack.
//!
//! # Responsive Layouts
//!
//! Use breakpoint helpers to create adaptive UIs:
//!
//! ```rust,ignore
//! use iced_plus_layouts::{ShowOn, BreakpointTier};
//!
//! // Only show on medium screens and up
//! ShowOn::new(sidebar).min(BreakpointTier::MD)
//! ```
//!
//! # Example
//!
//! ```rust,ignore
//! use iced_plus_layouts::{HStack, VStack};
//! use iced::alignment;
//!
//! let layout = VStack::new()
//! .spacing(16.0)
//! .align(alignment::Horizontal::Center) // Type-safe!
//! .push(text("Hello"))
//! .push(text("World"));
//! ```
pub use ;
pub use ;
pub use AppShell;
pub use ;
pub use ;