pub trait InteractionElementOffset: InteractionLocation {
    // Required method
    fn element_coordinates(&self) -> Point2D<f64, ElementSpace>;

    // Provided method
    fn coordinates(&self) -> Coordinates { ... }
}
Available on crate feature html only.
Expand description

A interaction that contains data about the location of the event.

Required Methods§

source

fn element_coordinates(&self) -> Point2D<f64, ElementSpace>

Gets the coordinates of the event relative to the target element.

Provided Methods§

source

fn coordinates(&self) -> Coordinates

Gets the coordinates of the event.

Implementors§