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