pub struct TouchPoint { /* private fields */ }
Implementations§
source§impl TouchPoint
impl TouchPoint
sourcepub fn new(inner: impl HasTouchPointData + 'static) -> TouchPoint
pub fn new(inner: impl HasTouchPointData + 'static) -> TouchPoint
Create a new TouchPoint
Trait Implementations§
source§impl Debug for TouchPoint
impl Debug for TouchPoint
source§impl<E> From<E> for TouchPointwhere
E: HasTouchPointData,
impl<E> From<E> for TouchPointwhere
E: HasTouchPointData,
source§fn from(e: E) -> TouchPoint
fn from(e: E) -> TouchPoint
Converts to this type from the input type.
source§impl InteractionLocation for TouchPoint
impl InteractionLocation for TouchPoint
source§fn client_coordinates(&self) -> Point2D<f64, ClientSpace>
fn client_coordinates(&self) -> Point2D<f64, ClientSpace>
Gets the coordinates of the event relative to the browser viewport.
source§fn page_coordinates(&self) -> Point2D<f64, PageSpace>
fn page_coordinates(&self) -> Point2D<f64, PageSpace>
Gets the coordinates of the event relative to the page.
source§fn screen_coordinates(&self) -> Point2D<f64, ScreenSpace>
fn screen_coordinates(&self) -> Point2D<f64, ScreenSpace>
Gets the coordinates of the event relative to the screen.
Auto Trait Implementations§
impl Freeze for TouchPoint
impl !RefUnwindSafe for TouchPoint
impl !Send for TouchPoint
impl !Sync for TouchPoint
impl Unpin for TouchPoint
impl !UnwindSafe for TouchPoint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.