pub struct SynthesizePinchGestureBuilder { /* private fields */ }Expand description
Builder for SynthesizePinchGesture.
Implementations§
Source§impl SynthesizePinchGestureBuilder
impl SynthesizePinchGestureBuilder
Sourcepub fn x<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn x<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
X coordinate of the start of the gesture in CSS pixels.
Sourcepub fn y<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn y<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Y coordinate of the start of the gesture in CSS pixels.
Sourcepub fn scale_factor<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn scale_factor<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
Sourcepub fn relative_speed<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn relative_speed<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Relative pointer speed in pixels per second (default: 800).
Sourcepub fn gesture_source_type<VALUE: Into<GestureSourceType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn gesture_source_type<VALUE: Into<GestureSourceType>>( &mut self, value: VALUE, ) -> &mut Self
Which type of input events to be generated (default: ‘default’, which queries the platform for the preferred input type).
Sourcepub fn build(
&self,
) -> Result<SynthesizePinchGesture, SynthesizePinchGestureBuilderError>
pub fn build( &self, ) -> Result<SynthesizePinchGesture, SynthesizePinchGestureBuilderError>
Trait Implementations§
Source§impl Clone for SynthesizePinchGestureBuilder
impl Clone for SynthesizePinchGestureBuilder
Source§fn clone(&self) -> SynthesizePinchGestureBuilder
fn clone(&self) -> SynthesizePinchGestureBuilder
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 SynthesizePinchGestureBuilder
impl RefUnwindSafe for SynthesizePinchGestureBuilder
impl Send for SynthesizePinchGestureBuilder
impl Sync for SynthesizePinchGestureBuilder
impl Unpin for SynthesizePinchGestureBuilder
impl UnsafeUnpin for SynthesizePinchGestureBuilder
impl UnwindSafe for SynthesizePinchGestureBuilder
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