1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = FontFaceSet , typescript_type = "FontFaceSet")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `FontFaceSet` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
13     pub type FontFaceSet;
14     # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = size)]
15     #[doc = "Getter for the `size` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/size)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
size(this: &FontFaceSet) -> u3220     pub fn size(this: &FontFaceSet) -> u32;
21     # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloading)]
22     #[doc = "Getter for the `onloading` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
onloading(this: &FontFaceSet) -> Option<::js_sys::Function>27     pub fn onloading(this: &FontFaceSet) -> Option<::js_sys::Function>;
28     # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloading)]
29     #[doc = "Setter for the `onloading` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
set_onloading(this: &FontFaceSet, value: Option<&::js_sys::Function>)34     pub fn set_onloading(this: &FontFaceSet, value: Option<&::js_sys::Function>);
35     # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingdone)]
36     #[doc = "Getter for the `onloadingdone` field of this object."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
onloadingdone(this: &FontFaceSet) -> Option<::js_sys::Function>41     pub fn onloadingdone(this: &FontFaceSet) -> Option<::js_sys::Function>;
42     # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingdone)]
43     #[doc = "Setter for the `onloadingdone` field of this object."]
44     #[doc = ""]
45     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"]
46     #[doc = ""]
47     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
set_onloadingdone(this: &FontFaceSet, value: Option<&::js_sys::Function>)48     pub fn set_onloadingdone(this: &FontFaceSet, value: Option<&::js_sys::Function>);
49     # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingerror)]
50     #[doc = "Getter for the `onloadingerror` field of this object."]
51     #[doc = ""]
52     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"]
53     #[doc = ""]
54     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
onloadingerror(this: &FontFaceSet) -> Option<::js_sys::Function>55     pub fn onloadingerror(this: &FontFaceSet) -> Option<::js_sys::Function>;
56     # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingerror)]
57     #[doc = "Setter for the `onloadingerror` field of this object."]
58     #[doc = ""]
59     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"]
60     #[doc = ""]
61     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
set_onloadingerror(this: &FontFaceSet, value: Option<&::js_sys::Function>)62     pub fn set_onloadingerror(this: &FontFaceSet, value: Option<&::js_sys::Function>);
63     # [wasm_bindgen (structural , catch , method , getter , js_class = "FontFaceSet" , js_name = ready)]
64     #[doc = "Getter for the `ready` field of this object."]
65     #[doc = ""]
66     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/ready)"]
67     #[doc = ""]
68     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
ready(this: &FontFaceSet) -> Result<::js_sys::Promise, JsValue>69     pub fn ready(this: &FontFaceSet) -> Result<::js_sys::Promise, JsValue>;
70     #[cfg(feature = "FontFaceSetLoadStatus")]
71     # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = status)]
72     #[doc = "Getter for the `status` field of this object."]
73     #[doc = ""]
74     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/status)"]
75     #[doc = ""]
76     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetLoadStatus`*"]
status(this: &FontFaceSet) -> FontFaceSetLoadStatus77     pub fn status(this: &FontFaceSet) -> FontFaceSetLoadStatus;
78     #[cfg(feature = "FontFace")]
79     # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = add)]
80     #[doc = "The `add()` method."]
81     #[doc = ""]
82     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/add)"]
83     #[doc = ""]
84     #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"]
add(this: &FontFaceSet, font: &FontFace) -> Result<(), JsValue>85     pub fn add(this: &FontFaceSet, font: &FontFace) -> Result<(), JsValue>;
86     # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = check)]
87     #[doc = "The `check()` method."]
88     #[doc = ""]
89     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"]
90     #[doc = ""]
91     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
check(this: &FontFaceSet, font: &str) -> Result<bool, JsValue>92     pub fn check(this: &FontFaceSet, font: &str) -> Result<bool, JsValue>;
93     # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = check)]
94     #[doc = "The `check()` method."]
95     #[doc = ""]
96     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"]
97     #[doc = ""]
98     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
check_with_text(this: &FontFaceSet, font: &str, text: &str) -> Result<bool, JsValue>99     pub fn check_with_text(this: &FontFaceSet, font: &str, text: &str) -> Result<bool, JsValue>;
100     # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = clear)]
101     #[doc = "The `clear()` method."]
102     #[doc = ""]
103     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/clear)"]
104     #[doc = ""]
105     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
clear(this: &FontFaceSet)106     pub fn clear(this: &FontFaceSet);
107     #[cfg(feature = "FontFace")]
108     # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = delete)]
109     #[doc = "The `delete()` method."]
110     #[doc = ""]
111     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/delete)"]
112     #[doc = ""]
113     #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"]
delete(this: &FontFaceSet, font: &FontFace) -> bool114     pub fn delete(this: &FontFaceSet, font: &FontFace) -> bool;
115     #[cfg(feature = "FontFaceSetIterator")]
116     # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = entries)]
117     #[doc = "The `entries()` method."]
118     #[doc = ""]
119     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/entries)"]
120     #[doc = ""]
121     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetIterator`*"]
entries(this: &FontFaceSet) -> FontFaceSetIterator122     pub fn entries(this: &FontFaceSet) -> FontFaceSetIterator;
123     # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = forEach)]
124     #[doc = "The `forEach()` method."]
125     #[doc = ""]
126     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"]
127     #[doc = ""]
128     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
for_each(this: &FontFaceSet, cb: &::js_sys::Function) -> Result<(), JsValue>129     pub fn for_each(this: &FontFaceSet, cb: &::js_sys::Function) -> Result<(), JsValue>;
130     # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = forEach)]
131     #[doc = "The `forEach()` method."]
132     #[doc = ""]
133     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"]
134     #[doc = ""]
135     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
for_each_with_this_arg( this: &FontFaceSet, cb: &::js_sys::Function, this_arg: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>136     pub fn for_each_with_this_arg(
137         this: &FontFaceSet,
138         cb: &::js_sys::Function,
139         this_arg: &::wasm_bindgen::JsValue,
140     ) -> Result<(), JsValue>;
141     #[cfg(feature = "FontFace")]
142     # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = has)]
143     #[doc = "The `has()` method."]
144     #[doc = ""]
145     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/has)"]
146     #[doc = ""]
147     #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"]
has(this: &FontFaceSet, font: &FontFace) -> bool148     pub fn has(this: &FontFaceSet, font: &FontFace) -> bool;
149     # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = load)]
150     #[doc = "The `load()` method."]
151     #[doc = ""]
152     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"]
153     #[doc = ""]
154     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
load(this: &FontFaceSet, font: &str) -> ::js_sys::Promise155     pub fn load(this: &FontFaceSet, font: &str) -> ::js_sys::Promise;
156     # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = load)]
157     #[doc = "The `load()` method."]
158     #[doc = ""]
159     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"]
160     #[doc = ""]
161     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
load_with_text(this: &FontFaceSet, font: &str, text: &str) -> ::js_sys::Promise162     pub fn load_with_text(this: &FontFaceSet, font: &str, text: &str) -> ::js_sys::Promise;
163     #[cfg(feature = "FontFaceSetIterator")]
164     # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = values)]
165     #[doc = "The `values()` method."]
166     #[doc = ""]
167     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/values)"]
168     #[doc = ""]
169     #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetIterator`*"]
values(this: &FontFaceSet) -> FontFaceSetIterator170     pub fn values(this: &FontFaceSet) -> FontFaceSetIterator;
171 }
172