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