pub enum MenuEvent {
Activate(bool),
Deactivate,
Edit(bool),
NextElement,
PreviousElement,
MoveUp,
MoveDown,
MoveLeft,
MoveRight,
NextPage,
PreviousPage,
}
Expand description
Defines all possible events that could happen with a menu.
Variants§
Activate(bool)
Activation event for the menu. When the bool is true it means that the values
have already being updated. This is true when the option quick_completions
is true
Deactivate
Deactivation event
Edit(bool)
Line buffer edit event. When the bool is true it means that the values
have already being updated. This is true when the option quick_completions
is true
NextElement
Selecting next element in the menu
PreviousElement
Selecting previous element in the menu
MoveUp
Moving up in the menu
MoveDown
Moving down in the menu
MoveLeft
Moving left in the menu
MoveRight
Moving right in the menu
NextPage
Move to next page
PreviousPage
Move to previous page
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MenuEvent
impl Send for MenuEvent
impl Sync for MenuEvent
impl Unpin 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
Mutably borrows from an owned value. Read more