pub struct SynthesizeScrollGestureCommandBuilder { /* private fields */ }Input and experimental only.Implementations§
Source§impl SynthesizeScrollGestureCommandBuilder
impl SynthesizeScrollGestureCommandBuilder
Sourcepub fn x(&mut self, v: f64) -> &mut Self
pub fn x(&mut self, v: f64) -> &mut Self
X coordinate of the start of the gesture in CSS pixels.
Sourcepub fn y(&mut self, v: f64) -> &mut Self
pub fn y(&mut self, v: f64) -> &mut Self
Y coordinate of the start of the gesture in CSS pixels.
Sourcepub fn x_distance(&mut self, v: f64) -> &mut Self
pub fn x_distance(&mut self, v: f64) -> &mut Self
The distance to scroll along the X axis (positive to scroll left).
Sourcepub fn y_distance(&mut self, v: f64) -> &mut Self
pub fn y_distance(&mut self, v: f64) -> &mut Self
The distance to scroll along the Y axis (positive to scroll up).
Sourcepub fn x_overscroll(&mut self, v: f64) -> &mut Self
pub fn x_overscroll(&mut self, v: f64) -> &mut Self
The number of additional pixels to scroll back along the X axis, in addition to the given distance.
Sourcepub fn y_overscroll(&mut self, v: f64) -> &mut Self
pub fn y_overscroll(&mut self, v: f64) -> &mut Self
The number of additional pixels to scroll back along the Y axis, in addition to the given distance.
Sourcepub fn prevent_fling(&mut self, v: bool) -> &mut Self
pub fn prevent_fling(&mut self, v: bool) -> &mut Self
Prevent fling (default: true).
Sourcepub fn gesture_source_type(&mut self, v: JsonValue) -> &mut Self
pub fn gesture_source_type(&mut self, v: JsonValue) -> &mut Self
Which type of input events to be generated (default: ‘default’, which queries the platform for the preferred input type).
Sourcepub fn repeat_count(&mut self, v: u32) -> &mut Self
pub fn repeat_count(&mut self, v: u32) -> &mut Self
The number of times to repeat the gesture (default: 0).
Sourcepub fn repeat_delay_ms(&mut self, v: u32) -> &mut Self
pub fn repeat_delay_ms(&mut self, v: u32) -> &mut Self
The number of milliseconds delay between each repeat. (default: 250).
Sourcepub fn interaction_marker_name(&mut self, v: String) -> &mut Self
pub fn interaction_marker_name(&mut self, v: String) -> &mut Self
The name of the interaction markers to generate, if not empty (default: “”).
pub fn build(&mut self) -> Result<SynthesizeScrollGestureCommand, &'static str>
Trait Implementations§
Source§impl Clone for SynthesizeScrollGestureCommandBuilder
impl Clone for SynthesizeScrollGestureCommandBuilder
Source§fn clone(&self) -> SynthesizeScrollGestureCommandBuilder
fn clone(&self) -> SynthesizeScrollGestureCommandBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more