pub struct MouseWheelInputEvent { /* private fields */ }
Implementations§
Source§impl MouseWheelInputEvent
impl MouseWheelInputEvent
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>, ) -> MouseWheelInputEvent
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 MouseWheelInputEvent
impl Clone for MouseWheelInputEvent
Source§fn clone(&self) -> MouseWheelInputEvent
fn clone(&self) -> MouseWheelInputEvent
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 MouseWheelInputEvent
impl Debug for MouseWheelInputEvent
Source§impl From<MouseWheelInputEvent> for JsValue
impl From<MouseWheelInputEvent> for JsValue
Source§fn from(value: MouseWheelInputEvent) -> Self
fn from(value: MouseWheelInputEvent) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for MouseWheelInputEvent
impl FromWasmAbi for MouseWheelInputEvent
Source§impl IntoWasmAbi for MouseWheelInputEvent
impl IntoWasmAbi for MouseWheelInputEvent
Source§impl PartialEq for MouseWheelInputEvent
impl PartialEq for MouseWheelInputEvent
Source§impl RefFromWasmAbi for MouseWheelInputEvent
impl RefFromWasmAbi for MouseWheelInputEvent
Source§type Anchor = RcRef<MouseWheelInputEvent>
type Anchor = RcRef<MouseWheelInputEvent>
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 VectorFromWasmAbi for MouseWheelInputEvent
impl VectorFromWasmAbi for MouseWheelInputEvent
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[MouseWheelInputEvent]>
Source§impl VectorIntoJsValue for MouseWheelInputEvent
impl VectorIntoJsValue for MouseWheelInputEvent
fn vector_into_jsvalue(vector: Box<[MouseWheelInputEvent]>) -> JsValue
Source§impl VectorIntoWasmAbi for MouseWheelInputEvent
impl VectorIntoWasmAbi for MouseWheelInputEvent
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[MouseWheelInputEvent]>) -> Self::Abi
Source§impl WasmDescribeVector for MouseWheelInputEvent
impl WasmDescribeVector for MouseWheelInputEvent
impl StructuralPartialEq for MouseWheelInputEvent
impl SupportsConstructor for MouseWheelInputEvent
impl SupportsInstanceProperty for MouseWheelInputEvent
impl SupportsStaticProperty for MouseWheelInputEvent
Auto Trait Implementations§
impl Freeze for MouseWheelInputEvent
impl RefUnwindSafe for MouseWheelInputEvent
impl !Send for MouseWheelInputEvent
impl !Sync for MouseWheelInputEvent
impl Unpin for MouseWheelInputEvent
impl UnwindSafe for MouseWheelInputEvent
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
.