pub enum MenuEvent {
Show 15 variants
ToggleOpen,
Open,
Close,
CloseAndFocusTrigger,
CloseAll,
MenuIsOpen,
FocusNext,
FocusPrev,
FocusFirst,
FocusLast,
TriggerArrowDown,
TriggerArrowRight,
TriggerArrowLeft,
FocusNextMenuBarItem,
FocusPrevMenuBarItem,
}Expand description
Events used by menus.
Variants§
ToggleOpen
Toggle the open state of the menu.
Open
Sets the menu to an open state.
Close
Sets the menu to a closed state.
CloseAndFocusTrigger
Closes the active menu and restores focus to the trigger that opened it.
CloseAll
Closes the menu and any submenus.
MenuIsOpen
Event emitted when a menu or submenu is opened.
FocusNext
Move focus to the next item within the open popup.
FocusPrev
Move focus to the previous item within the open popup.
FocusFirst
Move focus to the first item within the open popup.
FocusLast
Move focus to the last item within the open popup.
TriggerArrowDown
ArrowDown pressed on a submenu trigger (open popup or within popup).
TriggerArrowRight
ArrowRight pressed on a submenu trigger (navigate or open submenu).
TriggerArrowLeft
ArrowLeft pressed on a submenu trigger (navigate or close submenu).
FocusNextMenuBarItem
Focus the next top-level menu bar item (used when pressing arrow keys on menu bar items).
FocusPrevMenuBarItem
Focus the previous top-level menu bar item (used when pressing arrow keys on menu bar items).
Auto Trait Implementations§
impl Freeze for MenuEvent
impl RefUnwindSafe for MenuEvent
impl Send for MenuEvent
impl Sync for MenuEvent
impl Unpin for MenuEvent
impl UnsafeUnpin for MenuEvent
impl UnwindSafe for MenuEvent
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.