web_sys/features/
gen_VttRegion.rs

1#![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 = VTTRegion , typescript_type = "VTTRegion")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `VttRegion` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
14    pub type VttRegion;
15    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = id)]
16    #[doc = "Getter for the `id` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/id)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
21    pub fn id(this: &VttRegion) -> ::alloc::string::String;
22    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = id)]
23    #[doc = "Setter for the `id` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/id)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
28    pub fn set_id(this: &VttRegion, value: &str);
29    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = width)]
30    #[doc = "Getter for the `width` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
35    pub fn width(this: &VttRegion) -> f64;
36    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = width)]
37    #[doc = "Setter for the `width` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
42    pub fn set_width(this: &VttRegion, value: f64);
43    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = lines)]
44    #[doc = "Getter for the `lines` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
49    pub fn lines(this: &VttRegion) -> i32;
50    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = lines)]
51    #[doc = "Setter for the `lines` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
56    pub fn set_lines(this: &VttRegion, value: i32);
57    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorX)]
58    #[doc = "Getter for the `regionAnchorX` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
63    pub fn region_anchor_x(this: &VttRegion) -> f64;
64    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorX)]
65    #[doc = "Setter for the `regionAnchorX` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
70    pub fn set_region_anchor_x(this: &VttRegion, value: f64);
71    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorY)]
72    #[doc = "Getter for the `regionAnchorY` field of this object."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
77    pub fn region_anchor_y(this: &VttRegion) -> f64;
78    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorY)]
79    #[doc = "Setter for the `regionAnchorY` field of this object."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
84    pub fn set_region_anchor_y(this: &VttRegion, value: f64);
85    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorX)]
86    #[doc = "Getter for the `viewportAnchorX` field of this object."]
87    #[doc = ""]
88    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
91    pub fn viewport_anchor_x(this: &VttRegion) -> f64;
92    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorX)]
93    #[doc = "Setter for the `viewportAnchorX` field of this object."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
98    pub fn set_viewport_anchor_x(this: &VttRegion, value: f64);
99    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorY)]
100    #[doc = "Getter for the `viewportAnchorY` field of this object."]
101    #[doc = ""]
102    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
105    pub fn viewport_anchor_y(this: &VttRegion) -> f64;
106    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorY)]
107    #[doc = "Setter for the `viewportAnchorY` field of this object."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
112    pub fn set_viewport_anchor_y(this: &VttRegion, value: f64);
113    #[cfg(feature = "ScrollSetting")]
114    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = scroll)]
115    #[doc = "Getter for the `scroll` field of this object."]
116    #[doc = ""]
117    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"]
118    #[doc = ""]
119    #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`, `VttRegion`*"]
120    pub fn scroll(this: &VttRegion) -> ScrollSetting;
121    #[cfg(feature = "ScrollSetting")]
122    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = scroll)]
123    #[doc = "Setter for the `scroll` field of this object."]
124    #[doc = ""]
125    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"]
126    #[doc = ""]
127    #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`, `VttRegion`*"]
128    pub fn set_scroll(this: &VttRegion, value: ScrollSetting);
129    #[wasm_bindgen(catch, constructor, js_class = "VTTRegion")]
130    #[doc = "The `new VttRegion(..)` constructor, creating a new instance of `VttRegion`."]
131    #[doc = ""]
132    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/VTTRegion)"]
133    #[doc = ""]
134    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
135    pub fn new() -> Result<VttRegion, JsValue>;
136}