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