pub struct GestureEvent { /* private fields */ }Expand description
Real-time cross-platform gesture payload emitted reactively through Context::get_gesture().
Implementations§
Source§impl GestureEvent
impl GestureEvent
pub fn get_sequence(&self) -> u64
pub fn get_mut_sequence(&mut self) -> &mut u64
pub fn set_sequence(&mut self, val: u64) -> &mut Self
pub fn get_kind(&self) -> GestureEventKind
pub fn get_mut_kind(&mut self) -> &mut GestureEventKind
pub fn set_kind(&mut self, val: GestureEventKind) -> &mut Self
pub fn get_origin(&self) -> Point
pub fn get_mut_origin(&mut self) -> &mut Point
pub fn set_origin(&mut self, val: Point) -> &mut Self
pub fn get_position(&self) -> Point
pub fn get_mut_position(&mut self) -> &mut Point
pub fn set_position(&mut self, val: Point) -> &mut Self
pub fn get_delta(&self) -> Point
pub fn get_mut_delta(&mut self) -> &mut Point
pub fn set_delta(&mut self, val: Point) -> &mut Self
pub fn get_scale(&self) -> f32
pub fn get_mut_scale(&mut self) -> &mut f32
pub fn set_scale(&mut self, val: f32) -> &mut Self
pub fn get_pointer_count(&self) -> u8
pub fn get_mut_pointer_count(&mut self) -> &mut u8
pub fn set_pointer_count(&mut self, val: u8) -> &mut Self
pub fn get_device(&self) -> PointerDevice
pub fn get_mut_device(&mut self) -> &mut PointerDevice
pub fn set_device(&mut self, val: PointerDevice) -> &mut Self
Trait Implementations§
Source§impl Clone for GestureEvent
impl Clone for GestureEvent
impl Copy for GestureEvent
Source§impl Debug for GestureEvent
impl Debug for GestureEvent
Source§impl Default for GestureEvent
impl Default for GestureEvent
Source§impl PartialEq for GestureEvent
impl PartialEq for GestureEvent
impl StructuralPartialEq for GestureEvent
Auto Trait Implementations§
impl Forget for GestureEvent
impl Freeze for GestureEvent
impl Move for GestureEvent
impl RefUnwindSafe for GestureEvent
impl Send for GestureEvent
impl Sync for GestureEvent
impl Unpin for GestureEvent
impl UnsafeUnpin for GestureEvent
impl UnwindSafe for GestureEvent
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