1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MIDIMessageEvent , typescript_type = "MIDIMessageEvent")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `MidiMessageEvent` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] 13 pub type MidiMessageEvent; 14 # [wasm_bindgen (structural , catch , method , getter , js_class = "MIDIMessageEvent" , js_name = data)] 15 #[doc = "Getter for the `data` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/data)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] data(this: &MidiMessageEvent) -> Result<Vec<u8>, JsValue>20 pub fn data(this: &MidiMessageEvent) -> Result<Vec<u8>, JsValue>; 21 #[wasm_bindgen(catch, constructor, js_class = "MIDIMessageEvent")] 22 #[doc = "The `new MidiMessageEvent(..)` constructor, creating a new instance of `MidiMessageEvent`."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/MIDIMessageEvent)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] new(type_: &str) -> Result<MidiMessageEvent, JsValue>27 pub fn new(type_: &str) -> Result<MidiMessageEvent, JsValue>; 28 #[cfg(feature = "MidiMessageEventInit")] 29 #[wasm_bindgen(catch, constructor, js_class = "MIDIMessageEvent")] 30 #[doc = "The `new MidiMessageEvent(..)` constructor, creating a new instance of `MidiMessageEvent`."] 31 #[doc = ""] 32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/MIDIMessageEvent)"] 33 #[doc = ""] 34 #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`, `MidiMessageEventInit`*"] new_with_event_init_dict( type_: &str, event_init_dict: &MidiMessageEventInit, ) -> Result<MidiMessageEvent, JsValue>35 pub fn new_with_event_init_dict( 36 type_: &str, 37 event_init_dict: &MidiMessageEventInit, 38 ) -> Result<MidiMessageEvent, JsValue>; 39 } 40