Skip to main content

EuvOverlayStack

Struct EuvOverlayStack 

Source
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.

Source

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.
Source

pub fn push<CallbackFn>( label: &str, z_index: i32, on_dismiss: CallbackFn, ) -> u64
where CallbackFn: 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.).
  • CallbackFn - Closure closing the overlay when dismissed by system back.
§Returns
  • u64 - Unique registration ID used to remove the entry upon manual dismissal.
Source

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 by push.
Source

pub fn dismiss_top() -> bool

Dismisses ONLY the highest-priority (z_index, then most recent id) active overlay in LIFO order.

§Returns
  • bool - true if an active overlay was dismissed; false if the overlay stack is empty.
Source

pub fn dismiss_all() -> usize

Dismisses every active overlay currently open in top-to-bottom LIFO order.

§Returns
  • usize - Number of overlays dismissed.
Source

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.
Source

pub fn has_fullscreen() -> bool

Returns whether any fullscreen overlay (z_index >= Z_INDEX_FULLSCREEN) is currently registered on the stack.

§Returns
  • bool - true when at least one fullscreen portal is open.
Source

pub fn active_count() -> usize

Returns the number of currently open overlays registered in the stack.

§Returns
  • usize - Active overlay depth.
Source

pub fn active_labels() -> Vec<String>

Returns the ordered labels of all currently open overlays (bottom to top).

§Returns
  • Vec<String> - Active overlay labels.
Source

pub fn clear()

Clears all registered entries without invoking callbacks (useful for test reset).

Source

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 with open.

Trait Implementations§

Source§

impl Clone for EuvOverlayStack

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EuvOverlayStack

Source§

impl Debug for EuvOverlayStack

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EuvOverlayStack

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.