diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_HtmlTrackElement.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_HtmlTrackElement.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_HtmlTrackElement.rs | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_HtmlTrackElement.rs b/vendor/web-sys/src/features/gen_HtmlTrackElement.rs new file mode 100644 index 000000000..e1dbf4b5a --- /dev/null +++ b/vendor/web-sys/src/features/gen_HtmlTrackElement.rs @@ -0,0 +1,117 @@ +#![allow(unused_imports)] +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) -> 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) -> 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) -> 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) -> 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; +} |