pub struct WindowMenuBarFocusService { /* private fields */ }Expand description
Window-scoped metadata for focusing an in-window menu bar.
This is a data-only contract between runner shells / UI-kit and the input-dispatch / command gating layer:
- When
present == true,focus.menu_baris expected to be handled for this window. - When
present == false(or missing),focus.menu_barshould be treated as unavailable.
Implementations§
Source§impl WindowMenuBarFocusService
impl WindowMenuBarFocusService
pub fn present(&self, window: AppWindowId) -> bool
pub fn set_present(&mut self, window: AppWindowId, present: bool)
pub fn remove_window(&mut self, window: AppWindowId)
Trait Implementations§
Source§impl Debug for WindowMenuBarFocusService
impl Debug for WindowMenuBarFocusService
Source§impl Default for WindowMenuBarFocusService
impl Default for WindowMenuBarFocusService
Source§fn default() -> WindowMenuBarFocusService
fn default() -> WindowMenuBarFocusService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowMenuBarFocusService
impl RefUnwindSafe for WindowMenuBarFocusService
impl Send for WindowMenuBarFocusService
impl Sync for WindowMenuBarFocusService
impl Unpin for WindowMenuBarFocusService
impl UnsafeUnpin for WindowMenuBarFocusService
impl UnwindSafe for WindowMenuBarFocusService
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