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