pub struct WindowKeyContextStackService { /* private fields */ }Expand description
Window-scoped key-context stack snapshots published by the UI runtime.
This is a data-only integration seam that allows keymap when expressions (keyctx.*) and
cross-surface command gating (menus, palette, shortcut help) to observe the active key contexts
without depending on fret-ui internals.
Implementations§
Source§impl WindowKeyContextStackService
impl WindowKeyContextStackService
pub fn snapshot(&self, window: AppWindowId) -> Option<&[Arc<str>]>
pub fn set_snapshot(&mut self, window: AppWindowId, key_contexts: Vec<Arc<str>>)
pub fn remove_window(&mut self, window: AppWindowId)
Trait Implementations§
Source§impl Debug for WindowKeyContextStackService
impl Debug for WindowKeyContextStackService
Source§impl Default for WindowKeyContextStackService
impl Default for WindowKeyContextStackService
Source§fn default() -> WindowKeyContextStackService
fn default() -> WindowKeyContextStackService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowKeyContextStackService
impl RefUnwindSafe for WindowKeyContextStackService
impl Send for WindowKeyContextStackService
impl Sync for WindowKeyContextStackService
impl Unpin for WindowKeyContextStackService
impl UnsafeUnpin for WindowKeyContextStackService
impl UnwindSafe for WindowKeyContextStackService
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