web_sys/features/
gen_HtmlTrackElement.rs

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