web_sys/features/
gen_PictureInPictureWindow.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 = "EventTarget",
10 extends = "::js_sys::Object",
11 js_name = "PictureInPictureWindow",
12 typescript_type = "PictureInPictureWindow"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `PictureInPictureWindow` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindow)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"]
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 PictureInPictureWindow;
24 #[cfg(web_sys_unstable_apis)]
25 #[wasm_bindgen(method, getter, js_class = "PictureInPictureWindow", js_name = "width")]
26 #[doc = "Getter for the `width` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindow/width)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"]
31 #[doc = ""]
32 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
33 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
34 pub fn width(this: &PictureInPictureWindow) -> i32;
35 #[cfg(web_sys_unstable_apis)]
36 #[wasm_bindgen(
37 method,
38 getter,
39 js_class = "PictureInPictureWindow",
40 js_name = "height"
41 )]
42 #[doc = "Getter for the `height` field of this object."]
43 #[doc = ""]
44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindow/height)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"]
47 #[doc = ""]
48 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
49 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
50 pub fn height(this: &PictureInPictureWindow) -> i32;
51 #[cfg(web_sys_unstable_apis)]
52 #[wasm_bindgen(
53 method,
54 getter,
55 js_class = "PictureInPictureWindow",
56 js_name = "onresize"
57 )]
58 #[doc = "Getter for the `onresize` field of this object."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindow/onresize)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"]
63 #[doc = ""]
64 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
65 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
66 pub fn onresize(this: &PictureInPictureWindow) -> Option<::js_sys::Function>;
67 #[cfg(web_sys_unstable_apis)]
68 #[wasm_bindgen(
69 method,
70 setter,
71 js_class = "PictureInPictureWindow",
72 js_name = "onresize"
73 )]
74 #[doc = "Setter for the `onresize` field of this object."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindow/onresize)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"]
79 #[doc = ""]
80 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
81 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
82 pub fn set_onresize(this: &PictureInPictureWindow, value: Option<&::js_sys::Function>);
83}