dioxus_lib::events

Trait InteractionElementOffset

source
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§

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§