web_sys/features/
gen_SourceBufferList.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SourceBufferList , typescript_type = "SourceBufferList")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `SourceBufferList` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
14    pub type SourceBufferList;
15    # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = length)]
16    #[doc = "Getter for the `length` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/length)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
21    pub fn length(this: &SourceBufferList) -> u32;
22    # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer)]
23    #[doc = "Getter for the `onaddsourcebuffer` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
28    pub fn onaddsourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>;
29    # [wasm_bindgen (structural , method , setter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer)]
30    #[doc = "Setter for the `onaddsourcebuffer` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
35    pub fn set_onaddsourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>);
36    # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer)]
37    #[doc = "Getter for the `onremovesourcebuffer` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
42    pub fn onremovesourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>;
43    # [wasm_bindgen (structural , method , setter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer)]
44    #[doc = "Setter for the `onremovesourcebuffer` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
49    pub fn set_onremovesourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>);
50    #[cfg(feature = "SourceBuffer")]
51    #[wasm_bindgen(method, structural, js_class = "SourceBufferList", indexing_getter)]
52    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
53    #[doc = ""]
54    #[doc = ""]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferList`*"]
57    pub fn get(this: &SourceBufferList, index: u32) -> Option<SourceBuffer>;
58}