1
1
#![ allow( unused_imports) ]
2
2
use super :: * ;
3
3
use wasm_bindgen:: prelude:: * ;
4
+ #[ cfg( web_sys_unstable_apis) ]
4
5
#[ wasm_bindgen]
5
6
extern "C" {
6
7
# [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = ClipboardEvent , typescript_type = "ClipboardEvent" ) ]
@@ -10,29 +11,82 @@ extern "C" {
10
11
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent)" ]
11
12
#[ doc = "" ]
12
13
#[ doc = "*This API requires the following crate features to be activated: `ClipboardEvent`*" ]
14
+ #[ doc = "" ]
15
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
16
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
13
17
pub type ClipboardEvent ;
18
+ #[ cfg( web_sys_unstable_apis) ]
14
19
#[ cfg( feature = "DataTransfer" ) ]
15
20
# [ wasm_bindgen ( structural , method , getter , js_class = "ClipboardEvent" , js_name = clipboardData ) ]
16
21
#[ doc = "Getter for the `clipboardData` field of this object." ]
17
22
#[ doc = "" ]
18
23
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/clipboardData)" ]
19
24
#[ doc = "" ]
20
25
#[ doc = "*This API requires the following crate features to be activated: `ClipboardEvent`, `DataTransfer`*" ]
26
+ #[ doc = "" ]
27
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
28
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
21
29
pub fn clipboard_data ( this : & ClipboardEvent ) -> Option < DataTransfer > ;
30
+ #[ cfg( web_sys_unstable_apis) ]
31
+ #[ cfg( feature = "DataTransfer" ) ]
32
+ # [ wasm_bindgen ( structural , method , getter , js_class = "ClipboardEvent" , js_name = clipboardData ) ]
33
+ #[ doc = "Getter for the `clipboardData` field of this object." ]
34
+ #[ doc = "" ]
35
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/clipboardData)" ]
36
+ #[ doc = "" ]
37
+ #[ doc = "*This API requires the following crate features to be activated: `ClipboardEvent`, `DataTransfer`*" ]
38
+ #[ doc = "" ]
39
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
40
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
41
+ pub fn clipboard_data ( this : & ClipboardEvent ) -> Option < DataTransfer > ;
42
+ #[ cfg( web_sys_unstable_apis) ]
22
43
#[ wasm_bindgen( catch, constructor, js_class = "ClipboardEvent" ) ]
23
44
#[ doc = "The `new ClipboardEvent(..)` constructor, creating a new instance of `ClipboardEvent`." ]
24
45
#[ doc = "" ]
25
46
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent)" ]
26
47
#[ doc = "" ]
27
48
#[ doc = "*This API requires the following crate features to be activated: `ClipboardEvent`*" ]
49
+ #[ doc = "" ]
50
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
51
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
28
52
pub fn new ( type_ : & str ) -> Result < ClipboardEvent , JsValue > ;
53
+ #[ cfg( web_sys_unstable_apis) ]
29
54
#[ cfg( feature = "ClipboardEventInit" ) ]
30
55
#[ wasm_bindgen( catch, constructor, js_class = "ClipboardEvent" ) ]
31
56
#[ doc = "The `new ClipboardEvent(..)` constructor, creating a new instance of `ClipboardEvent`." ]
32
57
#[ doc = "" ]
33
58
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent)" ]
34
59
#[ doc = "" ]
35
60
#[ doc = "*This API requires the following crate features to be activated: `ClipboardEvent`, `ClipboardEventInit`*" ]
61
+ #[ doc = "" ]
62
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
63
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
64
+ pub fn new_with_event_init_dict (
65
+ type_ : & str ,
66
+ event_init_dict : & ClipboardEventInit ,
67
+ ) -> Result < ClipboardEvent , JsValue > ;
68
+ #[ cfg( web_sys_unstable_apis) ]
69
+ #[ wasm_bindgen( catch, constructor, js_class = "ClipboardEvent" ) ]
70
+ #[ doc = "The `new ClipboardEvent(..)` constructor, creating a new instance of `ClipboardEvent`." ]
71
+ #[ doc = "" ]
72
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent)" ]
73
+ #[ doc = "" ]
74
+ #[ doc = "*This API requires the following crate features to be activated: `ClipboardEvent`*" ]
75
+ #[ doc = "" ]
76
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
77
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
78
+ pub fn new ( type_ : & str ) -> Result < ClipboardEvent , JsValue > ;
79
+ #[ cfg( web_sys_unstable_apis) ]
80
+ #[ cfg( feature = "ClipboardEventInit" ) ]
81
+ #[ wasm_bindgen( catch, constructor, js_class = "ClipboardEvent" ) ]
82
+ #[ doc = "The `new ClipboardEvent(..)` constructor, creating a new instance of `ClipboardEvent`." ]
83
+ #[ doc = "" ]
84
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent)" ]
85
+ #[ doc = "" ]
86
+ #[ doc = "*This API requires the following crate features to be activated: `ClipboardEvent`, `ClipboardEventInit`*" ]
87
+ #[ doc = "" ]
88
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
89
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
36
90
pub fn new_with_event_init_dict (
37
91
type_ : & str ,
38
92
event_init_dict : & ClipboardEventInit ,
0 commit comments