1 | #![allow (unused_imports)] |
2 | #![allow (clippy::all)] |
3 | use super::*; |
4 | use wasm_bindgen::prelude::*; |
5 | #[wasm_bindgen ] |
6 | extern "C" { |
7 | # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = InputEvent , typescript_type = "InputEvent" )] |
8 | #[derive (Debug, Clone, PartialEq, Eq)] |
9 | #[doc = "The `InputEvent` class." ] |
10 | #[doc = "" ] |
11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent)" ] |
12 | #[doc = "" ] |
13 | #[doc = "*This API requires the following crate features to be activated: `InputEvent`*" ] |
14 | pub type InputEvent; |
15 | # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = isComposing)] |
16 | #[doc = "Getter for the `isComposing` field of this object." ] |
17 | #[doc = "" ] |
18 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/isComposing)" ] |
19 | #[doc = "" ] |
20 | #[doc = "*This API requires the following crate features to be activated: `InputEvent`*" ] |
21 | pub fn is_composing(this: &InputEvent) -> bool; |
22 | # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = inputType)] |
23 | #[doc = "Getter for the `inputType` field of this object." ] |
24 | #[doc = "" ] |
25 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/inputType)" ] |
26 | #[doc = "" ] |
27 | #[doc = "*This API requires the following crate features to be activated: `InputEvent`*" ] |
28 | pub fn input_type(this: &InputEvent) -> String; |
29 | # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = data)] |
30 | #[doc = "Getter for the `data` field of this object." ] |
31 | #[doc = "" ] |
32 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/data)" ] |
33 | #[doc = "" ] |
34 | #[doc = "*This API requires the following crate features to be activated: `InputEvent`*" ] |
35 | pub fn data(this: &InputEvent) -> Option<String>; |
36 | #[cfg (feature = "DataTransfer" )] |
37 | # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = dataTransfer)] |
38 | #[doc = "Getter for the `dataTransfer` field of this object." ] |
39 | #[doc = "" ] |
40 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/dataTransfer)" ] |
41 | #[doc = "" ] |
42 | #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `InputEvent`*" ] |
43 | pub fn data_transfer(this: &InputEvent) -> Option<DataTransfer>; |
44 | #[wasm_bindgen (catch, constructor, js_class = "InputEvent" )] |
45 | #[doc = "The `new InputEvent(..)` constructor, creating a new instance of `InputEvent`." ] |
46 | #[doc = "" ] |
47 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/InputEvent)" ] |
48 | #[doc = "" ] |
49 | #[doc = "*This API requires the following crate features to be activated: `InputEvent`*" ] |
50 | pub fn new(type_: &str) -> Result<InputEvent, JsValue>; |
51 | #[cfg (feature = "InputEventInit" )] |
52 | #[wasm_bindgen (catch, constructor, js_class = "InputEvent" )] |
53 | #[doc = "The `new InputEvent(..)` constructor, creating a new instance of `InputEvent`." ] |
54 | #[doc = "" ] |
55 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/InputEvent)" ] |
56 | #[doc = "" ] |
57 | #[doc = "*This API requires the following crate features to be activated: `InputEvent`, `InputEventInit`*" ] |
58 | pub fn new_with_event_init_dict( |
59 | type_: &str, |
60 | event_init_dict: &InputEventInit, |
61 | ) -> Result<InputEvent, JsValue>; |
62 | # [wasm_bindgen (method , structural , js_class = "InputEvent" , js_name = getTargetRanges)] |
63 | #[doc = "The `getTargetRanges()` method." ] |
64 | #[doc = "" ] |
65 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/getTargetRanges)" ] |
66 | #[doc = "" ] |
67 | #[doc = "*This API requires the following crate features to be activated: `InputEvent`*" ] |
68 | pub fn get_target_ranges(this: &InputEvent) -> ::js_sys::Array; |
69 | } |
70 | |