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
//! Popup composite widget — transient floating panel anchored to a trigger.
//!
//! ## API convention
//!
//! - `register_input_coordinator_popup` — registers the composite + child
//! hit-rects with an `InputCoordinator`. No drawing. Use for explicit
//! z-order control.
//! - `register_context_manager_popup` — convenience wrapper: takes a
//! `ContextManager`, registers, and draws in one call.
//!
//! ## Templates (`PopupRenderKind`)
//!
//! | Kind | Chrome | Body |
//! |------|--------|------|
//! | `Plain` | frame + shadow | body closure |
//! | `ColorPickerGrid` | frame + shadow + blur | swatch grid + opacity |
//! | `ColorPickerHsv` | frame + shadow + blur | SV + hue + hex + opacity + actions |
//! | `SwatchGrid` | frame + shadow | preset grid + custom + remove |
//! | `ItemList` | frame + shadow | vertical item list |
//! | `IndicatorStrip` | alpha fill only | per-indicator action rows |
//! | `Custom` | none | caller-provided draw closure |
//!
//! ## Usage
//!
//! ```ignore
//! use uzor::ui::widgets::composite::popup::{
//! register_context_manager_popup,
//! PopupView, PopupViewKind, PopupState, PopupSettings,
//! PopupRenderKind, BackdropKind, ColorPickerLevel,
//! DefaultPopupTheme, DefaultPopupStyle, BackgroundFill,
//! };
//! ```
// --- Re-exports ---------------------------------------------------------------
pub use ;
pub use register_context_manager_popup;
pub use PopupSettings;
pub use PopupState;
pub use ;
pub use ;
pub use ;