web_sys/features/
gen_TextTrackList.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrackList , typescript_type = "TextTrackList")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `TextTrackList` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"]
14    pub type TextTrackList;
15    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = length)]
16    #[doc = "Getter for the `length` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/length)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"]
21    pub fn length(this: &TextTrackList) -> u32;
22    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = onchange)]
23    #[doc = "Getter for the `onchange` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onchange)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"]
28    pub fn onchange(this: &TextTrackList) -> Option<::js_sys::Function>;
29    # [wasm_bindgen (structural , method , setter , js_class = "TextTrackList" , js_name = onchange)]
30    #[doc = "Setter for the `onchange` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onchange)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"]
35    pub fn set_onchange(this: &TextTrackList, value: Option<&::js_sys::Function>);
36    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = onaddtrack)]
37    #[doc = "Getter for the `onaddtrack` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onaddtrack)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"]
42    pub fn onaddtrack(this: &TextTrackList) -> Option<::js_sys::Function>;
43    # [wasm_bindgen (structural , method , setter , js_class = "TextTrackList" , js_name = onaddtrack)]
44    #[doc = "Setter for the `onaddtrack` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onaddtrack)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"]
49    pub fn set_onaddtrack(this: &TextTrackList, value: Option<&::js_sys::Function>);
50    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = onremovetrack)]
51    #[doc = "Getter for the `onremovetrack` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onremovetrack)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"]
56    pub fn onremovetrack(this: &TextTrackList) -> Option<::js_sys::Function>;
57    # [wasm_bindgen (structural , method , setter , js_class = "TextTrackList" , js_name = onremovetrack)]
58    #[doc = "Setter for the `onremovetrack` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onremovetrack)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"]
63    pub fn set_onremovetrack(this: &TextTrackList, value: Option<&::js_sys::Function>);
64    #[cfg(feature = "TextTrack")]
65    # [wasm_bindgen (method , structural , js_class = "TextTrackList" , js_name = getTrackById)]
66    #[doc = "The `getTrackById()` method."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/getTrackById)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackList`*"]
71    pub fn get_track_by_id(this: &TextTrackList, id: &str) -> Option<TextTrack>;
72    #[cfg(feature = "TextTrack")]
73    #[wasm_bindgen(method, structural, js_class = "TextTrackList", indexing_getter)]
74    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
75    #[doc = ""]
76    #[doc = ""]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackList`*"]
79    pub fn get(this: &TextTrackList, index: u32) -> Option<TextTrack>;
80}