pub struct SynthesizePinchGestureCommand { /* private fields */ }Available on crate features
experimental and Input only.Expand description
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
Implementations§
Source§impl SynthesizePinchGestureCommand
impl SynthesizePinchGestureCommand
pub fn builder() -> SynthesizePinchGestureCommandBuilder
Sourcepub fn scale_factor(&self) -> f64
pub fn scale_factor(&self) -> f64
Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
Sourcepub fn relative_speed(&self) -> Option<&u32>
pub fn relative_speed(&self) -> Option<&u32>
Relative pointer speed in pixels per second (default: 800).
Sourcepub fn gesture_source_type(&self) -> Option<&JsonValue>
pub fn gesture_source_type(&self) -> Option<&JsonValue>
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 SynthesizePinchGestureCommand
impl Clone for SynthesizePinchGestureCommand
Source§fn clone(&self) -> SynthesizePinchGestureCommand
fn clone(&self) -> SynthesizePinchGestureCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for SynthesizePinchGestureCommand
impl<'de> Deserialize<'de> for SynthesizePinchGestureCommand
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
Auto Trait Implementations§
impl Freeze for SynthesizePinchGestureCommand
impl RefUnwindSafe for SynthesizePinchGestureCommand
impl Send for SynthesizePinchGestureCommand
impl Sync for SynthesizePinchGestureCommand
impl Unpin for SynthesizePinchGestureCommand
impl UnsafeUnpin for SynthesizePinchGestureCommand
impl UnwindSafe for SynthesizePinchGestureCommand
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