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