maxcountryman_web_sys/features/
gen_TextTrackList.rs

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