Skip to main content

web_sys/features/
gen_ImageTrackList.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    #[wasm_bindgen(
9        extends = "::js_sys::Object",
10        js_name = "ImageTrackList",
11        typescript_type = "ImageTrackList"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `ImageTrackList` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `ImageTrackList`*"]
19    #[doc = ""]
20    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22    pub type ImageTrackList;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(method, getter, js_class = "ImageTrackList", js_name = "ready")]
25    #[doc = "Getter for the `ready` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/ready)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `ImageTrackList`*"]
30    #[doc = ""]
31    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33    pub fn ready(this: &ImageTrackList) -> ::js_sys::Promise<::js_sys::Undefined>;
34    #[cfg(web_sys_unstable_apis)]
35    #[wasm_bindgen(method, getter, js_class = "ImageTrackList", js_name = "length")]
36    #[doc = "Getter for the `length` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/length)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `ImageTrackList`*"]
41    #[doc = ""]
42    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44    pub fn length(this: &ImageTrackList) -> u32;
45    #[cfg(web_sys_unstable_apis)]
46    #[wasm_bindgen(method, getter, js_class = "ImageTrackList", js_name = "selectedIndex")]
47    #[doc = "Getter for the `selectedIndex` field of this object."]
48    #[doc = ""]
49    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/selectedIndex)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `ImageTrackList`*"]
52    #[doc = ""]
53    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
54    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
55    pub fn selected_index(this: &ImageTrackList) -> i32;
56    #[cfg(web_sys_unstable_apis)]
57    #[cfg(feature = "ImageTrack")]
58    #[wasm_bindgen(method, getter, js_class = "ImageTrackList", js_name = "selectedTrack")]
59    #[doc = "Getter for the `selectedTrack` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/selectedTrack)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `ImageTrack`, `ImageTrackList`*"]
64    #[doc = ""]
65    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
66    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
67    pub fn selected_track(this: &ImageTrackList) -> Option<ImageTrack>;
68    #[cfg(web_sys_unstable_apis)]
69    #[cfg(feature = "ImageTrack")]
70    #[wasm_bindgen(method, js_class = "ImageTrackList", indexing_getter)]
71    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
72    #[doc = ""]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `ImageTrack`, `ImageTrackList`*"]
75    #[doc = ""]
76    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
78    pub fn get(this: &ImageTrackList, index: u32) -> Option<ImageTrack>;
79}