pub trait InteractionElementOffset: InteractionLocation {
// Required method
fn element_coordinates(&self) -> Point2D<f64, ElementSpace>;
// 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) -> Point2D<f64, ElementSpace>
fn element_coordinates(&self) -> Point2D<f64, ElementSpace>
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.