pub struct WindowInputContextService { /* private fields */ }Expand description
Window-scoped InputContext snapshots published by the UI runtime.
This is a data-only integration seam that allows runner/platform layers (e.g. OS menu bars) to
access focus/modal state without depending on fret-ui internals.
Implementations§
Source§impl WindowInputContextService
impl WindowInputContextService
pub fn window_count(&self) -> usize
pub fn snapshot(&self, window: AppWindowId) -> Option<&InputContext>
pub fn set_snapshot(&mut self, window: AppWindowId, input_ctx: InputContext)
pub fn remove_window(&mut self, window: AppWindowId)
Trait Implementations§
Source§impl Debug for WindowInputContextService
impl Debug for WindowInputContextService
Source§impl Default for WindowInputContextService
impl Default for WindowInputContextService
Source§fn default() -> WindowInputContextService
fn default() -> WindowInputContextService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowInputContextService
impl RefUnwindSafe for WindowInputContextService
impl Send for WindowInputContextService
impl Sync for WindowInputContextService
impl Unpin for WindowInputContextService
impl UnsafeUnpin for WindowInputContextService
impl UnwindSafe for WindowInputContextService
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