Skip to main content

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