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.
Implementors§
impl InteractionLocation for DragData
impl InteractionLocation for MouseData
impl InteractionLocation for PointerData
impl InteractionLocation for SerializedDragData
impl InteractionLocation for SerializedMouseData
Available on crate feature
serialize only.impl InteractionLocation for SerializedPointerData
Available on crate feature
serialize only.impl InteractionLocation for SerializedWheelData
Available on crate feature
serialize only.impl InteractionLocation for TouchPoint
impl InteractionLocation for WheelData
impl InteractionLocation for SerializedPointInteraction
Available on crate feature
serialize only.