web_sys/features/
gen_PictureInPictureEvent.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 #[wasm_bindgen(
9 extends = "Event",
10 extends = "::js_sys::Object",
11 js_name = "PictureInPictureEvent",
12 typescript_type = "PictureInPictureEvent"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `PictureInPictureEvent` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureEvent)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEvent`*"]
20 #[doc = ""]
21 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
22 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
23 pub type PictureInPictureEvent;
24 #[cfg(web_sys_unstable_apis)]
25 #[cfg(feature = "PictureInPictureWindow")]
26 #[wasm_bindgen(
27 method,
28 getter,
29 js_class = "PictureInPictureEvent",
30 js_name = "pictureInPictureWindow"
31 )]
32 #[doc = "Getter for the `pictureInPictureWindow` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEvent`, `PictureInPictureWindow`*"]
37 #[doc = ""]
38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn picture_in_picture_window(this: &PictureInPictureEvent) -> PictureInPictureWindow;
41 #[cfg(web_sys_unstable_apis)]
42 #[cfg(feature = "PictureInPictureEventInit")]
43 #[wasm_bindgen(catch, constructor, js_class = "PictureInPictureEvent")]
44 #[doc = "The `new PictureInPictureEvent(..)` constructor, creating a new instance of `PictureInPictureEvent`."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureEvent/PictureInPictureEvent)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEvent`, `PictureInPictureEventInit`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
52 pub fn new(
53 type_: &str,
54 event_init_dict: &PictureInPictureEventInit,
55 ) -> Result<PictureInPictureEvent, JsValue>;
56}