pub struct DispatchTouchEventParams {
pub event_type: TouchEventType,
pub touch_points: Vec<TouchPoint>,
pub modifiers: Option<i32>,
pub timestamp: Option<f64>,
}Expand description
Parameters for Input.dispatchTouchEvent.
Fields§
§event_type: TouchEventTypeType of the touch event.
touch_points: Vec<TouchPoint>Active touch points on the touch device.
modifiers: Option<i32>Bit field representing pressed modifier keys.
timestamp: Option<f64>Time at which the event occurred.
Implementations§
Source§impl DispatchTouchEventParams
impl DispatchTouchEventParams
Sourcepub fn touch_start(x: f64, y: f64) -> Self
pub fn touch_start(x: f64, y: f64) -> Self
Create a touch start event.
Sourcepub fn touch_move(x: f64, y: f64) -> Self
pub fn touch_move(x: f64, y: f64) -> Self
Create a touch move event.
Sourcepub fn touch_cancel() -> Self
pub fn touch_cancel() -> Self
Create a touch cancel event.
Trait Implementations§
Source§impl Clone for DispatchTouchEventParams
impl Clone for DispatchTouchEventParams
Source§fn clone(&self) -> DispatchTouchEventParams
fn clone(&self) -> DispatchTouchEventParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DispatchTouchEventParams
impl Debug for DispatchTouchEventParams
Auto Trait Implementations§
impl Freeze for DispatchTouchEventParams
impl RefUnwindSafe for DispatchTouchEventParams
impl Send for DispatchTouchEventParams
impl Sync for DispatchTouchEventParams
impl Unpin for DispatchTouchEventParams
impl UnwindSafe for DispatchTouchEventParams
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