pub struct SynthesizePinchGestureParams {
pub x: f64,
pub y: f64,
pub scale_factor: f64,
pub relative_speed: Option<i64>,
pub gesture_source_type: Option<GestureSourceType>,
}
Expand description
Synthesizes a pinch gesture over a time period by issuing appropriate touch events. synthesizePinchGesture
Fields§
§x: f64
X coordinate of the start of the gesture in CSS pixels.
y: f64
Y coordinate of the start of the gesture in CSS pixels.
scale_factor: f64
Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
relative_speed: Option<i64>
Relative pointer speed in pixels per second (default: 800).
gesture_source_type: Option<GestureSourceType>
Which type of input events to be generated (default: ‘default’, which queries the platform for the preferred input type).
Implementations§
Source§impl SynthesizePinchGestureParams
impl SynthesizePinchGestureParams
pub fn builder() -> SynthesizePinchGestureParamsBuilder
Source§impl SynthesizePinchGestureParams
impl SynthesizePinchGestureParams
pub const IDENTIFIER: &'static str = "Input.synthesizePinchGesture"
Trait Implementations§
Source§impl Clone for SynthesizePinchGestureParams
impl Clone for SynthesizePinchGestureParams
Source§fn clone(&self) -> SynthesizePinchGestureParams
fn clone(&self) -> SynthesizePinchGestureParams
Returns a copy 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 SynthesizePinchGestureParams
impl Debug for SynthesizePinchGestureParams
Source§impl<'de> Deserialize<'de> for SynthesizePinchGestureParams
impl<'de> Deserialize<'de> for SynthesizePinchGestureParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SynthesizePinchGestureParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SynthesizePinchGestureParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for SynthesizePinchGestureParams
impl Method for SynthesizePinchGestureParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
Source§impl PartialEq for SynthesizePinchGestureParams
impl PartialEq for SynthesizePinchGestureParams
Source§fn eq(&self, other: &SynthesizePinchGestureParams) -> bool
fn eq(&self, other: &SynthesizePinchGestureParams) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for SynthesizePinchGestureParams
impl Serialize for SynthesizePinchGestureParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SynthesizePinchGestureParams
Auto Trait Implementations§
impl Freeze for SynthesizePinchGestureParams
impl RefUnwindSafe for SynthesizePinchGestureParams
impl Send for SynthesizePinchGestureParams
impl Sync for SynthesizePinchGestureParams
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more