]>
git.proxmox.com Git - rustc.git/blob - vendor/web-sys/src/features/gen_InputEvent.rs
1 #![allow(unused_imports)]
4 use wasm_bindgen
::prelude
::*;
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."]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent)"]
13 #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"]
15 # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = isComposing)]
16 #[doc = "Getter for the `isComposing` field of this object."]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/isComposing)"]
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."]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/inputType)"]
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."]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/data)"]
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."]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/dataTransfer)"]
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`."]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/InputEvent)"]
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`."]
55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/InputEvent)"]
57 #[doc = "*This API requires the following crate features to be activated: `InputEvent`, `InputEventInit`*"]
58 pub fn new_with_event_init_dict(
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."]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/getTargetRanges)"]
67 #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"]
68 pub fn get_target_ranges(this
: &InputEvent
) -> ::js_sys
::Array
;