Struct web_sys::MouseScrollEvent
source · #[repr(transparent)]pub struct MouseScrollEvent { /* private fields */ }
Expand description
The MouseScrollEvent
object
This API requires the following crate features to be activated: MouseScrollEvent
Implementations§
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event(&self, type_: &str)
pub fn init_mouse_scroll_event(&self, type_: &str)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble(
&self,
type_: &str,
can_bubble: bool
)
pub fn init_mouse_scroll_event_with_can_bubble(
&self,
type_: &str,
can_bubble: bool
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
source§impl MouseScrollEvent
impl MouseScrollEvent
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32,
ctrl_key: bool
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32,
ctrl_key: bool
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32,
ctrl_key: bool,
alt_key: bool
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32,
ctrl_key: bool,
alt_key: bool
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
sourcepub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool
)
pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
screen_x: i32,
screen_y: i32,
client_x: i32,
client_y: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool
)
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: EventTarget
, MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
The initMouseScrollEvent()
method
This API requires the following crate features to be activated: EventTarget
, MouseScrollEvent
, Window
source§impl MouseScrollEvent
impl MouseScrollEvent
source§impl MouseScrollEvent
impl MouseScrollEvent
pub const HORIZONTAL_AXIS: i32 = 1i32
source§impl MouseScrollEvent
impl MouseScrollEvent
pub const VERTICAL_AXIS: i32 = 2i32
Trait Implementations§
source§impl AsRef<Event> for MouseScrollEvent
impl AsRef<Event> for MouseScrollEvent
source§impl AsRef<JsValue> for MouseScrollEvent
impl AsRef<JsValue> for MouseScrollEvent
source§impl AsRef<MouseEvent> for MouseScrollEvent
impl AsRef<MouseEvent> for MouseScrollEvent
source§fn as_ref(&self) -> &MouseEvent
fn as_ref(&self) -> &MouseEvent
source§impl AsRef<Object> for MouseScrollEvent
impl AsRef<Object> for MouseScrollEvent
source§impl AsRef<UiEvent> for MouseScrollEvent
impl AsRef<UiEvent> for MouseScrollEvent
source§impl Clone for MouseScrollEvent
impl Clone for MouseScrollEvent
source§fn clone(&self) -> MouseScrollEvent
fn clone(&self) -> MouseScrollEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MouseScrollEvent
impl Debug for MouseScrollEvent
source§impl From<JsValue> for MouseScrollEvent
impl From<JsValue> for MouseScrollEvent
source§fn from(obj: JsValue) -> MouseScrollEvent
fn from(obj: JsValue) -> MouseScrollEvent
source§impl From<MouseScrollEvent> for Event
impl From<MouseScrollEvent> for Event
source§fn from(obj: MouseScrollEvent) -> Event
fn from(obj: MouseScrollEvent) -> Event
source§impl From<MouseScrollEvent> for JsValue
impl From<MouseScrollEvent> for JsValue
source§fn from(obj: MouseScrollEvent) -> JsValue
fn from(obj: MouseScrollEvent) -> JsValue
source§impl From<MouseScrollEvent> for MouseEvent
impl From<MouseScrollEvent> for MouseEvent
source§fn from(obj: MouseScrollEvent) -> MouseEvent
fn from(obj: MouseScrollEvent) -> MouseEvent
source§impl From<MouseScrollEvent> for Object
impl From<MouseScrollEvent> for Object
source§fn from(obj: MouseScrollEvent) -> Object
fn from(obj: MouseScrollEvent) -> Object
source§impl From<MouseScrollEvent> for UiEvent
impl From<MouseScrollEvent> for UiEvent
source§fn from(obj: MouseScrollEvent) -> UiEvent
fn from(obj: MouseScrollEvent) -> UiEvent
source§impl FromWasmAbi for MouseScrollEvent
impl FromWasmAbi for MouseScrollEvent
source§impl<'a> IntoWasmAbi for &'a MouseScrollEvent
impl<'a> IntoWasmAbi for &'a MouseScrollEvent
source§impl IntoWasmAbi for MouseScrollEvent
impl IntoWasmAbi for MouseScrollEvent
source§impl JsCast for MouseScrollEvent
impl JsCast for MouseScrollEvent
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
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,
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,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for MouseScrollEvent
impl OptionFromWasmAbi for MouseScrollEvent
source§impl<'a> OptionIntoWasmAbi for &'a MouseScrollEvent
impl<'a> OptionIntoWasmAbi for &'a MouseScrollEvent
source§impl OptionIntoWasmAbi for MouseScrollEvent
impl OptionIntoWasmAbi for MouseScrollEvent
source§impl RefFromWasmAbi for MouseScrollEvent
impl RefFromWasmAbi for MouseScrollEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<MouseScrollEvent>
type Anchor = ManuallyDrop<MouseScrollEvent>
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 MouseScrollEvent
impl !Send for MouseScrollEvent
impl !Sync for MouseScrollEvent
impl Unpin for MouseScrollEvent
impl UnwindSafe for MouseScrollEvent
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
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
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more