pub struct OverlayContext { /* private fields */ }Expand description
A per-surface overlay registry: the modals/toasts/tooltips registered for priority pointer routing
on this surface. The runner activates each surface’s OverlayContext around its build/event/frame.
Implementations§
Source§impl OverlayContext
impl OverlayContext
Sourcepub fn enter(&self) -> OverlayGuard
pub fn enter(&self) -> OverlayGuard
Makes this instance the live one until the returned guard drops, which restores the previously-active instance. Nest by keeping guards in scope; they restore in reverse order.
Trait Implementations§
Source§impl Default for OverlayContext
impl Default for OverlayContext
Source§impl Drop for OverlayContext
impl Drop for OverlayContext
Auto Trait Implementations§
impl !RefUnwindSafe for OverlayContext
impl !Send for OverlayContext
impl !Sync for OverlayContext
impl !UnwindSafe for OverlayContext
impl Freeze for OverlayContext
impl Unpin for OverlayContext
impl UnsafeUnpin for OverlayContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more