pub struct GesturePoint {
pub client_x: f64,
pub client_y: f64,
}Expand description
The live position of the tracked finger, in client coordinates.
A plain value type rather than a borrow of the event’s touch list, so the recognizer can be exercised without constructing DOM events.
Fields§
§client_x: f64X in client coordinates.
client_y: f64Y in client coordinates.
Implementations§
Source§impl GesturePoint
impl GesturePoint
pub fn get_client_x(&self) -> f64
pub fn get_mut_client_x(&mut self) -> &mut f64
pub fn set_client_x(&mut self, val: f64) -> &mut Self
pub fn get_client_y(&self) -> f64
pub fn get_mut_client_y(&mut self) -> &mut f64
pub fn set_client_y(&mut self, val: f64) -> &mut Self
Trait Implementations§
Source§impl Clone for GesturePoint
impl Clone for GesturePoint
impl Copy for GesturePoint
Source§impl Debug for GesturePoint
impl Debug for GesturePoint
Source§impl Default for GesturePoint
impl Default for GesturePoint
Source§impl PartialEq for GesturePoint
impl PartialEq for GesturePoint
impl StructuralPartialEq for GesturePoint
Auto Trait Implementations§
impl Freeze for GesturePoint
impl RefUnwindSafe for GesturePoint
impl Send for GesturePoint
impl Sync for GesturePoint
impl Unpin for GesturePoint
impl UnsafeUnpin for GesturePoint
impl UnwindSafe for GesturePoint
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