euv-ui 0.49.1

Cross-platform UI component library and 17-scheme design system for the euv framework with pixel-consistent rendering across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
use super::*;

/// Single active overlay entry registered in the unified modal/drawer/sheet/popover dismissal stack.
#[derive(Clone, CustomDebug, Data)]
pub struct OverlayStackEntry {
    /// Monotonic unique registration identifier.
    #[get(type(copy))]
    pub(crate) id: u64,
    /// Human-readable overlay kind or label for diagnostics and tests.
    pub(crate) label: String,
    /// Stacking z-index priority (highest z-index dismisses first on system back).
    #[get(type(copy))]
    pub(crate) z_index: i32,
    /// Closure invoked to close this overlay cleanly.
    #[debug(skip)]
    #[get(skip)]
    pub(crate) on_dismiss: Rc<RefCell<dyn FnMut()>>,
}

/// Unified LIFO overlay stack manager coordinating modal, drawer, sheet, alert dialog, and popover dismissal on system Back / Escape.
#[derive(Clone, Copy, Debug, Default)]
pub struct EuvOverlayStack;