maxcountryman_web_sys/features/
gen_HtmlTrackElement.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTrackElement , typescript_type = "HTMLTrackElement")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `HtmlTrackElement` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
13    pub type HtmlTrackElement;
14    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = kind)]
15    #[doc = "Getter for the `kind` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/kind)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
20    pub fn kind(this: &HtmlTrackElement) -> String;
21    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = kind)]
22    #[doc = "Setter for the `kind` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/kind)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
27    pub fn set_kind(this: &HtmlTrackElement, value: &str);
28    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = src)]
29    #[doc = "Getter for the `src` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
34    pub fn src(this: &HtmlTrackElement) -> String;
35    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = src)]
36    #[doc = "Setter for the `src` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
41    pub fn set_src(this: &HtmlTrackElement, value: &str);
42    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = srclang)]
43    #[doc = "Getter for the `srclang` field of this object."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/srclang)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
48    pub fn srclang(this: &HtmlTrackElement) -> String;
49    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = srclang)]
50    #[doc = "Setter for the `srclang` field of this object."]
51    #[doc = ""]
52    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/srclang)"]
53    #[doc = ""]
54    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
55    pub fn set_srclang(this: &HtmlTrackElement, value: &str);
56    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = label)]
57    #[doc = "Getter for the `label` field of this object."]
58    #[doc = ""]
59    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/label)"]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
62    pub fn label(this: &HtmlTrackElement) -> String;
63    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = label)]
64    #[doc = "Setter for the `label` field of this object."]
65    #[doc = ""]
66    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/label)"]
67    #[doc = ""]
68    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
69    pub fn set_label(this: &HtmlTrackElement, value: &str);
70    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = default)]
71    #[doc = "Getter for the `default` field of this object."]
72    #[doc = ""]
73    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/default)"]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
76    pub fn default(this: &HtmlTrackElement) -> bool;
77    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = default)]
78    #[doc = "Setter for the `default` field of this object."]
79    #[doc = ""]
80    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/default)"]
81    #[doc = ""]
82    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
83    pub fn set_default(this: &HtmlTrackElement, value: bool);
84    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = readyState)]
85    #[doc = "Getter for the `readyState` field of this object."]
86    #[doc = ""]
87    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/readyState)"]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
90    pub fn ready_state(this: &HtmlTrackElement) -> u16;
91    #[cfg(feature = "TextTrack")]
92    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = track)]
93    #[doc = "Getter for the `track` field of this object."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/track)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`, `TextTrack`*"]
98    pub fn track(this: &HtmlTrackElement) -> Option<TextTrack>;
99}
100impl HtmlTrackElement {
101    #[doc = "The `HTMLTrackElement.NONE` const."]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
104    pub const NONE: u16 = 0i64 as u16;
105    #[doc = "The `HTMLTrackElement.LOADING` const."]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
108    pub const LOADING: u16 = 1u64 as u16;
109    #[doc = "The `HTMLTrackElement.LOADED` const."]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
112    pub const LOADED: u16 = 2u64 as u16;
113    #[doc = "The `HTMLTrackElement.ERROR` const."]
114    #[doc = ""]
115    #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"]
116    pub const ERROR: u16 = 3u64 as u16;
117}