pub struct MouseInputEvent { /* private fields */ }
Implementations§
Source§impl MouseInputEvent
impl MouseInputEvent
pub fn new( acceleration_ratio_x: Option<i32>, acceleration_ratio_y: Option<i32>, can_scroll: Option<bool>, delta_x: Option<i32>, delta_y: Option<i32>, has_precise_scrolling_deltas: Option<bool>, kind: JsString, modifiers: Box<[JsValue]>, wheel_ticks_x: Option<i32>, wheel_ticks_y: Option<i32>, ) -> MouseInputEvent
pub fn acceleration_ratio_x(&self) -> Option<i32>
pub fn set_acceleration_ratio_x(&mut self, value: Option<i32>)
pub fn acceleration_ratio_y(&self) -> Option<i32>
pub fn set_acceleration_ratio_y(&mut self, value: Option<i32>)
pub fn can_scroll(&self) -> Option<bool>
pub fn set_can_scroll(&mut self, value: Option<bool>)
pub fn delta_x(&self) -> Option<i32>
pub fn set_delta_x(&mut self, value: Option<i32>)
pub fn delta_y(&self) -> Option<i32>
pub fn set_delta_y(&mut self, value: Option<i32>)
pub fn has_precise_scrolling_deltas(&self) -> Option<bool>
pub fn set_has_precise_scrolling_deltas(&mut self, value: Option<bool>)
pub fn kind(&self) -> JsString
pub fn set_kind(&mut self, value: JsString)
pub fn modifiers(&self) -> Box<[JsValue]>
pub fn set_modifiers(&mut self, value: Box<[JsValue]>)
pub fn wheel_ticks_x(&self) -> Option<i32>
pub fn set_wheel_ticks_x(&mut self, value: Option<i32>)
pub fn wheel_ticks_y(&self) -> Option<i32>
pub fn set_wheel_ticks_y(&mut self, value: Option<i32>)
Trait Implementations§
Source§impl Clone for MouseInputEvent
impl Clone for MouseInputEvent
Source§fn clone(&self) -> MouseInputEvent
fn clone(&self) -> MouseInputEvent
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 MouseInputEvent
impl Debug for MouseInputEvent
Source§impl From<MouseInputEvent> for JsValue
impl From<MouseInputEvent> for JsValue
Source§fn from(value: MouseInputEvent) -> Self
fn from(value: MouseInputEvent) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for MouseInputEvent
impl FromWasmAbi for MouseInputEvent
Source§impl IntoWasmAbi for MouseInputEvent
impl IntoWasmAbi for MouseInputEvent
Source§impl LongRefFromWasmAbi for MouseInputEvent
impl LongRefFromWasmAbi for MouseInputEvent
Source§impl OptionFromWasmAbi for MouseInputEvent
impl OptionFromWasmAbi for MouseInputEvent
Source§impl OptionIntoWasmAbi for MouseInputEvent
impl OptionIntoWasmAbi for MouseInputEvent
Source§impl PartialEq for MouseInputEvent
impl PartialEq for MouseInputEvent
Source§impl RefFromWasmAbi for MouseInputEvent
impl RefFromWasmAbi for MouseInputEvent
Source§type Anchor = RcRef<MouseInputEvent>
type Anchor = RcRef<MouseInputEvent>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for MouseInputEvent
impl RefMutFromWasmAbi for MouseInputEvent
Source§impl TryFromJsValue for MouseInputEvent
impl TryFromJsValue for MouseInputEvent
Source§impl VectorFromWasmAbi for MouseInputEvent
impl VectorFromWasmAbi for MouseInputEvent
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[MouseInputEvent]>
Source§impl VectorIntoJsValue for MouseInputEvent
impl VectorIntoJsValue for MouseInputEvent
fn vector_into_jsvalue(vector: Box<[MouseInputEvent]>) -> JsValue
Source§impl VectorIntoWasmAbi for MouseInputEvent
impl VectorIntoWasmAbi for MouseInputEvent
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[MouseInputEvent]>) -> Self::Abi
Source§impl WasmDescribeVector for MouseInputEvent
impl WasmDescribeVector for MouseInputEvent
impl StructuralPartialEq for MouseInputEvent
impl SupportsConstructor for MouseInputEvent
impl SupportsInstanceProperty for MouseInputEvent
impl SupportsStaticProperty for MouseInputEvent
Auto Trait Implementations§
impl Freeze for MouseInputEvent
impl RefUnwindSafe for MouseInputEvent
impl !Send for MouseInputEvent
impl !Sync for MouseInputEvent
impl Unpin for MouseInputEvent
impl UnwindSafe for MouseInputEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.