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 = TextTrackCueList , typescript_type = "TextTrackCueList")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `TextTrackCueList` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`*"]
13     pub type TextTrackCueList;
14     # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCueList" , js_name = length)]
15     #[doc = "Getter for the `length` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList/length)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`*"]
length(this: &TextTrackCueList) -> u3220     pub fn length(this: &TextTrackCueList) -> u32;
21     #[cfg(feature = "VttCue")]
22     # [wasm_bindgen (method , structural , js_class = "TextTrackCueList" , js_name = getCueById)]
23     #[doc = "The `getCueById()` method."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList/getCueById)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`, `VttCue`*"]
get_cue_by_id(this: &TextTrackCueList, id: &str) -> Option<VttCue>28     pub fn get_cue_by_id(this: &TextTrackCueList, id: &str) -> Option<VttCue>;
29     #[cfg(feature = "VttCue")]
30     #[wasm_bindgen(method, structural, js_class = "TextTrackCueList", indexing_getter)]
31     #[doc = "Indexing getter."]
32     #[doc = ""]
33     #[doc = ""]
34     #[doc = ""]
35     #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`, `VttCue`*"]
get(this: &TextTrackCueList, index: u32) -> Option<VttCue>36     pub fn get(this: &TextTrackCueList, index: u32) -> Option<VttCue>;
37 }
38