Skip to main content

web_sys/features/
gen_FontData.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    #[wasm_bindgen(
9        extends = "::js_sys::Object",
10        js_name = "FontData",
11        typescript_type = "FontData"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `FontData` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `FontData`*"]
19    #[doc = ""]
20    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22    pub type FontData;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(method, getter, js_class = "FontData", js_name = "postscriptName")]
25    #[doc = "Getter for the `postscriptName` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData/postscriptName)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `FontData`*"]
30    #[doc = ""]
31    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33    pub fn postscript_name(this: &FontData) -> ::alloc::string::String;
34    #[cfg(web_sys_unstable_apis)]
35    #[wasm_bindgen(method, getter, js_class = "FontData", js_name = "fullName")]
36    #[doc = "Getter for the `fullName` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData/fullName)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `FontData`*"]
41    #[doc = ""]
42    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44    pub fn full_name(this: &FontData) -> ::alloc::string::String;
45    #[cfg(web_sys_unstable_apis)]
46    #[wasm_bindgen(method, getter, js_class = "FontData", js_name = "family")]
47    #[doc = "Getter for the `family` field of this object."]
48    #[doc = ""]
49    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData/family)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `FontData`*"]
52    #[doc = ""]
53    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
54    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
55    pub fn family(this: &FontData) -> ::alloc::string::String;
56    #[cfg(web_sys_unstable_apis)]
57    #[wasm_bindgen(method, getter, js_class = "FontData", js_name = "style")]
58    #[doc = "Getter for the `style` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData/style)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `FontData`*"]
63    #[doc = ""]
64    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
65    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
66    pub fn style(this: &FontData) -> ::alloc::string::String;
67    #[cfg(web_sys_unstable_apis)]
68    #[cfg(feature = "Blob")]
69    #[wasm_bindgen(method, js_class = "FontData")]
70    #[doc = "The `blob()` method."]
71    #[doc = ""]
72    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData/blob)"]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `Blob`, `FontData`*"]
75    #[doc = ""]
76    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
78    pub fn blob(this: &FontData) -> ::js_sys::Promise<Blob>;
79}