pub struct MenuFocus {
pub top: Option<usize>,
pub flyout: Vec<FlyoutFocus>,
}Expand description
The current keyboard-navigation selection over the menu and its open flyout stack (decision #8): the selected top-level item plus zero or more open flyout levels, deepest last.
Fields§
§top: Option<usize>Selected top-level item index (into Menu::items), if any.
flyout: Vec<FlyoutFocus>The stack of open flyout levels, one frame per open submenu (empty when no flyout is open); the last frame is the deepest, currently-navigated level.
Trait Implementations§
impl Eq for MenuFocus
impl StructuralPartialEq for MenuFocus
Auto Trait Implementations§
impl Freeze for MenuFocus
impl RefUnwindSafe for MenuFocus
impl Send for MenuFocus
impl Sync for MenuFocus
impl Unpin for MenuFocus
impl UnsafeUnpin for MenuFocus
impl UnwindSafe for MenuFocus
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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