pub struct SynthesizeTapGestureCommandBuilder { /* private fields */ }Available on crate features
Input and experimental only.Implementations§
Source§impl SynthesizeTapGestureCommandBuilder
impl SynthesizeTapGestureCommandBuilder
Sourcepub fn x(&mut self, v: f64) -> &mut Self
pub fn x(&mut self, v: f64) -> &mut Self
X coordinate of the start of the gesture in CSS pixels.
Sourcepub fn y(&mut self, v: f64) -> &mut Self
pub fn y(&mut self, v: f64) -> &mut Self
Y coordinate of the start of the gesture in CSS pixels.
Sourcepub fn duration(&mut self, v: u32) -> &mut Self
pub fn duration(&mut self, v: u32) -> &mut Self
Duration between touchdown and touchup events in ms (default: 50).
Sourcepub fn tap_count(&mut self, v: u32) -> &mut Self
pub fn tap_count(&mut self, v: u32) -> &mut Self
Number of times to perform the tap (e.g. 2 for double tap, default: 1).
Sourcepub fn gesture_source_type(&mut self, v: JsonValue) -> &mut Self
pub fn gesture_source_type(&mut self, v: JsonValue) -> &mut Self
Which type of input events to be generated (default: ‘default’, which queries the platform for the preferred input type).
pub fn build(&mut self) -> Result<SynthesizeTapGestureCommand, &'static str>
Trait Implementations§
Source§impl Clone for SynthesizeTapGestureCommandBuilder
impl Clone for SynthesizeTapGestureCommandBuilder
Source§fn clone(&self) -> SynthesizeTapGestureCommandBuilder
fn clone(&self) -> SynthesizeTapGestureCommandBuilder
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 moreAuto Trait Implementations§
impl Freeze for SynthesizeTapGestureCommandBuilder
impl RefUnwindSafe for SynthesizeTapGestureCommandBuilder
impl Send for SynthesizeTapGestureCommandBuilder
impl Sync for SynthesizeTapGestureCommandBuilder
impl Unpin for SynthesizeTapGestureCommandBuilder
impl UnwindSafe for SynthesizeTapGestureCommandBuilder
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