pub struct WheelData { /* private fields */ }
Expand description
Data associated with a WheelEvent
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WheelData
impl<'de> Deserialize<'de> for WheelData
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PlatformEventData> for WheelData
impl From<&PlatformEventData> for WheelData
Source§fn from(val: &PlatformEventData) -> Self
fn from(val: &PlatformEventData) -> Self
Converts to this type from the input type.
Source§impl From<&WheelData> for SerializedWheelData
impl From<&WheelData> for SerializedWheelData
Source§impl<E: HasWheelData> From<E> for WheelData
impl<E: HasWheelData> From<E> for WheelData
Source§impl InteractionElementOffset for WheelData
impl InteractionElementOffset for WheelData
Source§fn element_coordinates(&self) -> ElementPoint
fn element_coordinates(&self) -> ElementPoint
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) -> ClientPoint
fn client_coordinates(&self) -> ClientPoint
Gets the coordinates of the event relative to the browser viewport.
Source§fn page_coordinates(&self) -> PagePoint
fn page_coordinates(&self) -> PagePoint
Gets the coordinates of the event relative to the page.
Source§fn screen_coordinates(&self) -> ScreenPoint
fn screen_coordinates(&self) -> ScreenPoint
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> 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.