Struct zng_view_api::touch::TouchUpdate
source · pub struct TouchUpdate {
pub touch: TouchId,
pub phase: TouchPhase,
pub position: DipPoint,
pub force: Option<TouchForce>,
}Expand description
Identify a new touch contact or a contact update.
Fields§
§touch: TouchIdIdentify a continuous touch contact or finger.
Multiple points of contact can happen in the same device at the same time, this ID identifies each uninterrupted contact. IDs are unique only among other concurrent touches on the same device, after a touch is ended an ID may be reused.
phase: TouchPhaseTouch phase for the id.
position: DipPointTouch center, relative to the window top-left in device independent pixels.
force: Option<TouchForce>Touch pressure force and angle.
Trait Implementations§
source§impl Clone for TouchUpdate
impl Clone for TouchUpdate
source§fn clone(&self) -> TouchUpdate
fn clone(&self) -> TouchUpdate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TouchUpdate
impl Debug for TouchUpdate
source§impl<'de> Deserialize<'de> for TouchUpdate
impl<'de> Deserialize<'de> for TouchUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TouchUpdate
impl PartialEq for TouchUpdate
source§fn eq(&self, other: &TouchUpdate) -> bool
fn eq(&self, other: &TouchUpdate) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TouchUpdate
impl Serialize for TouchUpdate
impl Copy for TouchUpdate
impl StructuralPartialEq for TouchUpdate
Auto Trait Implementations§
impl Freeze for TouchUpdate
impl RefUnwindSafe for TouchUpdate
impl Send for TouchUpdate
impl Sync for TouchUpdate
impl Unpin for TouchUpdate
impl UnwindSafe for TouchUpdate
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