| 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 = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = MouseEvent , typescript_type = "MouseEvent" )] |
| 8 | #[derive (Debug, Clone, PartialEq, Eq)] |
| 9 | #[doc = "The `MouseEvent` class." ] |
| 10 | #[doc = "" ] |
| 11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)" ] |
| 12 | #[doc = "" ] |
| 13 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 14 | pub type MouseEvent; |
| 15 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = screenX)] |
| 16 | #[doc = "Getter for the `screenX` field of this object." ] |
| 17 | #[doc = "" ] |
| 18 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX)" ] |
| 19 | #[doc = "" ] |
| 20 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 21 | pub unsafefn screen_x(this: &MouseEvent) -> i32; |
| 22 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = screenY)] |
| 23 | #[doc = "Getter for the `screenY` field of this object." ] |
| 24 | #[doc = "" ] |
| 25 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenY)" ] |
| 26 | #[doc = "" ] |
| 27 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 28 | pub unsafefn screen_y(this: &MouseEvent) -> i32; |
| 29 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = clientX)] |
| 30 | #[doc = "Getter for the `clientX` field of this object." ] |
| 31 | #[doc = "" ] |
| 32 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX)" ] |
| 33 | #[doc = "" ] |
| 34 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 35 | pub unsafefn client_x(this: &MouseEvent) -> i32; |
| 36 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = clientY)] |
| 37 | #[doc = "Getter for the `clientY` field of this object." ] |
| 38 | #[doc = "" ] |
| 39 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY)" ] |
| 40 | #[doc = "" ] |
| 41 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 42 | pub unsafefn client_y(this: &MouseEvent) -> i32; |
| 43 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = x)] |
| 44 | #[doc = "Getter for the `x` field of this object." ] |
| 45 | #[doc = "" ] |
| 46 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/x)" ] |
| 47 | #[doc = "" ] |
| 48 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 49 | pub unsafefn x(this: &MouseEvent) -> i32; |
| 50 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = y)] |
| 51 | #[doc = "Getter for the `y` field of this object." ] |
| 52 | #[doc = "" ] |
| 53 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/y)" ] |
| 54 | #[doc = "" ] |
| 55 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 56 | pub unsafefn y(this: &MouseEvent) -> i32; |
| 57 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = offsetX)] |
| 58 | #[doc = "Getter for the `offsetX` field of this object." ] |
| 59 | #[doc = "" ] |
| 60 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX)" ] |
| 61 | #[doc = "" ] |
| 62 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 63 | pub unsafefn offset_x(this: &MouseEvent) -> i32; |
| 64 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = offsetY)] |
| 65 | #[doc = "Getter for the `offsetY` field of this object." ] |
| 66 | #[doc = "" ] |
| 67 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetY)" ] |
| 68 | #[doc = "" ] |
| 69 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 70 | pub unsafefn offset_y(this: &MouseEvent) -> i32; |
| 71 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = ctrlKey)] |
| 72 | #[doc = "Getter for the `ctrlKey` field of this object." ] |
| 73 | #[doc = "" ] |
| 74 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/ctrlKey)" ] |
| 75 | #[doc = "" ] |
| 76 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 77 | pub unsafefn ctrl_key(this: &MouseEvent) -> bool; |
| 78 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = shiftKey)] |
| 79 | #[doc = "Getter for the `shiftKey` field of this object." ] |
| 80 | #[doc = "" ] |
| 81 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/shiftKey)" ] |
| 82 | #[doc = "" ] |
| 83 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 84 | pub unsafefn shift_key(this: &MouseEvent) -> bool; |
| 85 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = altKey)] |
| 86 | #[doc = "Getter for the `altKey` field of this object." ] |
| 87 | #[doc = "" ] |
| 88 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/altKey)" ] |
| 89 | #[doc = "" ] |
| 90 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 91 | pub unsafefn alt_key(this: &MouseEvent) -> bool; |
| 92 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = metaKey)] |
| 93 | #[doc = "Getter for the `metaKey` field of this object." ] |
| 94 | #[doc = "" ] |
| 95 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey)" ] |
| 96 | #[doc = "" ] |
| 97 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 98 | pub unsafefn meta_key(this: &MouseEvent) -> bool; |
| 99 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = button)] |
| 100 | #[doc = "Getter for the `button` field of this object." ] |
| 101 | #[doc = "" ] |
| 102 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button)" ] |
| 103 | #[doc = "" ] |
| 104 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 105 | pub unsafefn button(this: &MouseEvent) -> i16; |
| 106 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = buttons)] |
| 107 | #[doc = "Getter for the `buttons` field of this object." ] |
| 108 | #[doc = "" ] |
| 109 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons)" ] |
| 110 | #[doc = "" ] |
| 111 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 112 | pub unsafefn buttons(this: &MouseEvent) -> u16; |
| 113 | #[cfg (feature = "EventTarget" )] |
| 114 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = relatedTarget)] |
| 115 | #[doc = "Getter for the `relatedTarget` field of this object." ] |
| 116 | #[doc = "" ] |
| 117 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/relatedTarget)" ] |
| 118 | #[doc = "" ] |
| 119 | #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEvent`*" ] |
| 120 | pub unsafefn related_target(this: &MouseEvent) -> Option<EventTarget>; |
| 121 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = region)] |
| 122 | #[doc = "Getter for the `region` field of this object." ] |
| 123 | #[doc = "" ] |
| 124 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/region)" ] |
| 125 | #[doc = "" ] |
| 126 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 127 | pub unsafefn region(this: &MouseEvent) -> Option<::alloc::string::String>; |
| 128 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = movementX)] |
| 129 | #[doc = "Getter for the `movementX` field of this object." ] |
| 130 | #[doc = "" ] |
| 131 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX)" ] |
| 132 | #[doc = "" ] |
| 133 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 134 | pub unsafefn movement_x(this: &MouseEvent) -> i32; |
| 135 | # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = movementY)] |
| 136 | #[doc = "Getter for the `movementY` field of this object." ] |
| 137 | #[doc = "" ] |
| 138 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY)" ] |
| 139 | #[doc = "" ] |
| 140 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 141 | pub unsafefn movement_y(this: &MouseEvent) -> i32; |
| 142 | #[wasm_bindgen (catch, constructor, js_class = "MouseEvent" )] |
| 143 | #[doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`." ] |
| 144 | #[doc = "" ] |
| 145 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)" ] |
| 146 | #[doc = "" ] |
| 147 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 148 | pub unsafefn new(type_arg: &str) -> Result<MouseEvent, JsValue>; |
| 149 | #[cfg (feature = "MouseEventInit" )] |
| 150 | #[wasm_bindgen (catch, constructor, js_class = "MouseEvent" )] |
| 151 | #[doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`." ] |
| 152 | #[doc = "" ] |
| 153 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)" ] |
| 154 | #[doc = "" ] |
| 155 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `MouseEventInit`*" ] |
| 156 | pub fn new_with_mouse_event_init_dict( |
| 157 | type_arg: &str, |
| 158 | mouse_event_init_dict: &MouseEventInit, |
| 159 | ) -> Result<MouseEvent, JsValue>; |
| 160 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = getModifierState)] |
| 161 | #[doc = "The `getModifierState()` method." ] |
| 162 | #[doc = "" ] |
| 163 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/getModifierState)" ] |
| 164 | #[doc = "" ] |
| 165 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 166 | pub unsafefn get_modifier_state(this: &MouseEvent, key_arg: &str) -> bool; |
| 167 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 168 | #[doc = "The `initMouseEvent()` method." ] |
| 169 | #[doc = "" ] |
| 170 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 171 | #[doc = "" ] |
| 172 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 173 | pub unsafefn init_mouse_event(this: &MouseEvent, type_arg: &str); |
| 174 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 175 | #[doc = "The `initMouseEvent()` method." ] |
| 176 | #[doc = "" ] |
| 177 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 178 | #[doc = "" ] |
| 179 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 180 | pub unsafefn init_mouse_event_with_can_bubble_arg( |
| 181 | this: &MouseEvent, |
| 182 | type_arg: &str, |
| 183 | can_bubble_arg: bool, |
| 184 | ); |
| 185 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 186 | #[doc = "The `initMouseEvent()` method." ] |
| 187 | #[doc = "" ] |
| 188 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 189 | #[doc = "" ] |
| 190 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*" ] |
| 191 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg( |
| 192 | this: &MouseEvent, |
| 193 | type_arg: &str, |
| 194 | can_bubble_arg: bool, |
| 195 | cancelable_arg: bool, |
| 196 | ); |
| 197 | #[cfg (feature = "Window" )] |
| 198 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 199 | #[doc = "The `initMouseEvent()` method." ] |
| 200 | #[doc = "" ] |
| 201 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 202 | #[doc = "" ] |
| 203 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 204 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg( |
| 205 | this: &MouseEvent, |
| 206 | type_arg: &str, |
| 207 | can_bubble_arg: bool, |
| 208 | cancelable_arg: bool, |
| 209 | view_arg: Option<&Window>, |
| 210 | ); |
| 211 | #[cfg (feature = "Window" )] |
| 212 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 213 | #[doc = "The `initMouseEvent()` method." ] |
| 214 | #[doc = "" ] |
| 215 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 216 | #[doc = "" ] |
| 217 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 218 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg( |
| 219 | this: &MouseEvent, |
| 220 | type_arg: &str, |
| 221 | can_bubble_arg: bool, |
| 222 | cancelable_arg: bool, |
| 223 | view_arg: Option<&Window>, |
| 224 | detail_arg: i32, |
| 225 | ); |
| 226 | #[cfg (feature = "Window" )] |
| 227 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 228 | #[doc = "The `initMouseEvent()` method." ] |
| 229 | #[doc = "" ] |
| 230 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 231 | #[doc = "" ] |
| 232 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 233 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg( |
| 234 | this: &MouseEvent, |
| 235 | type_arg: &str, |
| 236 | can_bubble_arg: bool, |
| 237 | cancelable_arg: bool, |
| 238 | view_arg: Option<&Window>, |
| 239 | detail_arg: i32, |
| 240 | screen_x_arg: i32, |
| 241 | ); |
| 242 | #[cfg (feature = "Window" )] |
| 243 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 244 | #[doc = "The `initMouseEvent()` method." ] |
| 245 | #[doc = "" ] |
| 246 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 247 | #[doc = "" ] |
| 248 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 249 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg( |
| 250 | this: &MouseEvent, |
| 251 | type_arg: &str, |
| 252 | can_bubble_arg: bool, |
| 253 | cancelable_arg: bool, |
| 254 | view_arg: Option<&Window>, |
| 255 | detail_arg: i32, |
| 256 | screen_x_arg: i32, |
| 257 | screen_y_arg: i32, |
| 258 | ); |
| 259 | #[cfg (feature = "Window" )] |
| 260 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 261 | #[doc = "The `initMouseEvent()` method." ] |
| 262 | #[doc = "" ] |
| 263 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 264 | #[doc = "" ] |
| 265 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 266 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg( |
| 267 | this: &MouseEvent, |
| 268 | type_arg: &str, |
| 269 | can_bubble_arg: bool, |
| 270 | cancelable_arg: bool, |
| 271 | view_arg: Option<&Window>, |
| 272 | detail_arg: i32, |
| 273 | screen_x_arg: i32, |
| 274 | screen_y_arg: i32, |
| 275 | client_x_arg: i32, |
| 276 | ); |
| 277 | #[cfg (feature = "Window" )] |
| 278 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 279 | #[doc = "The `initMouseEvent()` method." ] |
| 280 | #[doc = "" ] |
| 281 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 282 | #[doc = "" ] |
| 283 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 284 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg( |
| 285 | this: &MouseEvent, |
| 286 | type_arg: &str, |
| 287 | can_bubble_arg: bool, |
| 288 | cancelable_arg: bool, |
| 289 | view_arg: Option<&Window>, |
| 290 | detail_arg: i32, |
| 291 | screen_x_arg: i32, |
| 292 | screen_y_arg: i32, |
| 293 | client_x_arg: i32, |
| 294 | client_y_arg: i32, |
| 295 | ); |
| 296 | #[cfg (feature = "Window" )] |
| 297 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 298 | #[doc = "The `initMouseEvent()` method." ] |
| 299 | #[doc = "" ] |
| 300 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 301 | #[doc = "" ] |
| 302 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 303 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg( |
| 304 | this: &MouseEvent, |
| 305 | type_arg: &str, |
| 306 | can_bubble_arg: bool, |
| 307 | cancelable_arg: bool, |
| 308 | view_arg: Option<&Window>, |
| 309 | detail_arg: i32, |
| 310 | screen_x_arg: i32, |
| 311 | screen_y_arg: i32, |
| 312 | client_x_arg: i32, |
| 313 | client_y_arg: i32, |
| 314 | ctrl_key_arg: bool, |
| 315 | ); |
| 316 | #[cfg (feature = "Window" )] |
| 317 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 318 | #[doc = "The `initMouseEvent()` method." ] |
| 319 | #[doc = "" ] |
| 320 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 321 | #[doc = "" ] |
| 322 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 323 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg( |
| 324 | this: &MouseEvent, |
| 325 | type_arg: &str, |
| 326 | can_bubble_arg: bool, |
| 327 | cancelable_arg: bool, |
| 328 | view_arg: Option<&Window>, |
| 329 | detail_arg: i32, |
| 330 | screen_x_arg: i32, |
| 331 | screen_y_arg: i32, |
| 332 | client_x_arg: i32, |
| 333 | client_y_arg: i32, |
| 334 | ctrl_key_arg: bool, |
| 335 | alt_key_arg: bool, |
| 336 | ); |
| 337 | #[cfg (feature = "Window" )] |
| 338 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 339 | #[doc = "The `initMouseEvent()` method." ] |
| 340 | #[doc = "" ] |
| 341 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 342 | #[doc = "" ] |
| 343 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 344 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg( |
| 345 | this: &MouseEvent, |
| 346 | type_arg: &str, |
| 347 | can_bubble_arg: bool, |
| 348 | cancelable_arg: bool, |
| 349 | view_arg: Option<&Window>, |
| 350 | detail_arg: i32, |
| 351 | screen_x_arg: i32, |
| 352 | screen_y_arg: i32, |
| 353 | client_x_arg: i32, |
| 354 | client_y_arg: i32, |
| 355 | ctrl_key_arg: bool, |
| 356 | alt_key_arg: bool, |
| 357 | shift_key_arg: bool, |
| 358 | ); |
| 359 | #[cfg (feature = "Window" )] |
| 360 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 361 | #[doc = "The `initMouseEvent()` method." ] |
| 362 | #[doc = "" ] |
| 363 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 364 | #[doc = "" ] |
| 365 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 366 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg( |
| 367 | this: &MouseEvent, |
| 368 | type_arg: &str, |
| 369 | can_bubble_arg: bool, |
| 370 | cancelable_arg: bool, |
| 371 | view_arg: Option<&Window>, |
| 372 | detail_arg: i32, |
| 373 | screen_x_arg: i32, |
| 374 | screen_y_arg: i32, |
| 375 | client_x_arg: i32, |
| 376 | client_y_arg: i32, |
| 377 | ctrl_key_arg: bool, |
| 378 | alt_key_arg: bool, |
| 379 | shift_key_arg: bool, |
| 380 | meta_key_arg: bool, |
| 381 | ); |
| 382 | #[cfg (feature = "Window" )] |
| 383 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 384 | #[doc = "The `initMouseEvent()` method." ] |
| 385 | #[doc = "" ] |
| 386 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 387 | #[doc = "" ] |
| 388 | #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*" ] |
| 389 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg( |
| 390 | this: &MouseEvent, |
| 391 | type_arg: &str, |
| 392 | can_bubble_arg: bool, |
| 393 | cancelable_arg: bool, |
| 394 | view_arg: Option<&Window>, |
| 395 | detail_arg: i32, |
| 396 | screen_x_arg: i32, |
| 397 | screen_y_arg: i32, |
| 398 | client_x_arg: i32, |
| 399 | client_y_arg: i32, |
| 400 | ctrl_key_arg: bool, |
| 401 | alt_key_arg: bool, |
| 402 | shift_key_arg: bool, |
| 403 | meta_key_arg: bool, |
| 404 | button_arg: i16, |
| 405 | ); |
| 406 | #[cfg (all(feature = "EventTarget" , feature = "Window" ,))] |
| 407 | # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] |
| 408 | #[doc = "The `initMouseEvent()` method." ] |
| 409 | #[doc = "" ] |
| 410 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)" ] |
| 411 | #[doc = "" ] |
| 412 | #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEvent`, `Window`*" ] |
| 413 | pub unsafefn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg_and_related_target_arg( |
| 414 | this: &MouseEvent, |
| 415 | type_arg: &str, |
| 416 | can_bubble_arg: bool, |
| 417 | cancelable_arg: bool, |
| 418 | view_arg: Option<&Window>, |
| 419 | detail_arg: i32, |
| 420 | screen_x_arg: i32, |
| 421 | screen_y_arg: i32, |
| 422 | client_x_arg: i32, |
| 423 | client_y_arg: i32, |
| 424 | ctrl_key_arg: bool, |
| 425 | alt_key_arg: bool, |
| 426 | shift_key_arg: bool, |
| 427 | meta_key_arg: bool, |
| 428 | button_arg: i16, |
| 429 | related_target_arg: Option<&EventTarget>, |
| 430 | ); |
| 431 | } |
| 432 | |