Skip to main content

web_sys/features/
gen_AudioParamMap.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "AudioParamMap",
10        typescript_type = "AudioParamMap"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `AudioParamMap` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
18    pub type AudioParamMap;
19    #[wasm_bindgen(method, getter, js_class = "AudioParamMap", js_name = "size")]
20    #[doc = "Getter for the `size` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/size)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
25    pub fn size(this: &AudioParamMap) -> u32;
26    #[wasm_bindgen(catch, method, js_class = "AudioParamMap", js_name = "forEach")]
27    #[doc = "The `forEach()` method."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/forEach)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
32    pub fn for_each(this: &AudioParamMap, callback: &::js_sys::Function) -> Result<(), JsValue>;
33    #[cfg(feature = "AudioParam")]
34    #[wasm_bindgen(method, js_class = "AudioParamMap")]
35    #[doc = "The `get()` method."]
36    #[doc = ""]
37    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/get)"]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `AudioParamMap`*"]
40    pub fn get(this: &AudioParamMap, key: &str) -> Option<AudioParam>;
41    #[wasm_bindgen(method, js_class = "AudioParamMap")]
42    #[doc = "The `has()` method."]
43    #[doc = ""]
44    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/has)"]
45    #[doc = ""]
46    #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
47    pub fn has(this: &AudioParamMap, key: &str) -> bool;
48    #[wasm_bindgen(method, js_class = "AudioParamMap")]
49    #[doc = "The `entries()` method."]
50    #[doc = ""]
51    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/entries)"]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
54    pub fn entries(this: &AudioParamMap) -> ::js_sys::Iterator;
55    #[wasm_bindgen(method, js_class = "AudioParamMap")]
56    #[doc = "The `keys()` method."]
57    #[doc = ""]
58    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/keys)"]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
61    pub fn keys(this: &AudioParamMap) -> ::js_sys::Iterator;
62    #[wasm_bindgen(method, js_class = "AudioParamMap")]
63    #[doc = "The `values()` method."]
64    #[doc = ""]
65    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/values)"]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
68    pub fn values(this: &AudioParamMap) -> ::js_sys::Iterator;
69}