pub struct EmulateTouchFromMouseEvent {
pub type: EmulateTouchFromMouseEventTypeOption,
pub x: JsUInt,
pub y: JsUInt,
pub button: MouseButton,
pub timestamp: Option<TimeSinceEpoch>,
pub delta_x: Option<JsFloat>,
pub delta_y: Option<JsFloat>,
pub modifiers: Option<JsUInt>,
pub click_count: Option<JsUInt>,
}Expand description
Emulates touch event from the mouse event parameters.
Fields§
§type: EmulateTouchFromMouseEventTypeOptionType of the mouse event.
x: JsUIntX coordinate of the mouse pointer in DIP.
y: JsUIntY coordinate of the mouse pointer in DIP.
Mouse button. Only “none”, “left”, “right” are supported.
timestamp: Option<TimeSinceEpoch>Time at which the event occurred (default: current time).
delta_x: Option<JsFloat>X delta in DIP for mouse wheel event (default: 0).
delta_y: Option<JsFloat>Y delta in DIP for mouse wheel event (default: 0).
modifiers: Option<JsUInt>Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
click_count: Option<JsUInt>Number of times the mouse button was clicked (default: 0).
Trait Implementations§
Source§impl Clone for EmulateTouchFromMouseEvent
impl Clone for EmulateTouchFromMouseEvent
Source§fn clone(&self) -> EmulateTouchFromMouseEvent
fn clone(&self) -> EmulateTouchFromMouseEvent
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 moreSource§impl Debug for EmulateTouchFromMouseEvent
impl Debug for EmulateTouchFromMouseEvent
Source§impl<'de> Deserialize<'de> for EmulateTouchFromMouseEvent
impl<'de> Deserialize<'de> for EmulateTouchFromMouseEvent
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
Source§impl Method for EmulateTouchFromMouseEvent
impl Method for EmulateTouchFromMouseEvent
const NAME: &'static str = "Input.emulateTouchFromMouseEvent"
type ReturnObject = EmulateTouchFromMouseEventReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
impl StructuralPartialEq for EmulateTouchFromMouseEvent
Auto Trait Implementations§
impl Freeze for EmulateTouchFromMouseEvent
impl RefUnwindSafe for EmulateTouchFromMouseEvent
impl Send for EmulateTouchFromMouseEvent
impl Sync for EmulateTouchFromMouseEvent
impl Unpin for EmulateTouchFromMouseEvent
impl UnsafeUnpin for EmulateTouchFromMouseEvent
impl UnwindSafe for EmulateTouchFromMouseEvent
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