pub struct WindowCommandGatingService { /* private fields */ }Implementations§
Source§impl WindowCommandGatingService
impl WindowCommandGatingService
pub fn snapshot( &self, window: AppWindowId, ) -> Option<&WindowCommandGatingSnapshot>
pub fn base_snapshot( &self, window: AppWindowId, ) -> Option<&WindowCommandGatingSnapshot>
Sourcepub fn set_base_snapshot(
&mut self,
window: AppWindowId,
snapshot: WindowCommandGatingSnapshot,
)
pub fn set_base_snapshot( &mut self, window: AppWindowId, snapshot: WindowCommandGatingSnapshot, )
Sets the base override snapshot for the window.
Nested overlays should prefer push_snapshot so they do not overwrite other overrides.
Sourcepub fn set_snapshot(
&mut self,
window: AppWindowId,
snapshot: WindowCommandGatingSnapshot,
)
pub fn set_snapshot( &mut self, window: AppWindowId, snapshot: WindowCommandGatingSnapshot, )
Sets the base override snapshot for the window.
Nested overlays should prefer push_snapshot so they do not overwrite other overrides.
pub fn clear_base_snapshot(&mut self, window: AppWindowId)
pub fn clear_snapshot(&mut self, window: AppWindowId)
Sourcepub fn push_snapshot(
&mut self,
window: AppWindowId,
snapshot: WindowCommandGatingSnapshot,
) -> WindowCommandGatingHandle
pub fn push_snapshot( &mut self, window: AppWindowId, snapshot: WindowCommandGatingSnapshot, ) -> WindowCommandGatingHandle
Pushes an overlay-scoped gating snapshot and returns a handle that can later remove it.
The most recently pushed snapshot wins (snapshot() returns the stack top).
pub fn update_pushed_snapshot( &mut self, handle: WindowCommandGatingHandle, snapshot: WindowCommandGatingSnapshot, ) -> bool
pub fn pop_snapshot( &mut self, handle: WindowCommandGatingHandle, ) -> Option<WindowCommandGatingSnapshot>
pub fn remove_window(&mut self, window: AppWindowId)
Trait Implementations§
Source§impl Debug for WindowCommandGatingService
impl Debug for WindowCommandGatingService
Source§impl Default for WindowCommandGatingService
impl Default for WindowCommandGatingService
Source§fn default() -> WindowCommandGatingService
fn default() -> WindowCommandGatingService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowCommandGatingService
impl RefUnwindSafe for WindowCommandGatingService
impl Send for WindowCommandGatingService
impl Sync for WindowCommandGatingService
impl Unpin for WindowCommandGatingService
impl UnsafeUnpin for WindowCommandGatingService
impl UnwindSafe for WindowCommandGatingService
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