web_sys/features/
gen_VideoColorSpace.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "VideoColorSpace",
10 typescript_type = "VideoColorSpace"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `VideoColorSpace` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`*"]
18 pub type VideoColorSpace;
19 #[cfg(feature = "VideoColorPrimaries")]
20 #[wasm_bindgen(method, getter, js_class = "VideoColorSpace", js_name = "primaries")]
21 #[doc = "Getter for the `primaries` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/primaries)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `VideoColorPrimaries`, `VideoColorSpace`*"]
26 pub fn primaries(this: &VideoColorSpace) -> Option<VideoColorPrimaries>;
27 #[cfg(feature = "VideoTransferCharacteristics")]
28 #[wasm_bindgen(method, getter, js_class = "VideoColorSpace", js_name = "transfer")]
29 #[doc = "Getter for the `transfer` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/transfer)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoTransferCharacteristics`*"]
34 pub fn transfer(this: &VideoColorSpace) -> Option<VideoTransferCharacteristics>;
35 #[cfg(feature = "VideoMatrixCoefficients")]
36 #[wasm_bindgen(method, getter, js_class = "VideoColorSpace", js_name = "matrix")]
37 #[doc = "Getter for the `matrix` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/matrix)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoMatrixCoefficients`*"]
42 pub fn matrix(this: &VideoColorSpace) -> Option<VideoMatrixCoefficients>;
43 #[wasm_bindgen(method, getter, js_class = "VideoColorSpace", js_name = "fullRange")]
44 #[doc = "Getter for the `fullRange` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/fullRange)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`*"]
49 pub fn full_range(this: &VideoColorSpace) -> Option<bool>;
50 #[wasm_bindgen(catch, constructor, js_class = "VideoColorSpace")]
51 #[doc = "The `new VideoColorSpace(..)` constructor, creating a new instance of `VideoColorSpace`."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/VideoColorSpace)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`*"]
56 pub fn new() -> Result<VideoColorSpace, JsValue>;
57 #[cfg(feature = "VideoColorSpaceInit")]
58 #[wasm_bindgen(catch, constructor, js_class = "VideoColorSpace")]
59 #[doc = "The `new VideoColorSpace(..)` constructor, creating a new instance of `VideoColorSpace`."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/VideoColorSpace)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoColorSpaceInit`*"]
64 pub fn new_with_init(init: &VideoColorSpaceInit) -> Result<VideoColorSpace, JsValue>;
65 #[cfg(feature = "VideoColorSpaceInit")]
66 #[wasm_bindgen(method, js_class = "VideoColorSpace", js_name = "toJSON")]
67 #[doc = "The `toJSON()` method."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/toJSON)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoColorSpaceInit`*"]
72 pub fn to_json(this: &VideoColorSpace) -> VideoColorSpaceInit;
73}