pub enum TabEvent {
Selected(usize),
Close(usize),
Moved {
from: usize,
to: usize,
},
Activated(usize),
Menu {
index: usize,
at: Point,
},
}Expand description
What a person did to a strip made with Tabs::with_events.
Variants§
Selected(usize)
A tab was chosen — clicked, or reached with the arrow keys.
Close(usize)
A tab’s close button was clicked, or the tab was middle-clicked. The strip removes nothing.
Moved
A tab was dragged from from and let go at to, and the strip has
already moved it there. Indices after the move: the tab that was at
from is at to, and the ones between moved one place to make room.
Activated(usize)
A tab was double-clicked: the gesture that renames one.
Menu
A tab was right-clicked at at, in surface pixels: where its context
menu opens.
Trait Implementations§
impl Copy for TabEvent
impl Eq for TabEvent
impl StructuralPartialEq for TabEvent
Auto Trait Implementations§
impl Freeze for TabEvent
impl RefUnwindSafe for TabEvent
impl Send for TabEvent
impl Sync for TabEvent
impl Unpin for TabEvent
impl UnsafeUnpin for TabEvent
impl UnwindSafe for TabEvent
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