pub struct SynthesizePinchGesture {
pub x: JsFloat,
pub y: JsFloat,
pub scale_factor: JsFloat,
pub relative_speed: Option<JsUInt>,
pub gesture_source_type: Option<GestureSourceType>,
}Expand description
Synthesizes a pinch 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.
scale_factor: JsFloatRelative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
relative_speed: Option<JsUInt>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).
Trait Implementations§
Source§impl Clone for SynthesizePinchGesture
impl Clone for SynthesizePinchGesture
Source§fn clone(&self) -> SynthesizePinchGesture
fn clone(&self) -> SynthesizePinchGesture
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 SynthesizePinchGesture
impl Debug for SynthesizePinchGesture
Source§impl<'de> Deserialize<'de> for SynthesizePinchGesture
impl<'de> Deserialize<'de> for SynthesizePinchGesture
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 SynthesizePinchGesture
impl Method for SynthesizePinchGesture
const NAME: &'static str = "Input.synthesizePinchGesture"
type ReturnObject = SynthesizePinchGestureReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for SynthesizePinchGesture
impl PartialEq for SynthesizePinchGesture
Source§impl Serialize for SynthesizePinchGesture
impl Serialize for SynthesizePinchGesture
impl StructuralPartialEq for SynthesizePinchGesture
Auto Trait Implementations§
impl Freeze for SynthesizePinchGesture
impl RefUnwindSafe for SynthesizePinchGesture
impl Send for SynthesizePinchGesture
impl Sync for SynthesizePinchGesture
impl Unpin for SynthesizePinchGesture
impl UnsafeUnpin for SynthesizePinchGesture
impl UnwindSafe for SynthesizePinchGesture
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