1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = TextTrackCue , extends = EventTarget , extends = :: js_sys :: Object , js_name = VTTCue , typescript_type = "VTTCue")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `VttCue` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
14 pub type VttCue;
15 #[cfg(feature = "VttRegion")]
16 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = region)]
17 #[doc = "Getter for the `region` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/region)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `VttCue`, `VttRegion`*"]
22 pub fn region(this: &VttCue) -> Option<VttRegion>;
23 #[cfg(feature = "VttRegion")]
24 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = region)]
25 #[doc = "Setter for the `region` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/region)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `VttCue`, `VttRegion`*"]
30 pub fn set_region(this: &VttCue, value: Option<&VttRegion>);
31 #[cfg(feature = "DirectionSetting")]
32 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = vertical)]
33 #[doc = "Getter for the `vertical` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/vertical)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `DirectionSetting`, `VttCue`*"]
38 pub fn vertical(this: &VttCue) -> DirectionSetting;
39 #[cfg(feature = "DirectionSetting")]
40 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = vertical)]
41 #[doc = "Setter for the `vertical` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/vertical)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `DirectionSetting`, `VttCue`*"]
46 pub fn set_vertical(this: &VttCue, value: DirectionSetting);
47 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = snapToLines)]
48 #[doc = "Getter for the `snapToLines` field of this object."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/snapToLines)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
53 pub fn snap_to_lines(this: &VttCue) -> bool;
54 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = snapToLines)]
55 #[doc = "Setter for the `snapToLines` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/snapToLines)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
60 pub fn set_snap_to_lines(this: &VttCue, value: bool);
61 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = line)]
62 #[doc = "Getter for the `line` field of this object."]
63 #[doc = ""]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
67 pub fn line(this: &VttCue) -> ::wasm_bindgen::JsValue;
68 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = line)]
69 #[doc = "Setter for the `line` field of this object."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
74 #[deprecated]
75 pub fn set_line(this: &VttCue, value: &::wasm_bindgen::JsValue);
76 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = line)]
77 #[doc = "Setter for the `line` field of this object."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
82 pub fn set_line_f64(this: &VttCue, value: f64);
83 #[cfg(feature = "AutoKeyword")]
84 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = line)]
85 #[doc = "Setter for the `line` field of this object."]
86 #[doc = ""]
87 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `AutoKeyword`, `VttCue`*"]
90 pub fn set_line_auto_keyword(this: &VttCue, value: AutoKeyword);
91 #[cfg(feature = "LineAlignSetting")]
92 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = lineAlign)]
93 #[doc = "Getter for the `lineAlign` field of this object."]
94 #[doc = ""]
95 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/lineAlign)"]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`, `VttCue`*"]
98 pub fn line_align(this: &VttCue) -> LineAlignSetting;
99 #[cfg(feature = "LineAlignSetting")]
100 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = lineAlign)]
101 #[doc = "Setter for the `lineAlign` field of this object."]
102 #[doc = ""]
103 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/lineAlign)"]
104 #[doc = ""]
105 #[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`, `VttCue`*"]
106 pub fn set_line_align(this: &VttCue, value: LineAlignSetting);
107 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = position)]
108 #[doc = "Getter for the `position` field of this object."]
109 #[doc = ""]
110 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
113 pub fn position(this: &VttCue) -> ::wasm_bindgen::JsValue;
114 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = position)]
115 #[doc = "Setter for the `position` field of this object."]
116 #[doc = ""]
117 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"]
118 #[doc = ""]
119 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
120 #[deprecated]
121 pub fn set_position(this: &VttCue, value: &::wasm_bindgen::JsValue);
122 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = position)]
123 #[doc = "Setter for the `position` field of this object."]
124 #[doc = ""]
125 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"]
126 #[doc = ""]
127 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
128 pub fn set_position_f64(this: &VttCue, value: f64);
129 #[cfg(feature = "AutoKeyword")]
130 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = position)]
131 #[doc = "Setter for the `position` field of this object."]
132 #[doc = ""]
133 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"]
134 #[doc = ""]
135 #[doc = "*This API requires the following crate features to be activated: `AutoKeyword`, `VttCue`*"]
136 pub fn set_position_auto_keyword(this: &VttCue, value: AutoKeyword);
137 #[cfg(feature = "PositionAlignSetting")]
138 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = positionAlign)]
139 #[doc = "Getter for the `positionAlign` field of this object."]
140 #[doc = ""]
141 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/positionAlign)"]
142 #[doc = ""]
143 #[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`, `VttCue`*"]
144 pub fn position_align(this: &VttCue) -> PositionAlignSetting;
145 #[cfg(feature = "PositionAlignSetting")]
146 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = positionAlign)]
147 #[doc = "Setter for the `positionAlign` field of this object."]
148 #[doc = ""]
149 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/positionAlign)"]
150 #[doc = ""]
151 #[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`, `VttCue`*"]
152 pub fn set_position_align(this: &VttCue, value: PositionAlignSetting);
153 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = size)]
154 #[doc = "Getter for the `size` field of this object."]
155 #[doc = ""]
156 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/size)"]
157 #[doc = ""]
158 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
159 pub fn size(this: &VttCue) -> f64;
160 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = size)]
161 #[doc = "Setter for the `size` field of this object."]
162 #[doc = ""]
163 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/size)"]
164 #[doc = ""]
165 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
166 pub fn set_size(this: &VttCue, value: f64);
167 #[cfg(feature = "AlignSetting")]
168 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = align)]
169 #[doc = "Getter for the `align` field of this object."]
170 #[doc = ""]
171 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/align)"]
172 #[doc = ""]
173 #[doc = "*This API requires the following crate features to be activated: `AlignSetting`, `VttCue`*"]
174 pub fn align(this: &VttCue) -> AlignSetting;
175 #[cfg(feature = "AlignSetting")]
176 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = align)]
177 #[doc = "Setter for the `align` field of this object."]
178 #[doc = ""]
179 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/align)"]
180 #[doc = ""]
181 #[doc = "*This API requires the following crate features to be activated: `AlignSetting`, `VttCue`*"]
182 pub fn set_align(this: &VttCue, value: AlignSetting);
183 # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = text)]
184 #[doc = "Getter for the `text` field of this object."]
185 #[doc = ""]
186 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/text)"]
187 #[doc = ""]
188 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
189 pub fn text(this: &VttCue) -> ::alloc::string::String;
190 # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = text)]
191 #[doc = "Setter for the `text` field of this object."]
192 #[doc = ""]
193 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/text)"]
194 #[doc = ""]
195 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
196 pub fn set_text(this: &VttCue, value: &str);
197 #[wasm_bindgen(catch, constructor, js_class = "VTTCue")]
198 #[doc = "The `new VttCue(..)` constructor, creating a new instance of `VttCue`."]
199 #[doc = ""]
200 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/VTTCue)"]
201 #[doc = ""]
202 #[doc = "*This API requires the following crate features to be activated: `VttCue`*"]
203 pub fn new(start_time: f64, end_time: f64, text: &str) -> Result<VttCue, JsValue>;
204 #[cfg(feature = "DocumentFragment")]
205 # [wasm_bindgen (method , structural , js_class = "VTTCue" , js_name = getCueAsHTML)]
206 #[doc = "The `getCueAsHTML()` method."]
207 #[doc = ""]
208 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/getCueAsHTML)"]
209 #[doc = ""]
210 #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `VttCue`*"]
211 pub fn get_cue_as_html(this: &VttCue) -> DocumentFragment;
212}