pub struct EmulateTouchFromMouseEventCommandBuilder { /* private fields */ }Available on crate features
Input and experimental only.Implementations§
Source§impl EmulateTouchFromMouseEventCommandBuilder
impl EmulateTouchFromMouseEventCommandBuilder
Sourcepub fn type(&mut self, v: EmulateTouchFromMouseEventCommandType) -> &mut Self
pub fn type(&mut self, v: EmulateTouchFromMouseEventCommandType) -> &mut Self
Type of the mouse event.
Mouse button. Only “none”, “left”, “right” are supported.
Sourcepub fn timestamp(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn timestamp(&mut self, v: TimeSinceEpoch) -> &mut Self
Time at which the event occurred (default: current time).
Sourcepub fn delta_x(&mut self, v: f64) -> &mut Self
pub fn delta_x(&mut self, v: f64) -> &mut Self
X delta in DIP for mouse wheel event (default: 0).
Sourcepub fn delta_y(&mut self, v: f64) -> &mut Self
pub fn delta_y(&mut self, v: f64) -> &mut Self
Y delta in DIP for mouse wheel event (default: 0).
Sourcepub fn modifiers(&mut self, v: u32) -> &mut Self
pub fn modifiers(&mut self, v: u32) -> &mut Self
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Sourcepub fn click_count(&mut self, v: u32) -> &mut Self
pub fn click_count(&mut self, v: u32) -> &mut Self
Number of times the mouse button was clicked (default: 0).
pub fn build( &mut self, ) -> Result<EmulateTouchFromMouseEventCommand, &'static str>
Trait Implementations§
Source§impl Clone for EmulateTouchFromMouseEventCommandBuilder
impl Clone for EmulateTouchFromMouseEventCommandBuilder
Source§fn clone(&self) -> EmulateTouchFromMouseEventCommandBuilder
fn clone(&self) -> EmulateTouchFromMouseEventCommandBuilder
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 EmulateTouchFromMouseEventCommandBuilder
impl RefUnwindSafe for EmulateTouchFromMouseEventCommandBuilder
impl Send for EmulateTouchFromMouseEventCommandBuilder
impl Sync for EmulateTouchFromMouseEventCommandBuilder
impl Unpin for EmulateTouchFromMouseEventCommandBuilder
impl UnwindSafe for EmulateTouchFromMouseEventCommandBuilder
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