pub struct DispatchDetail {
pub mode: ClickActivation,
pub scroll_before: Option<ScrollPosition>,
pub scroll_after: Option<ScrollPosition>,
pub point: Option<ClickPoint>,
}Expand description
What the dispatch actually did.
Fields§
§mode: ClickActivationWhich activation mode delivered the click.
scroll_before: Option<ScrollPosition>Scroll position before the click, when it could be read.
scroll_after: Option<ScrollPosition>Scroll position after the click, when it could be read.
point: Option<ClickPoint>The measured click point, for ClickScroll::None.
Implementations§
Source§impl DispatchDetail
impl DispatchDetail
Sourcepub fn scroll_changed(&self) -> Option<bool>
pub fn scroll_changed(&self) -> Option<bool>
Whether the scroll position moved across the click.
Returns None when either reading failed, because “we could not tell”
is not the same answer as “it did not move”.
Trait Implementations§
Source§impl Clone for DispatchDetail
impl Clone for DispatchDetail
Source§fn clone(&self) -> DispatchDetail
fn clone(&self) -> DispatchDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DispatchDetail
impl Debug for DispatchDetail
Source§impl Default for DispatchDetail
impl Default for DispatchDetail
Source§fn default() -> DispatchDetail
fn default() -> DispatchDetail
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DispatchDetail
impl RefUnwindSafe for DispatchDetail
impl Send for DispatchDetail
impl Sync for DispatchDetail
impl Unpin for DispatchDetail
impl UnsafeUnpin for DispatchDetail
impl UnwindSafe for DispatchDetail
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