pub struct WheelData { /* private fields */ }
Expand description
Data associated with a WheelEvent
Implementations§
Trait Implementations§
source§impl From<&PlatformEventData> for WheelData
impl From<&PlatformEventData> for WheelData
source§fn from(val: &PlatformEventData) -> WheelData
fn from(val: &PlatformEventData) -> WheelData
Converts to this type from the input type.
source§impl<E> From<E> for WheelDatawhere
E: HasWheelData,
impl<E> From<E> for WheelDatawhere
E: HasWheelData,
source§impl InteractionElementOffset for WheelData
impl InteractionElementOffset for WheelData
source§fn element_coordinates(&self) -> Point2D<f64, ElementSpace>
fn element_coordinates(&self) -> Point2D<f64, ElementSpace>
Gets the coordinates of the event relative to the target element.
source§fn coordinates(&self) -> Coordinates
fn coordinates(&self) -> Coordinates
Gets the coordinates of the event.
source§impl InteractionLocation for WheelData
impl InteractionLocation for WheelData
source§fn client_coordinates(&self) -> Point2D<f64, ClientSpace>
fn client_coordinates(&self) -> Point2D<f64, ClientSpace>
Gets the coordinates of the event relative to the browser viewport.
source§fn page_coordinates(&self) -> Point2D<f64, PageSpace>
fn page_coordinates(&self) -> Point2D<f64, PageSpace>
Gets the coordinates of the event relative to the page.
source§fn screen_coordinates(&self) -> Point2D<f64, ScreenSpace>
fn screen_coordinates(&self) -> Point2D<f64, ScreenSpace>
Gets the coordinates of the event relative to the screen.
source§impl ModifiersInteraction for WheelData
impl ModifiersInteraction for WheelData
source§impl PointerInteraction for WheelData
impl PointerInteraction for WheelData
Gets the buttons that are currently held down.
Gets the button that triggered the event.
Auto Trait Implementations§
impl Freeze for WheelData
impl !RefUnwindSafe for WheelData
impl !Send for WheelData
impl !Sync for WheelData
impl Unpin for WheelData
impl !UnwindSafe for WheelData
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> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.