pub struct SynthesizeScrollGestureParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> SynthesizeScrollGestureParamsBuilder<'a>
impl<'a> SynthesizeScrollGestureParamsBuilder<'a>
Sourcepub fn x_distance(self, x_distance: f64) -> Self
pub fn x_distance(self, x_distance: f64) -> Self
The distance to scroll along the X axis (positive to scroll left).
Sourcepub fn y_distance(self, y_distance: f64) -> Self
pub fn y_distance(self, y_distance: f64) -> Self
The distance to scroll along the Y axis (positive to scroll up).
Sourcepub fn x_overscroll(self, x_overscroll: f64) -> Self
pub fn x_overscroll(self, x_overscroll: f64) -> Self
The number of additional pixels to scroll back along the X axis, in addition to the given distance.
Sourcepub fn y_overscroll(self, y_overscroll: f64) -> Self
pub fn y_overscroll(self, y_overscroll: f64) -> Self
The number of additional pixels to scroll back along the Y axis, in addition to the given distance.
Sourcepub fn prevent_fling(self, prevent_fling: bool) -> Self
pub fn prevent_fling(self, prevent_fling: bool) -> Self
Prevent fling (default: true).
Sourcepub fn gesture_source_type(
self,
gesture_source_type: impl Into<GestureSourceType>,
) -> Self
pub fn gesture_source_type( self, gesture_source_type: impl Into<GestureSourceType>, ) -> Self
Which type of input events to be generated (default: ‘default’, which queries the platform for the preferred input type).
Sourcepub fn repeat_count(self, repeat_count: u64) -> Self
pub fn repeat_count(self, repeat_count: u64) -> Self
The number of times to repeat the gesture (default: 0).
Sourcepub fn repeat_delay_ms(self, repeat_delay_ms: i64) -> Self
pub fn repeat_delay_ms(self, repeat_delay_ms: i64) -> Self
The number of milliseconds delay between each repeat. (default: 250).
Sourcepub fn interaction_marker_name(
self,
interaction_marker_name: impl Into<Cow<'a, str>>,
) -> Self
pub fn interaction_marker_name( self, interaction_marker_name: impl Into<Cow<'a, str>>, ) -> Self
The name of the interaction markers to generate, if not empty (default: “”).
pub fn build(self) -> SynthesizeScrollGestureParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for SynthesizeScrollGestureParamsBuilder<'a>
impl<'a> RefUnwindSafe for SynthesizeScrollGestureParamsBuilder<'a>
impl<'a> Send for SynthesizeScrollGestureParamsBuilder<'a>
impl<'a> Sync for SynthesizeScrollGestureParamsBuilder<'a>
impl<'a> Unpin for SynthesizeScrollGestureParamsBuilder<'a>
impl<'a> UnsafeUnpin for SynthesizeScrollGestureParamsBuilder<'a>
impl<'a> UnwindSafe for SynthesizeScrollGestureParamsBuilder<'a>
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