maxcountryman_web_sys/features/
gen_MidiAccess.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIAccess , typescript_type = "MIDIAccess")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `MidiAccess` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"]
13 pub type MidiAccess;
14 #[cfg(feature = "MidiInputMap")]
15 # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = inputs)]
16 #[doc = "Getter for the `inputs` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/inputs)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `MidiAccess`, `MidiInputMap`*"]
21 pub fn inputs(this: &MidiAccess) -> MidiInputMap;
22 #[cfg(feature = "MidiOutputMap")]
23 # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = outputs)]
24 #[doc = "Getter for the `outputs` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/outputs)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `MidiAccess`, `MidiOutputMap`*"]
29 pub fn outputs(this: &MidiAccess) -> MidiOutputMap;
30 # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = onstatechange)]
31 #[doc = "Getter for the `onstatechange` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/onstatechange)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"]
36 pub fn onstatechange(this: &MidiAccess) -> Option<::js_sys::Function>;
37 # [wasm_bindgen (structural , method , setter , js_class = "MIDIAccess" , js_name = onstatechange)]
38 #[doc = "Setter for the `onstatechange` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/onstatechange)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"]
43 pub fn set_onstatechange(this: &MidiAccess, value: Option<&::js_sys::Function>);
44 # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = sysexEnabled)]
45 #[doc = "Getter for the `sysexEnabled` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/sysexEnabled)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"]
50 pub fn sysex_enabled(this: &MidiAccess) -> bool;
51}