summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_FontFaceSet.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_FontFaceSet.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_FontFaceSet.rs')
-rw-r--r--vendor/web-sys/src/features/gen_FontFaceSet.rs171
1 files changed, 171 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_FontFaceSet.rs b/vendor/web-sys/src/features/gen_FontFaceSet.rs
new file mode 100644
index 000000000..99c8a1f08
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_FontFaceSet.rs
@@ -0,0 +1,171 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = FontFaceSet , typescript_type = "FontFaceSet")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `FontFaceSet` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub type FontFaceSet;
+ # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = size)]
+ #[doc = "Getter for the `size` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/size)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn size(this: &FontFaceSet) -> u32;
+ # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloading)]
+ #[doc = "Getter for the `onloading` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn onloading(this: &FontFaceSet) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloading)]
+ #[doc = "Setter for the `onloading` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn set_onloading(this: &FontFaceSet, value: Option<&::js_sys::Function>);
+ # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingdone)]
+ #[doc = "Getter for the `onloadingdone` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn onloadingdone(this: &FontFaceSet) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingdone)]
+ #[doc = "Setter for the `onloadingdone` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn set_onloadingdone(this: &FontFaceSet, value: Option<&::js_sys::Function>);
+ # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingerror)]
+ #[doc = "Getter for the `onloadingerror` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn onloadingerror(this: &FontFaceSet) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingerror)]
+ #[doc = "Setter for the `onloadingerror` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn set_onloadingerror(this: &FontFaceSet, value: Option<&::js_sys::Function>);
+ # [wasm_bindgen (structural , catch , method , getter , js_class = "FontFaceSet" , js_name = ready)]
+ #[doc = "Getter for the `ready` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/ready)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn ready(this: &FontFaceSet) -> Result<::js_sys::Promise, JsValue>;
+ #[cfg(feature = "FontFaceSetLoadStatus")]
+ # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = status)]
+ #[doc = "Getter for the `status` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/status)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetLoadStatus`*"]
+ pub fn status(this: &FontFaceSet) -> FontFaceSetLoadStatus;
+ #[cfg(feature = "FontFace")]
+ # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = add)]
+ #[doc = "The `add()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/add)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"]
+ pub fn add(this: &FontFaceSet, font: &FontFace) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = check)]
+ #[doc = "The `check()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn check(this: &FontFaceSet, font: &str) -> Result<bool, JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = check)]
+ #[doc = "The `check()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn check_with_text(this: &FontFaceSet, font: &str, text: &str) -> Result<bool, JsValue>;
+ # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = clear)]
+ #[doc = "The `clear()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/clear)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn clear(this: &FontFaceSet);
+ #[cfg(feature = "FontFace")]
+ # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = delete)]
+ #[doc = "The `delete()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/delete)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"]
+ pub fn delete(this: &FontFaceSet, font: &FontFace) -> bool;
+ #[cfg(feature = "FontFaceSetIterator")]
+ # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = entries)]
+ #[doc = "The `entries()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/entries)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetIterator`*"]
+ pub fn entries(this: &FontFaceSet) -> FontFaceSetIterator;
+ # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = forEach)]
+ #[doc = "The `forEach()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn for_each(this: &FontFaceSet, cb: &::js_sys::Function) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = forEach)]
+ #[doc = "The `forEach()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn for_each_with_this_arg(
+ this: &FontFaceSet,
+ cb: &::js_sys::Function,
+ this_arg: &::wasm_bindgen::JsValue,
+ ) -> Result<(), JsValue>;
+ #[cfg(feature = "FontFace")]
+ # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = has)]
+ #[doc = "The `has()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/has)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"]
+ pub fn has(this: &FontFaceSet, font: &FontFace) -> bool;
+ # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = load)]
+ #[doc = "The `load()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn load(this: &FontFaceSet, font: &str) -> ::js_sys::Promise;
+ # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = load)]
+ #[doc = "The `load()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"]
+ pub fn load_with_text(this: &FontFaceSet, font: &str, text: &str) -> ::js_sys::Promise;
+ #[cfg(feature = "FontFaceSetIterator")]
+ # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = values)]
+ #[doc = "The `values()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/values)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetIterator`*"]
+ pub fn values(this: &FontFaceSet) -> FontFaceSetIterator;
+}