euv_ui/overlay_stack/struct.rs
1use super::*;
2
3/// Single active overlay entry registered in the unified modal/drawer/sheet/popover dismissal stack.
4#[derive(Clone, CustomDebug, Data)]
5pub struct OverlayStackEntry {
6 /// Monotonic unique registration identifier.
7 #[get(type(copy))]
8 pub(crate) id: u64,
9 /// Human-readable overlay kind or label for diagnostics and tests.
10 pub(crate) label: String,
11 /// Stacking z-index priority (highest z-index dismisses first on system back).
12 #[get(type(copy))]
13 pub(crate) z_index: i32,
14 /// Closure invoked to close this overlay cleanly.
15 #[debug(skip)]
16 #[get(skip)]
17 pub(crate) on_dismiss: Rc<RefCell<dyn FnMut()>>,
18}
19
20/// Unified LIFO overlay stack manager coordinating modal, drawer, sheet, alert dialog, and popover dismissal on system Back / Escape.
21#[derive(Clone, Copy, Debug, Default)]
22pub struct EuvOverlayStack;