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§
Sourcefn client_coordinates(&self) -> ClientPoint
fn client_coordinates(&self) -> ClientPoint
Gets the coordinates of the event relative to the browser viewport.
Sourcefn screen_coordinates(&self) -> ScreenPoint
fn screen_coordinates(&self) -> ScreenPoint
Gets the coordinates of the event relative to the screen.
Sourcefn page_coordinates(&self) -> PagePoint
fn page_coordinates(&self) -> PagePoint
Gets the coordinates of the event relative to the page.