pub struct EmulateTouchFromMouseEventBuilder { /* private fields */ }Expand description
Builder for EmulateTouchFromMouseEvent.
Implementations§
Source§impl EmulateTouchFromMouseEventBuilder
impl EmulateTouchFromMouseEventBuilder
Sourcepub fn type<VALUE: Into<EmulateTouchFromMouseEventTypeOption>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn type<VALUE: Into<EmulateTouchFromMouseEventTypeOption>>( &mut self, value: VALUE, ) -> &mut Self
Type of the mouse event.
Sourcepub fn x<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn x<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
X coordinate of the mouse pointer in DIP.
Sourcepub fn y<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn y<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Y coordinate of the mouse pointer in DIP.
Mouse button. Only “none”, “left”, “right” are supported.
Sourcepub fn timestamp<VALUE: Into<TimeSinceEpoch>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn timestamp<VALUE: Into<TimeSinceEpoch>>( &mut self, value: VALUE, ) -> &mut Self
Time at which the event occurred (default: current time).
Sourcepub fn delta_x<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn delta_x<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
X delta in DIP for mouse wheel event (default: 0).
Sourcepub fn delta_y<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn delta_y<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Y delta in DIP for mouse wheel event (default: 0).
Sourcepub fn modifiers<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn modifiers<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Sourcepub fn click_count<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn click_count<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Number of times the mouse button was clicked (default: 0).
Sourcepub fn build(
&self,
) -> Result<EmulateTouchFromMouseEvent, EmulateTouchFromMouseEventBuilderError>
pub fn build( &self, ) -> Result<EmulateTouchFromMouseEvent, EmulateTouchFromMouseEventBuilderError>
Trait Implementations§
Source§impl Clone for EmulateTouchFromMouseEventBuilder
impl Clone for EmulateTouchFromMouseEventBuilder
Source§fn clone(&self) -> EmulateTouchFromMouseEventBuilder
fn clone(&self) -> EmulateTouchFromMouseEventBuilder
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 EmulateTouchFromMouseEventBuilder
impl RefUnwindSafe for EmulateTouchFromMouseEventBuilder
impl Send for EmulateTouchFromMouseEventBuilder
impl Sync for EmulateTouchFromMouseEventBuilder
impl Unpin for EmulateTouchFromMouseEventBuilder
impl UnsafeUnpin for EmulateTouchFromMouseEventBuilder
impl UnwindSafe for EmulateTouchFromMouseEventBuilder
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