Struct zng_view_api::config::MultiClickConfig
source · pub struct MultiClickConfig {
pub time: Duration,
pub area: DipSize,
}Expand description
System settings needed for implementing double/triple clicks.
Fields§
§time: DurationMaximum time interval between clicks.
Only repeated clicks within this time interval can count as double-clicks.
area: DipSizeMaximum (x, y) distance in pixels.
Only repeated clicks that are within this distance of the first click can count as double-clicks.
Trait Implementations§
source§impl Clone for MultiClickConfig
impl Clone for MultiClickConfig
source§fn clone(&self) -> MultiClickConfig
fn clone(&self) -> MultiClickConfig
Returns a copy 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 MultiClickConfig
impl Debug for MultiClickConfig
source§impl<'de> Deserialize<'de> for MultiClickConfig
impl<'de> Deserialize<'de> for MultiClickConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for MultiClickConfig
impl PartialEq for MultiClickConfig
source§fn eq(&self, other: &MultiClickConfig) -> bool
fn eq(&self, other: &MultiClickConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MultiClickConfig
impl Serialize for MultiClickConfig
impl Copy for MultiClickConfig
impl Eq for MultiClickConfig
impl StructuralPartialEq for MultiClickConfig
Auto Trait Implementations§
impl Freeze for MultiClickConfig
impl RefUnwindSafe for MultiClickConfig
impl Send for MultiClickConfig
impl Sync for MultiClickConfig
impl Unpin for MultiClickConfig
impl UnwindSafe for MultiClickConfig
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