pub struct EuvOverlayStack;Expand description
Unified LIFO overlay stack manager coordinating modal, drawer, sheet, alert dialog, and popover dismissal on system Back / Escape.
Implementations§
Source§impl EuvOverlayStack
Unified overlay stack management operations for EuvOverlayStack.
impl EuvOverlayStack
Unified overlay stack management operations for EuvOverlayStack.
Sourcepub fn active_count_signal() -> Signal<usize>
pub fn active_count_signal() -> Signal<usize>
Returns a reactive signal tracking the number of currently open overlays.
§Returns
Signal<usize>- Live reactive active overlay depth signal.
Sourcepub fn push<F>(label: &str, z_index: i32, on_dismiss: F) -> u64where
F: FnMut() + 'static,
pub fn push<F>(label: &str, z_index: i32, on_dismiss: F) -> u64where
F: FnMut() + 'static,
Registers an open overlay onto the unified dismissal stack and returns its unique entry ID.
§Arguments
&str- Human-readable overlay label.i32- Layer stacking z-index (Z_INDEX_MODAL,Z_INDEX_DRAWER, etc.).F- Closure closing the overlay when dismissed by system back.
§Returns
u64- Unique registration ID used to remove the entry upon manual dismissal.
Sourcepub fn remove(id: u64)
pub fn remove(id: u64)
Removes an overlay entry by id when closed outside the back-stack path (e.g. close button or scrim tap).
§Arguments
u64- Registration ID returned bypush.
Sourcepub fn dismiss_top() -> bool
pub fn dismiss_top() -> bool
Dismisses ONLY the highest-priority (z_index, then most recent id) active overlay in LIFO order.
§Returns
bool-trueif an active overlay was dismissed;falseif the overlay stack is empty.
Sourcepub fn dismiss_all() -> usize
pub fn dismiss_all() -> usize
Dismisses every active overlay currently open in top-to-bottom LIFO order.
§Returns
usize- Number of overlays dismissed.
Sourcepub fn dismiss_fullscreen() -> usize
pub fn dismiss_fullscreen() -> usize
Dismisses all active fullscreen overlays (z_index >= Z_INDEX_FULLSCREEN) in top-to-bottom LIFO order.
§Returns
usize- Number of fullscreen overlays dismissed.
Sourcepub fn has_fullscreen() -> bool
pub fn has_fullscreen() -> bool
Returns whether any fullscreen overlay (z_index >= Z_INDEX_FULLSCREEN) is currently registered on the stack.
§Returns
bool-truewhen at least one fullscreen portal is open.
Sourcepub fn active_count() -> usize
pub fn active_count() -> usize
Returns the number of currently open overlays registered in the stack.
§Returns
usize- Active overlay depth.
Sourcepub fn active_labels() -> Vec<String>
pub fn active_labels() -> Vec<String>
Returns the ordered labels of all currently open overlays (bottom to top).
§Returns
Vec<String>- Active overlay labels.
Sourcepub fn clear()
pub fn clear()
Clears all registered entries without invoking callbacks (useful for test reset).
Sourcepub fn bind_signal(open: Signal<bool>, label: &str, z_index: i32) -> Effect
pub fn bind_signal(open: Signal<bool>, label: &str, z_index: i32) -> Effect
Binds a boolean open signal (EuvModal, EuvDrawer, EuvSheet, EuvAlertDialog, etc.) to the unified overlay stack.
§Arguments
Signal<bool>- Controlled overlay visibility signal.&str- Diagnostic overlay label.i32- Layer z-index priority.
§Returns
Effect- Reactive effect keeping the stack synchronized withopen.