1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ClipboardEvent , typescript_type = "ClipboardEvent")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `ClipboardEvent` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `ClipboardEvent`*"]
14 pub type ClipboardEvent;
15 #[cfg(feature = "DataTransfer")]
16 # [wasm_bindgen (structural , method , getter , js_class = "ClipboardEvent" , js_name = clipboardData)]
17 #[doc = "Getter for the `clipboardData` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/clipboardData)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `ClipboardEvent`, `DataTransfer`*"]
22 pub fn clipboard_data(this: &ClipboardEvent) -> Option<DataTransfer>;
23 #[wasm_bindgen(catch, constructor, js_class = "ClipboardEvent")]
24 #[doc = "The `new ClipboardEvent(..)` constructor, creating a new instance of `ClipboardEvent`."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `ClipboardEvent`*"]
29 pub fn new(type_: &str) -> Result<ClipboardEvent, JsValue>;
30 #[cfg(feature = "ClipboardEventInit")]
31 #[wasm_bindgen(catch, constructor, js_class = "ClipboardEvent")]
32 #[doc = "The `new ClipboardEvent(..)` constructor, creating a new instance of `ClipboardEvent`."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `ClipboardEvent`, `ClipboardEventInit`*"]
37 pub fn new_with_event_init_dict(
38 type_: &str,
39 event_init_dict: &ClipboardEventInit,
40 ) -> Result<ClipboardEvent, JsValue>;
41}
42