web_sys/features/
gen_MidiInputMap.rs1#![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 = "MIDIInputMap",
10 typescript_type = "MIDIInputMap"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `MidiInputMap` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"]
18 pub type MidiInputMap;
19 #[wasm_bindgen(method, getter, js_class = "MIDIInputMap", 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/MIDIInputMap/size)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"]
25 pub fn size(this: &MidiInputMap) -> u32;
26 #[wasm_bindgen(catch, method, js_class = "MIDIInputMap", js_name = "forEach")]
27 #[doc = "The `forEach()` method."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/forEach)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"]
32 pub fn for_each(this: &MidiInputMap, callback: &::js_sys::Function) -> Result<(), JsValue>;
33 #[cfg(feature = "MidiInput")]
34 #[wasm_bindgen(method, js_class = "MIDIInputMap")]
35 #[doc = "The `get()` method."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/get)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `MidiInput`, `MidiInputMap`*"]
40 pub fn get(this: &MidiInputMap, key: &str) -> Option<MidiInput>;
41 #[wasm_bindgen(method, js_class = "MIDIInputMap")]
42 #[doc = "The `has()` method."]
43 #[doc = ""]
44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/has)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"]
47 pub fn has(this: &MidiInputMap, key: &str) -> bool;
48 #[wasm_bindgen(method, js_class = "MIDIInputMap")]
49 #[doc = "The `entries()` method."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/entries)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"]
54 pub fn entries(this: &MidiInputMap) -> ::js_sys::Iterator;
55 #[wasm_bindgen(method, js_class = "MIDIInputMap")]
56 #[doc = "The `keys()` method."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/keys)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"]
61 pub fn keys(this: &MidiInputMap) -> ::js_sys::Iterator;
62 #[wasm_bindgen(method, js_class = "MIDIInputMap")]
63 #[doc = "The `values()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/values)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"]
68 pub fn values(this: &MidiInputMap) -> ::js_sys::Iterator;
69}