pub struct ClickState { /* private fields */ }
Expand description
This state is used to count the clicks separated by crate::platform::Platform::click_interval
Implementations§
Source§impl ClickState
impl ClickState
Sourcepub fn check_repeat(
&self,
mouse_event: MouseEvent,
click_interval: Duration,
) -> MouseEvent
pub fn check_repeat( &self, mouse_event: MouseEvent, click_interval: Duration, ) -> MouseEvent
Check if the click is repeated.
Trait Implementations§
Source§impl Default for ClickState
impl Default for ClickState
Source§fn default() -> ClickState
fn default() -> ClickState
Returns the “default value” for a type. Read more
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