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 = FontFaceSetLoadEvent , typescript_type = "FontFaceSetLoadEvent")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `FontFaceSetLoadEvent` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] 13 pub type FontFaceSetLoadEvent; 14 # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSetLoadEvent" , js_name = fontfaces)] 15 #[doc = "Getter for the `fontfaces` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/fontfaces)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] fontfaces(this: &FontFaceSetLoadEvent) -> ::js_sys::Array20 pub fn fontfaces(this: &FontFaceSetLoadEvent) -> ::js_sys::Array; 21 #[wasm_bindgen(catch, constructor, js_class = "FontFaceSetLoadEvent")] 22 #[doc = "The `new FontFaceSetLoadEvent(..)` constructor, creating a new instance of `FontFaceSetLoadEvent`."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/FontFaceSetLoadEvent)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] new(type_: &str) -> Result<FontFaceSetLoadEvent, JsValue>27 pub fn new(type_: &str) -> Result<FontFaceSetLoadEvent, JsValue>; 28 #[cfg(feature = "FontFaceSetLoadEventInit")] 29 #[wasm_bindgen(catch, constructor, js_class = "FontFaceSetLoadEvent")] 30 #[doc = "The `new FontFaceSetLoadEvent(..)` constructor, creating a new instance of `FontFaceSetLoadEvent`."] 31 #[doc = ""] 32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/FontFaceSetLoadEvent)"] 33 #[doc = ""] 34 #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`, `FontFaceSetLoadEventInit`*"] new_with_event_init_dict( type_: &str, event_init_dict: &FontFaceSetLoadEventInit, ) -> Result<FontFaceSetLoadEvent, JsValue>35 pub fn new_with_event_init_dict( 36 type_: &str, 37 event_init_dict: &FontFaceSetLoadEventInit, 38 ) -> Result<FontFaceSetLoadEvent, JsValue>; 39 } 40