pub struct SynthesizePinchGestureParams { /* private fields */ }Expand description
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
Implementations§
Source§impl SynthesizePinchGestureParams
impl SynthesizePinchGestureParams
Sourcepub fn builder(
x: f64,
y: f64,
scale_factor: f64,
) -> SynthesizePinchGestureParamsBuilder
pub fn builder( x: f64, y: f64, scale_factor: f64, ) -> SynthesizePinchGestureParamsBuilder
Creates a builder for this type with the required parameters:
x: X coordinate of the start of the gesture in CSS pixels.y: Y coordinate of the start of the gesture in CSS pixels.scale_factor: Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
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<i64>
pub fn relative_speed(&self) -> Option<i64>
Relative pointer speed in pixels per second (default: 800).
Sourcepub fn gesture_source_type(&self) -> Option<&GestureSourceType>
pub fn gesture_source_type(&self) -> 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<'a> CdpCommand<'a> for SynthesizePinchGestureParams
impl<'a> CdpCommand<'a> for SynthesizePinchGestureParams
Source§impl Clone for SynthesizePinchGestureParams
impl Clone for SynthesizePinchGestureParams
Source§fn clone(&self) -> SynthesizePinchGestureParams
fn clone(&self) -> SynthesizePinchGestureParams
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 Debug for SynthesizePinchGestureParams
impl Debug for SynthesizePinchGestureParams
Source§impl Default for SynthesizePinchGestureParams
impl Default for SynthesizePinchGestureParams
Source§fn default() -> SynthesizePinchGestureParams
fn default() -> SynthesizePinchGestureParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SynthesizePinchGestureParams
impl<'de> Deserialize<'de> for SynthesizePinchGestureParams
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 SynthesizePinchGestureParams
impl RefUnwindSafe for SynthesizePinchGestureParams
impl Send for SynthesizePinchGestureParams
impl Sync for SynthesizePinchGestureParams
impl Unpin for SynthesizePinchGestureParams
impl UnsafeUnpin for SynthesizePinchGestureParams
impl UnwindSafe for SynthesizePinchGestureParams
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