Struct web_sys::WheelEvent
source · #[repr(transparent)]pub struct WheelEvent { /* private fields */ }
Expand description
The WheelEvent
object
This API requires the following crate features to be activated: WheelEvent
Implementations§
source§impl WheelEvent
impl WheelEvent
source§impl WheelEvent
impl WheelEvent
sourcepub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &WheelEventInit
) -> Result<WheelEvent, JsValue>
pub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &WheelEventInit
) -> Result<WheelEvent, JsValue>
The new WheelEvent(..)
constructor, creating a new instance of WheelEvent
This API requires the following crate features to be activated: WheelEvent
, WheelEventInit
source§impl WheelEvent
impl WheelEvent
source§impl WheelEvent
impl WheelEvent
source§impl WheelEvent
impl WheelEvent
source§impl WheelEvent
impl WheelEvent
sourcepub fn delta_mode(&self) -> u32
pub fn delta_mode(&self) -> u32
The deltaMode
getter
This API requires the following crate features to be activated: WheelEvent
source§impl WheelEvent
impl WheelEvent
pub const DOM_DELTA_PIXEL: u32 = 0u32
source§impl WheelEvent
impl WheelEvent
pub const DOM_DELTA_LINE: u32 = 1u32
source§impl WheelEvent
impl WheelEvent
pub const DOM_DELTA_PAGE: u32 = 2u32
Trait Implementations§
source§impl AsRef<Event> for WheelEvent
impl AsRef<Event> for WheelEvent
source§impl AsRef<JsValue> for WheelEvent
impl AsRef<JsValue> for WheelEvent
source§impl AsRef<MouseEvent> for WheelEvent
impl AsRef<MouseEvent> for WheelEvent
source§fn as_ref(&self) -> &MouseEvent
fn as_ref(&self) -> &MouseEvent
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<Object> for WheelEvent
impl AsRef<Object> for WheelEvent
source§impl AsRef<UiEvent> for WheelEvent
impl AsRef<UiEvent> for WheelEvent
source§impl Clone for WheelEvent
impl Clone for WheelEvent
source§fn clone(&self) -> WheelEvent
fn clone(&self) -> WheelEvent
Returns a copy 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 WheelEvent
impl Debug for WheelEvent
source§impl From<JsValue> for WheelEvent
impl From<JsValue> for WheelEvent
source§fn from(obj: JsValue) -> WheelEvent
fn from(obj: JsValue) -> WheelEvent
Converts to this type from the input type.
source§impl From<WheelEvent> for Event
impl From<WheelEvent> for Event
source§fn from(obj: WheelEvent) -> Event
fn from(obj: WheelEvent) -> Event
Converts to this type from the input type.
source§impl From<WheelEvent> for JsValue
impl From<WheelEvent> for JsValue
source§fn from(obj: WheelEvent) -> JsValue
fn from(obj: WheelEvent) -> JsValue
Converts to this type from the input type.
source§impl From<WheelEvent> for MouseEvent
impl From<WheelEvent> for MouseEvent
source§fn from(obj: WheelEvent) -> MouseEvent
fn from(obj: WheelEvent) -> MouseEvent
Converts to this type from the input type.
source§impl From<WheelEvent> for Object
impl From<WheelEvent> for Object
source§fn from(obj: WheelEvent) -> Object
fn from(obj: WheelEvent) -> Object
Converts to this type from the input type.
source§impl From<WheelEvent> for UiEvent
impl From<WheelEvent> for UiEvent
source§fn from(obj: WheelEvent) -> UiEvent
fn from(obj: WheelEvent) -> UiEvent
Converts to this type from the input type.
source§impl FromWasmAbi for WheelEvent
impl FromWasmAbi for WheelEvent
source§impl<'a> IntoWasmAbi for &'a WheelEvent
impl<'a> IntoWasmAbi for &'a WheelEvent
source§impl IntoWasmAbi for WheelEvent
impl IntoWasmAbi for WheelEvent
source§impl JsCast for WheelEvent
impl JsCast for WheelEvent
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value is an instance of the type
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
source§impl OptionFromWasmAbi for WheelEvent
impl OptionFromWasmAbi for WheelEvent
source§impl<'a> OptionIntoWasmAbi for &'a WheelEvent
impl<'a> OptionIntoWasmAbi for &'a WheelEvent
source§impl OptionIntoWasmAbi for WheelEvent
impl OptionIntoWasmAbi for WheelEvent
source§impl RefFromWasmAbi for WheelEvent
impl RefFromWasmAbi for WheelEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to
Self
are recovered from.§type Anchor = ManuallyDrop<WheelEvent>
type Anchor = ManuallyDrop<WheelEvent>
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. Read moreAuto Trait Implementations§
impl RefUnwindSafe for WheelEvent
impl !Send for WheelEvent
impl !Sync for WheelEvent
impl Unpin for WheelEvent
impl UnwindSafe for WheelEvent
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more