pub struct Swipe {
pub starting: i32,
pub begin: Target,
pub begin_offset: Rect,
pub end: Vec<Target>,
pub end_offset: Vec<Rect>,
pub end_hold: Vec<i32>,
pub duration: Vec<i32>,
pub only_hover: bool,
pub contact: i32,
pub pressure: i32,
}Expand description
Linear swipe action.
Swipes from begin to end position(s). Supports waypoints.
Fields§
§starting: i32Start time offset in ms (for MultiSwipe). Default: 0.
begin: TargetSwipe start position. Default: recognized position.
begin_offset: RectOffset applied to begin.
end: Vec<Target>Swipe end position(s). Supports waypoints. Default: recognized position.
end_offset: Vec<Rect>Offset(s) applied to end.
end_hold: Vec<i32>Hold time at end position(s) in ms. Default: \[0\].
duration: Vec<i32>Duration(s) in milliseconds. Default: \[200\].
only_hover: boolHover only (no press). Default: false.
contact: i32Touch contact/button index. Default: 0.
pressure: i32Touch pressure. Default: 1.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Swipe
impl<'de> Deserialize<'de> for Swipe
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 Swipe
impl RefUnwindSafe for Swipe
impl Send for Swipe
impl Sync for Swipe
impl Unpin for Swipe
impl UnwindSafe for Swipe
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