pub struct TwoFingers {
pub x: i32,
pub y: i32,
pub start_x: i32,
pub start_y: i32,
pub scale: f64,
pub began: bool,
pub taken_back: bool,
}Expand description
two fingers on a widget that said TF_TWO (ui.touch_two): px of the window, logical in a mirrored one
Fields§
§x: i32the point between them
y: i32§start_x: i32where it was when this pair came down
start_y: i32§scale: f64their distance against the one at the start (1.0 = the same)
began: boolthe first read of this pair: take the anchor now
taken_back: boolthe first finger’s press went out less than 200 ms ago and was taken back for this pair: its release comes through as usual, undo what the press began
Trait Implementations§
Source§impl Clone for TwoFingers
impl Clone for TwoFingers
impl Copy for TwoFingers
Source§impl Debug for TwoFingers
impl Debug for TwoFingers
Source§impl PartialEq for TwoFingers
impl PartialEq for TwoFingers
impl StructuralPartialEq for TwoFingers
Auto Trait Implementations§
impl Forget for TwoFingers
impl Freeze for TwoFingers
impl RefUnwindSafe for TwoFingers
impl Send for TwoFingers
impl Sync for TwoFingers
impl Unpin for TwoFingers
impl UnsafeUnpin for TwoFingers
impl UnwindSafe for TwoFingers
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