pub struct Touch {
pub contact: i32,
pub target: Target,
pub target_offset: Rect,
pub pressure: i32,
}Expand description
Touch down/move action - initiates or moves a touch point.
Used for custom touch sequences. Pair with TouchUp to complete.
Fields§
§contact: i32Touch contact index. Default: 0.
target: TargetTouch target position. Default: recognized position.
target_offset: RectOffset applied to target.
pressure: i32Touch pressure. Default: 0.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Touch
impl<'de> Deserialize<'de> for Touch
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
Auto Trait Implementations§
impl Freeze for Touch
impl RefUnwindSafe for Touch
impl Send for Touch
impl Sync for Touch
impl Unpin for Touch
impl UnwindSafe for Touch
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