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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//! Composition DSL — fluent builder API for SlintUI shell configuration.
//!
//! Rules from `rules/slint/composition.md` are enforced **by construction**:
//! wrong configurations are `DslError`, not silent visual failures.
//!
//! # Example
//! ```rust,no_run
//! use slint_ui_templates::dsl::{AppDsl, Nav, Toolbar};
//! use slint_ui_templates::shell::Platform;
//!
//! let dsl = AppDsl::builder("My App")
//! .platform(Platform::Windows)
//! .window_size(1100, 720)
//! .nav(vec![
//! Nav::new("home", "Home", "home"),
//! Nav::new("list", "List", "list"),
//! Nav::new("settings", "Settings", "settings"),
//! ])
//! .status("Ready")
//! .build()
//! .expect("invalid DSL configuration");
//! ```
/// Applies a validated `AppDsl` configuration to a live Slint window.
/// Builder implementation for `AppDslBuilder`.
pub
/// Fluent icon name-to-codepoint registry used for icon resolution.
/// Public input types: `BgStyle`, `Nav`, `Toolbar`.
/// Validation error type returned by `AppDslBuilder::build()`.
pub use ;
pub use DslError;
pub use AppDslBuilder;
pub use cratePlatform;
// ── Resolved internal types ───────────────────────────────────────────────────
/// Nav item after icon-name resolution — holds the resolved codepoint string.
pub
/// Toolbar item after icon-name resolution — holds the resolved codepoint string.
pub
// ── Validated configuration ───────────────────────────────────────────────────
/// Validated, sealed shell configuration.
/// Can only be constructed via `AppDsl::builder().build()`.
/// A pp ds l struct.