pub struct TouchPoint {
pub view_x: f32,
pub view_y: f32,
pub id: i32,
pub source: Option<Box<EventSource>>,
}
Expand description
Represents a touch screen contact point, such as a finger. It is possible to retain a reference to a TouchPoint, and track changes to it over time.
Fields
view_x: f32
The X position of the touch, in view (stage) coordinates. This value is modified when the point moves.
view_y: f32
The Y position of the touch, in view (stage) coordinates. This value is modified when the point moves.
id: i32
An identifier unique to this touch.
source: Option<Box<EventSource>>
Implementations
Trait Implementations
sourceimpl Clone for TouchPoint
impl Clone for TouchPoint
sourcefn clone(&self) -> TouchPoint
fn clone(&self) -> TouchPoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TouchPoint
impl Debug for TouchPoint
sourceimpl Default for TouchPoint
impl Default for TouchPoint
sourcefn default() -> TouchPoint
fn default() -> TouchPoint
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TouchPoint
impl Send for TouchPoint
impl Sync for TouchPoint
impl Unpin for TouchPoint
impl UnwindSafe for TouchPoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.