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
//! Sidebar input helpers (level 1).
//!
//! Re-exports `register_input_coordinator_sidebar` and keeps resize, scroll,
//! and collapse helpers. Event consumption lives in [`super::consume`] and
//! is re-exported here.
pub use ;
pub use register_input_coordinator_sidebar;
use ;
// ---------------------------------------------------------------------------
// Resize
// ---------------------------------------------------------------------------
/// Clamp a new size and apply it to `state.width` using the global pixel
/// limits `[MIN_SIDEBAR_WIDTH, MAX_SIDEBAR_WIDTH]`.
///
/// Use this when the sidebar lives on a vertical edge (Left/Right) — the
/// default min/max are sized for typical sidebar widths.
/// Like [`handle_sidebar_resize`] but with explicit min/max bounds.
///
/// Top / Bottom sidebars want different limits than Left / Right because the
/// dimension being resized is height, not width. Caller passes whatever range
/// is appropriate (e.g. 60..viewport_height/2).
// ---------------------------------------------------------------------------
// Scroll
// ---------------------------------------------------------------------------
/// Apply a scroll wheel delta to the per-panel scroll state.
///
/// `panel_id` — matches the key used in `state.scroll_per_panel`.
/// `delta` — pixels; positive scrolls down.
/// `content_height` / `viewport_height` — needed to clamp the offset.
// ---------------------------------------------------------------------------
// Collapse
// ---------------------------------------------------------------------------
/// Toggle the sidebar between collapsed and expanded.
// ---------------------------------------------------------------------------
// SidebarBodyBuilder
// ---------------------------------------------------------------------------
/// A row entry for [`SidebarBodyBuilder::add_radio_group`].
/// A row entry for [`SidebarBodyBuilder::add_panel_list`].