pub struct SwipeParams {
pub x1: i32,
pub y1: i32,
pub x2: i32,
pub y2: i32,
pub duration_ms: u32,
pub rest_ms: Option<u32>,
}Expand description
Parameters of swipe: the pointer goes down at (x1, y1), moves along
the line to (x2, y2) over duration_ms and lifts there, moving, so
the content flings on.
Fields§
§x1: i32§y1: i32§x2: i32§y2: i32§duration_ms: u32§rest_ms: Option<u32>How long the pointer rests at (x2, y2) before it lifts, after
which it moves one pixel on along the line and lifts there (task
10.16). Android’s velocity tracker takes a pointer that has not
moved for 40 ms as stopped when its next event comes, so the content
stops with the pointer instead of flinging.
Trait Implementations§
Source§impl Clone for SwipeParams
impl Clone for SwipeParams
Source§impl Debug for SwipeParams
impl Debug for SwipeParams
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for SwipeParams
impl<'bytes, Ctx> Decode<'bytes, Ctx> for SwipeParams
Source§impl<Ctx> Encode<Ctx> for SwipeParams
impl<Ctx> Encode<Ctx> for SwipeParams
impl Eq for SwipeParams
Source§impl PartialEq for SwipeParams
impl PartialEq for SwipeParams
impl StructuralPartialEq for SwipeParams
Auto Trait Implementations§
impl Freeze for SwipeParams
impl RefUnwindSafe for SwipeParams
impl Send for SwipeParams
impl Sync for SwipeParams
impl Unpin for SwipeParams
impl UnsafeUnpin for SwipeParams
impl UnwindSafe for SwipeParams
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