pub struct ClickState {
pub last_node: Option<DomNodeId>,
pub last_position: LogicalPosition,
pub last_time_ms: u64,
pub click_count: u8,
}Expand description
Click state for detecting double/triple clicks
Fields§
§last_node: Option<DomNodeId>Last clicked node
last_position: LogicalPositionLast click position
last_time_ms: u64Last click time (as milliseconds since some epoch)
click_count: u8Current click count (1=single, 2=double, 3=triple)
Trait Implementations§
Source§impl Clone for ClickState
impl Clone for ClickState
Source§fn clone(&self) -> ClickState
fn clone(&self) -> ClickState
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 ClickState
impl Debug for ClickState
Source§impl Default for ClickState
impl Default for ClickState
Source§impl PartialEq for ClickState
impl PartialEq for ClickState
impl StructuralPartialEq for ClickState
Auto Trait Implementations§
impl Freeze for ClickState
impl RefUnwindSafe for ClickState
impl Send for ClickState
impl Sync for ClickState
impl Unpin for ClickState
impl UnwindSafe for ClickState
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