pub struct ActionsWheel { /* private fields */ }
Expand description
Struct to create the wheel actions sequence
Implementations§
Source§impl ActionsWheel
impl ActionsWheel
pub fn new() -> ActionsWheel
pub fn pause(&mut self, duration: u32) -> &mut Self
Sourcepub fn scroll(
&mut self,
init_x_position: i32,
init_y_position: i32,
x_axis_scroll: i32,
y_axis_scroll: i32,
) -> &mut Self
pub fn scroll( &mut self, init_x_position: i32, init_y_position: i32, x_axis_scroll: i32, y_axis_scroll: i32, ) -> &mut Self
Scroll by number of pixels (x-axis and y-axis) from a starting position within the viewport. The value of pixels to scroll may be both positive and negative.
§Examples
let mut wheel = ActionsWheel::new();
wheel.scroll(0, 0, 100, 100).scroll(100, 100, 100, 100);
Trait Implementations§
Source§impl Debug for ActionsWheel
impl Debug for ActionsWheel
Source§impl<'de> Deserialize<'de> for ActionsWheel
impl<'de> Deserialize<'de> for ActionsWheel
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
Auto Trait Implementations§
impl Freeze for ActionsWheel
impl RefUnwindSafe for ActionsWheel
impl Send for ActionsWheel
impl Sync for ActionsWheel
impl Unpin for ActionsWheel
impl UnwindSafe for ActionsWheel
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