pub struct SynthesizeTapGesture {
pub x: JsFloat,
pub y: JsFloat,
pub duration: Option<JsUInt>,
pub tap_count: Option<JsUInt>,
pub gesture_source_type: Option<GestureSourceType>,
}Expand description
Synthesizes a tap gesture over a time period by issuing appropriate touch events.
Fields§
§x: JsFloatX coordinate of the start of the gesture in CSS pixels.
y: JsFloatY coordinate of the start of the gesture in CSS pixels.
duration: Option<JsUInt>Duration between touchdown and touchup events in ms (default: 50).
tap_count: Option<JsUInt>Number of times to perform the tap (e.g. 2 for double tap, default: 1).
gesture_source_type: Option<GestureSourceType>Which type of input events to be generated (default: ‘default’, which queries the platform for the preferred input type).
Trait Implementations§
Source§impl Clone for SynthesizeTapGesture
impl Clone for SynthesizeTapGesture
Source§fn clone(&self) -> SynthesizeTapGesture
fn clone(&self) -> SynthesizeTapGesture
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 SynthesizeTapGesture
impl Debug for SynthesizeTapGesture
Source§impl<'de> Deserialize<'de> for SynthesizeTapGesture
impl<'de> Deserialize<'de> for SynthesizeTapGesture
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
Source§impl Method for SynthesizeTapGesture
impl Method for SynthesizeTapGesture
const NAME: &'static str = "Input.synthesizeTapGesture"
type ReturnObject = SynthesizeTapGestureReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for SynthesizeTapGesture
impl PartialEq for SynthesizeTapGesture
Source§impl Serialize for SynthesizeTapGesture
impl Serialize for SynthesizeTapGesture
impl StructuralPartialEq for SynthesizeTapGesture
Auto Trait Implementations§
impl Freeze for SynthesizeTapGesture
impl RefUnwindSafe for SynthesizeTapGesture
impl Send for SynthesizeTapGesture
impl Sync for SynthesizeTapGesture
impl Unpin for SynthesizeTapGesture
impl UnsafeUnpin for SynthesizeTapGesture
impl UnwindSafe for SynthesizeTapGesture
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