pub trait InteractionElementOffset: InteractionLocation {
// Required method
fn element_coordinates(&self) -> ElementPoint;
// Provided method
fn coordinates(&self) -> Coordinates { ... }
}Expand description
A interaction that contains data about the location of the event.
Required Methods§
Sourcefn element_coordinates(&self) -> ElementPoint
fn element_coordinates(&self) -> ElementPoint
Gets the coordinates of the event relative to the target element.
Provided Methods§
Sourcefn coordinates(&self) -> Coordinates
fn coordinates(&self) -> Coordinates
Gets the coordinates of the event.
Implementors§
impl InteractionElementOffset for DragData
impl InteractionElementOffset for MouseData
impl InteractionElementOffset for PointerData
impl InteractionElementOffset for SerializedDragData
impl InteractionElementOffset for SerializedMouseData
Available on crate feature
serialize only.impl InteractionElementOffset for SerializedPointerData
Available on crate feature
serialize only.impl InteractionElementOffset for SerializedWheelData
Available on crate feature
serialize only.impl InteractionElementOffset for WheelData
impl InteractionElementOffset for SerializedPointInteraction
Available on crate feature
serialize only.