pub struct ActionMenu {
pub actions: Vec<Action>,
pub focus: usize,
pub key: Key,
}Expand description
Fields§
§actions: Vec<Action>§focus: usize§key: KeyThe key that opened it, which closes it again.
Implementations§
Source§impl ActionMenu
impl ActionMenu
pub fn new(actions: Vec<Action>, key: Key) -> ActionMenu
Sourcepub fn handle(&mut self, event: &Event, first: usize) -> MenuReply
pub fn handle(&mut self, event: &Event, first: usize) -> MenuReply
Handle event, the menu’s first row being first in the view the
mouse’s rows count from.
Trait Implementations§
Source§impl Clone for ActionMenu
impl Clone for ActionMenu
Auto Trait Implementations§
impl Freeze for ActionMenu
impl RefUnwindSafe for ActionMenu
impl Send for ActionMenu
impl Sync for ActionMenu
impl Unpin for ActionMenu
impl UnsafeUnpin for ActionMenu
impl UnwindSafe for ActionMenu
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