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