Trait InteractionLocation

Source
pub trait InteractionLocation {
    // Required methods
    fn client_coordinates(&self) -> ClientPoint;
    fn screen_coordinates(&self) -> ScreenPoint;
    fn page_coordinates(&self) -> PagePoint;
}
Expand description

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

Required Methods§

Source

fn client_coordinates(&self) -> ClientPoint

Gets the coordinates of the event relative to the browser viewport.

Source

fn screen_coordinates(&self) -> ScreenPoint

Gets the coordinates of the event relative to the screen.

Source

fn page_coordinates(&self) -> PagePoint

Gets the coordinates of the event relative to the page.

Implementors§