pub struct DoubleClick;Expand description
Event-handler for double-click on a widget.
Events for this handler must be processed before calling any other event-handling routines for the same widget. Otherwise, the regular event-handling might interfere with recognition of double-clicks by consuming the first click.
This event-handler doesn’t consume the first click, just the second one.
Trait Implementations§
Source§impl Clone for DoubleClick
impl Clone for DoubleClick
Source§fn clone(&self) -> DoubleClick
fn clone(&self) -> DoubleClick
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DoubleClick
impl Debug for DoubleClick
Source§impl Default for DoubleClick
impl Default for DoubleClick
Source§fn default() -> DoubleClick
fn default() -> DoubleClick
Returns the “default value” for a type. Read more
Source§impl<Selection> HandleEvent<Event, DoubleClick, DoubleClickOutcome> for TableState<Selection>
impl<Selection> HandleEvent<Event, DoubleClick, DoubleClickOutcome> for TableState<Selection>
Source§fn handle(&mut self, event: &Event, _keymap: DoubleClick) -> DoubleClickOutcome
fn handle(&mut self, event: &Event, _keymap: DoubleClick) -> DoubleClickOutcome
Handles double-click events on the table.
impl Copy for DoubleClick
Auto Trait Implementations§
impl Freeze for DoubleClick
impl RefUnwindSafe for DoubleClick
impl Send for DoubleClick
impl Sync for DoubleClick
impl Unpin for DoubleClick
impl UnwindSafe for DoubleClick
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more