web_sys/features/
gen_FontFaceSet.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#![allow(unused_imports)]
#![allow(clippy::all)]
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;
}