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