1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = WheelEvent , typescript_type = "WheelEvent")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `WheelEvent` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] 13 pub type WheelEvent; 14 # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaX)] 15 #[doc = "Getter for the `deltaX` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] delta_x(this: &WheelEvent) -> f6420 pub fn delta_x(this: &WheelEvent) -> f64; 21 # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaY)] 22 #[doc = "Getter for the `deltaY` field of this object."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] delta_y(this: &WheelEvent) -> f6427 pub fn delta_y(this: &WheelEvent) -> f64; 28 # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaZ)] 29 #[doc = "Getter for the `deltaZ` field of this object."] 30 #[doc = ""] 31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaZ)"] 32 #[doc = ""] 33 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] delta_z(this: &WheelEvent) -> f6434 pub fn delta_z(this: &WheelEvent) -> f64; 35 # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaMode)] 36 #[doc = "Getter for the `deltaMode` field of this object."] 37 #[doc = ""] 38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode)"] 39 #[doc = ""] 40 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] delta_mode(this: &WheelEvent) -> u3241 pub fn delta_mode(this: &WheelEvent) -> u32; 42 #[wasm_bindgen(catch, constructor, js_class = "WheelEvent")] 43 #[doc = "The `new WheelEvent(..)` constructor, creating a new instance of `WheelEvent`."] 44 #[doc = ""] 45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)"] 46 #[doc = ""] 47 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] new(type_: &str) -> Result<WheelEvent, JsValue>48 pub fn new(type_: &str) -> Result<WheelEvent, JsValue>; 49 #[cfg(feature = "WheelEventInit")] 50 #[wasm_bindgen(catch, constructor, js_class = "WheelEvent")] 51 #[doc = "The `new WheelEvent(..)` constructor, creating a new instance of `WheelEvent`."] 52 #[doc = ""] 53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)"] 54 #[doc = ""] 55 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`, `WheelEventInit`*"] new_with_event_init_dict( type_: &str, event_init_dict: &WheelEventInit, ) -> Result<WheelEvent, JsValue>56 pub fn new_with_event_init_dict( 57 type_: &str, 58 event_init_dict: &WheelEventInit, 59 ) -> Result<WheelEvent, JsValue>; 60 } 61 impl WheelEvent { 62 #[doc = "The `WheelEvent.DOM_DELTA_PIXEL` const."] 63 #[doc = ""] 64 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] 65 pub const DOM_DELTA_PIXEL: u32 = 0u64 as u32; 66 #[doc = "The `WheelEvent.DOM_DELTA_LINE` const."] 67 #[doc = ""] 68 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] 69 pub const DOM_DELTA_LINE: u32 = 1u64 as u32; 70 #[doc = "The `WheelEvent.DOM_DELTA_PAGE` const."] 71 #[doc = ""] 72 #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] 73 pub const DOM_DELTA_PAGE: u32 = 2u64 as u32; 74 } 75