1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OffscreenCanvasRenderingContext2D , typescript_type = "OffscreenCanvasRenderingContext2D")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `OffscreenCanvasRenderingContext2d` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
14 pub type OffscreenCanvasRenderingContext2d;
15 #[cfg(feature = "OffscreenCanvas")]
16 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = canvas)]
17 #[doc = "Getter for the `canvas` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/canvas)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"]
22 pub fn canvas(this: &OffscreenCanvasRenderingContext2d) -> OffscreenCanvas;
23 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = globalAlpha)]
24 #[doc = "Getter for the `globalAlpha` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/globalAlpha)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
29 pub fn global_alpha(this: &OffscreenCanvasRenderingContext2d) -> f64;
30 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = globalAlpha)]
31 #[doc = "Setter for the `globalAlpha` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/globalAlpha)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
36 pub fn set_global_alpha(this: &OffscreenCanvasRenderingContext2d, value: f64);
37 # [wasm_bindgen (structural , catch , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = globalCompositeOperation)]
38 #[doc = "Getter for the `globalCompositeOperation` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/globalCompositeOperation)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
43 pub fn global_composite_operation(
44 this: &OffscreenCanvasRenderingContext2d,
45 ) -> Result<::alloc::string::String, JsValue>;
46 # [wasm_bindgen (structural , catch , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = globalCompositeOperation)]
47 #[doc = "Setter for the `globalCompositeOperation` field of this object."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/globalCompositeOperation)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
52 pub fn set_global_composite_operation(
53 this: &OffscreenCanvasRenderingContext2d,
54 value: &str,
55 ) -> Result<(), JsValue>;
56 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeStyle)]
57 #[doc = "Getter for the `strokeStyle` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeStyle)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
62 pub fn stroke_style(this: &OffscreenCanvasRenderingContext2d) -> ::wasm_bindgen::JsValue;
63 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeStyle)]
64 #[doc = "Setter for the `strokeStyle` field of this object."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeStyle)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
69 #[deprecated]
70 pub fn set_stroke_style(
71 this: &OffscreenCanvasRenderingContext2d,
72 value: &::wasm_bindgen::JsValue,
73 );
74 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeStyle)]
75 #[doc = "Setter for the `strokeStyle` field of this object."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeStyle)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
80 pub fn set_stroke_style_str(this: &OffscreenCanvasRenderingContext2d, value: &str);
81 #[cfg(feature = "CanvasGradient")]
82 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeStyle)]
83 #[doc = "Setter for the `strokeStyle` field of this object."]
84 #[doc = ""]
85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeStyle)"]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"]
88 pub fn set_stroke_style_canvas_gradient(
89 this: &OffscreenCanvasRenderingContext2d,
90 value: &CanvasGradient,
91 );
92 #[cfg(feature = "CanvasPattern")]
93 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeStyle)]
94 #[doc = "Setter for the `strokeStyle` field of this object."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeStyle)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvasRenderingContext2d`*"]
99 pub fn set_stroke_style_canvas_pattern(
100 this: &OffscreenCanvasRenderingContext2d,
101 value: &CanvasPattern,
102 );
103 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillStyle)]
104 #[doc = "Getter for the `fillStyle` field of this object."]
105 #[doc = ""]
106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillStyle)"]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
109 pub fn fill_style(this: &OffscreenCanvasRenderingContext2d) -> ::wasm_bindgen::JsValue;
110 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillStyle)]
111 #[doc = "Setter for the `fillStyle` field of this object."]
112 #[doc = ""]
113 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillStyle)"]
114 #[doc = ""]
115 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
116 #[deprecated]
117 pub fn set_fill_style(
118 this: &OffscreenCanvasRenderingContext2d,
119 value: &::wasm_bindgen::JsValue,
120 );
121 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillStyle)]
122 #[doc = "Setter for the `fillStyle` field of this object."]
123 #[doc = ""]
124 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillStyle)"]
125 #[doc = ""]
126 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
127 pub fn set_fill_style_str(this: &OffscreenCanvasRenderingContext2d, value: &str);
128 #[cfg(feature = "CanvasGradient")]
129 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillStyle)]
130 #[doc = "Setter for the `fillStyle` field of this object."]
131 #[doc = ""]
132 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillStyle)"]
133 #[doc = ""]
134 #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"]
135 pub fn set_fill_style_canvas_gradient(
136 this: &OffscreenCanvasRenderingContext2d,
137 value: &CanvasGradient,
138 );
139 #[cfg(feature = "CanvasPattern")]
140 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillStyle)]
141 #[doc = "Setter for the `fillStyle` field of this object."]
142 #[doc = ""]
143 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillStyle)"]
144 #[doc = ""]
145 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvasRenderingContext2d`*"]
146 pub fn set_fill_style_canvas_pattern(
147 this: &OffscreenCanvasRenderingContext2d,
148 value: &CanvasPattern,
149 );
150 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = filter)]
151 #[doc = "Getter for the `filter` field of this object."]
152 #[doc = ""]
153 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/filter)"]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
156 pub fn filter(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String;
157 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = filter)]
158 #[doc = "Setter for the `filter` field of this object."]
159 #[doc = ""]
160 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/filter)"]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
163 pub fn set_filter(this: &OffscreenCanvasRenderingContext2d, value: &str);
164 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = imageSmoothingEnabled)]
165 #[doc = "Getter for the `imageSmoothingEnabled` field of this object."]
166 #[doc = ""]
167 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/imageSmoothingEnabled)"]
168 #[doc = ""]
169 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
170 pub fn image_smoothing_enabled(this: &OffscreenCanvasRenderingContext2d) -> bool;
171 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = imageSmoothingEnabled)]
172 #[doc = "Setter for the `imageSmoothingEnabled` field of this object."]
173 #[doc = ""]
174 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/imageSmoothingEnabled)"]
175 #[doc = ""]
176 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
177 pub fn set_image_smoothing_enabled(this: &OffscreenCanvasRenderingContext2d, value: bool);
178 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineWidth)]
179 #[doc = "Getter for the `lineWidth` field of this object."]
180 #[doc = ""]
181 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineWidth)"]
182 #[doc = ""]
183 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
184 pub fn line_width(this: &OffscreenCanvasRenderingContext2d) -> f64;
185 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineWidth)]
186 #[doc = "Setter for the `lineWidth` field of this object."]
187 #[doc = ""]
188 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineWidth)"]
189 #[doc = ""]
190 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
191 pub fn set_line_width(this: &OffscreenCanvasRenderingContext2d, value: f64);
192 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineCap)]
193 #[doc = "Getter for the `lineCap` field of this object."]
194 #[doc = ""]
195 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineCap)"]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
198 pub fn line_cap(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String;
199 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineCap)]
200 #[doc = "Setter for the `lineCap` field of this object."]
201 #[doc = ""]
202 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineCap)"]
203 #[doc = ""]
204 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
205 pub fn set_line_cap(this: &OffscreenCanvasRenderingContext2d, value: &str);
206 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineJoin)]
207 #[doc = "Getter for the `lineJoin` field of this object."]
208 #[doc = ""]
209 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineJoin)"]
210 #[doc = ""]
211 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
212 pub fn line_join(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String;
213 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineJoin)]
214 #[doc = "Setter for the `lineJoin` field of this object."]
215 #[doc = ""]
216 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineJoin)"]
217 #[doc = ""]
218 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
219 pub fn set_line_join(this: &OffscreenCanvasRenderingContext2d, value: &str);
220 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = miterLimit)]
221 #[doc = "Getter for the `miterLimit` field of this object."]
222 #[doc = ""]
223 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/miterLimit)"]
224 #[doc = ""]
225 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
226 pub fn miter_limit(this: &OffscreenCanvasRenderingContext2d) -> f64;
227 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = miterLimit)]
228 #[doc = "Setter for the `miterLimit` field of this object."]
229 #[doc = ""]
230 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/miterLimit)"]
231 #[doc = ""]
232 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
233 pub fn set_miter_limit(this: &OffscreenCanvasRenderingContext2d, value: f64);
234 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineDashOffset)]
235 #[doc = "Getter for the `lineDashOffset` field of this object."]
236 #[doc = ""]
237 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineDashOffset)"]
238 #[doc = ""]
239 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
240 pub fn line_dash_offset(this: &OffscreenCanvasRenderingContext2d) -> f64;
241 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineDashOffset)]
242 #[doc = "Setter for the `lineDashOffset` field of this object."]
243 #[doc = ""]
244 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineDashOffset)"]
245 #[doc = ""]
246 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
247 pub fn set_line_dash_offset(this: &OffscreenCanvasRenderingContext2d, value: f64);
248 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = shadowOffsetX)]
249 #[doc = "Getter for the `shadowOffsetX` field of this object."]
250 #[doc = ""]
251 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/shadowOffsetX)"]
252 #[doc = ""]
253 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
254 pub fn shadow_offset_x(this: &OffscreenCanvasRenderingContext2d) -> f64;
255 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = shadowOffsetX)]
256 #[doc = "Setter for the `shadowOffsetX` field of this object."]
257 #[doc = ""]
258 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/shadowOffsetX)"]
259 #[doc = ""]
260 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
261 pub fn set_shadow_offset_x(this: &OffscreenCanvasRenderingContext2d, value: f64);
262 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = shadowOffsetY)]
263 #[doc = "Getter for the `shadowOffsetY` field of this object."]
264 #[doc = ""]
265 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/shadowOffsetY)"]
266 #[doc = ""]
267 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
268 pub fn shadow_offset_y(this: &OffscreenCanvasRenderingContext2d) -> f64;
269 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = shadowOffsetY)]
270 #[doc = "Setter for the `shadowOffsetY` field of this object."]
271 #[doc = ""]
272 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/shadowOffsetY)"]
273 #[doc = ""]
274 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
275 pub fn set_shadow_offset_y(this: &OffscreenCanvasRenderingContext2d, value: f64);
276 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = shadowBlur)]
277 #[doc = "Getter for the `shadowBlur` field of this object."]
278 #[doc = ""]
279 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/shadowBlur)"]
280 #[doc = ""]
281 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
282 pub fn shadow_blur(this: &OffscreenCanvasRenderingContext2d) -> f64;
283 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = shadowBlur)]
284 #[doc = "Setter for the `shadowBlur` field of this object."]
285 #[doc = ""]
286 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/shadowBlur)"]
287 #[doc = ""]
288 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
289 pub fn set_shadow_blur(this: &OffscreenCanvasRenderingContext2d, value: f64);
290 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = shadowColor)]
291 #[doc = "Getter for the `shadowColor` field of this object."]
292 #[doc = ""]
293 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/shadowColor)"]
294 #[doc = ""]
295 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
296 pub fn shadow_color(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String;
297 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = shadowColor)]
298 #[doc = "Setter for the `shadowColor` field of this object."]
299 #[doc = ""]
300 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/shadowColor)"]
301 #[doc = ""]
302 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
303 pub fn set_shadow_color(this: &OffscreenCanvasRenderingContext2d, value: &str);
304 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = font)]
305 #[doc = "Getter for the `font` field of this object."]
306 #[doc = ""]
307 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/font)"]
308 #[doc = ""]
309 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
310 pub fn font(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String;
311 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = font)]
312 #[doc = "Setter for the `font` field of this object."]
313 #[doc = ""]
314 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/font)"]
315 #[doc = ""]
316 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
317 pub fn set_font(this: &OffscreenCanvasRenderingContext2d, value: &str);
318 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = textAlign)]
319 #[doc = "Getter for the `textAlign` field of this object."]
320 #[doc = ""]
321 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/textAlign)"]
322 #[doc = ""]
323 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
324 pub fn text_align(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String;
325 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = textAlign)]
326 #[doc = "Setter for the `textAlign` field of this object."]
327 #[doc = ""]
328 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/textAlign)"]
329 #[doc = ""]
330 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
331 pub fn set_text_align(this: &OffscreenCanvasRenderingContext2d, value: &str);
332 # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = textBaseline)]
333 #[doc = "Getter for the `textBaseline` field of this object."]
334 #[doc = ""]
335 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/textBaseline)"]
336 #[doc = ""]
337 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
338 pub fn text_baseline(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String;
339 # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = textBaseline)]
340 #[doc = "Setter for the `textBaseline` field of this object."]
341 #[doc = ""]
342 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/textBaseline)"]
343 #[doc = ""]
344 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
345 pub fn set_text_baseline(this: &OffscreenCanvasRenderingContext2d, value: &str);
346 #[cfg(feature = "HtmlImageElement")]
347 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
348 #[doc = "The `drawImage()` method."]
349 #[doc = ""]
350 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
351 #[doc = ""]
352 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"]
353 pub fn draw_image_with_html_image_element(
354 this: &OffscreenCanvasRenderingContext2d,
355 image: &HtmlImageElement,
356 dx: f64,
357 dy: f64,
358 ) -> Result<(), JsValue>;
359 #[cfg(feature = "SvgImageElement")]
360 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
361 #[doc = "The `drawImage()` method."]
362 #[doc = ""]
363 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
364 #[doc = ""]
365 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"]
366 pub fn draw_image_with_svg_image_element(
367 this: &OffscreenCanvasRenderingContext2d,
368 image: &SvgImageElement,
369 dx: f64,
370 dy: f64,
371 ) -> Result<(), JsValue>;
372 #[cfg(feature = "HtmlCanvasElement")]
373 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
374 #[doc = "The `drawImage()` method."]
375 #[doc = ""]
376 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
377 #[doc = ""]
378 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"]
379 pub fn draw_image_with_html_canvas_element(
380 this: &OffscreenCanvasRenderingContext2d,
381 image: &HtmlCanvasElement,
382 dx: f64,
383 dy: f64,
384 ) -> Result<(), JsValue>;
385 #[cfg(feature = "HtmlVideoElement")]
386 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
387 #[doc = "The `drawImage()` method."]
388 #[doc = ""]
389 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
390 #[doc = ""]
391 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"]
392 pub fn draw_image_with_html_video_element(
393 this: &OffscreenCanvasRenderingContext2d,
394 image: &HtmlVideoElement,
395 dx: f64,
396 dy: f64,
397 ) -> Result<(), JsValue>;
398 #[cfg(feature = "ImageBitmap")]
399 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
400 #[doc = "The `drawImage()` method."]
401 #[doc = ""]
402 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
403 #[doc = ""]
404 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"]
405 pub fn draw_image_with_image_bitmap(
406 this: &OffscreenCanvasRenderingContext2d,
407 image: &ImageBitmap,
408 dx: f64,
409 dy: f64,
410 ) -> Result<(), JsValue>;
411 #[cfg(feature = "OffscreenCanvas")]
412 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
413 #[doc = "The `drawImage()` method."]
414 #[doc = ""]
415 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
416 #[doc = ""]
417 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"]
418 pub fn draw_image_with_offscreen_canvas(
419 this: &OffscreenCanvasRenderingContext2d,
420 image: &OffscreenCanvas,
421 dx: f64,
422 dy: f64,
423 ) -> Result<(), JsValue>;
424 #[cfg(feature = "HtmlImageElement")]
425 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
426 #[doc = "The `drawImage()` method."]
427 #[doc = ""]
428 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
429 #[doc = ""]
430 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"]
431 pub fn draw_image_with_html_image_element_and_dw_and_dh(
432 this: &OffscreenCanvasRenderingContext2d,
433 image: &HtmlImageElement,
434 dx: f64,
435 dy: f64,
436 dw: f64,
437 dh: f64,
438 ) -> Result<(), JsValue>;
439 #[cfg(feature = "SvgImageElement")]
440 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
441 #[doc = "The `drawImage()` method."]
442 #[doc = ""]
443 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
444 #[doc = ""]
445 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"]
446 pub fn draw_image_with_svg_image_element_and_dw_and_dh(
447 this: &OffscreenCanvasRenderingContext2d,
448 image: &SvgImageElement,
449 dx: f64,
450 dy: f64,
451 dw: f64,
452 dh: f64,
453 ) -> Result<(), JsValue>;
454 #[cfg(feature = "HtmlCanvasElement")]
455 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
456 #[doc = "The `drawImage()` method."]
457 #[doc = ""]
458 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
459 #[doc = ""]
460 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"]
461 pub fn draw_image_with_html_canvas_element_and_dw_and_dh(
462 this: &OffscreenCanvasRenderingContext2d,
463 image: &HtmlCanvasElement,
464 dx: f64,
465 dy: f64,
466 dw: f64,
467 dh: f64,
468 ) -> Result<(), JsValue>;
469 #[cfg(feature = "HtmlVideoElement")]
470 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
471 #[doc = "The `drawImage()` method."]
472 #[doc = ""]
473 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
474 #[doc = ""]
475 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"]
476 pub fn draw_image_with_html_video_element_and_dw_and_dh(
477 this: &OffscreenCanvasRenderingContext2d,
478 image: &HtmlVideoElement,
479 dx: f64,
480 dy: f64,
481 dw: f64,
482 dh: f64,
483 ) -> Result<(), JsValue>;
484 #[cfg(feature = "ImageBitmap")]
485 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
486 #[doc = "The `drawImage()` method."]
487 #[doc = ""]
488 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
489 #[doc = ""]
490 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"]
491 pub fn draw_image_with_image_bitmap_and_dw_and_dh(
492 this: &OffscreenCanvasRenderingContext2d,
493 image: &ImageBitmap,
494 dx: f64,
495 dy: f64,
496 dw: f64,
497 dh: f64,
498 ) -> Result<(), JsValue>;
499 #[cfg(feature = "OffscreenCanvas")]
500 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
501 #[doc = "The `drawImage()` method."]
502 #[doc = ""]
503 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
504 #[doc = ""]
505 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"]
506 pub fn draw_image_with_offscreen_canvas_and_dw_and_dh(
507 this: &OffscreenCanvasRenderingContext2d,
508 image: &OffscreenCanvas,
509 dx: f64,
510 dy: f64,
511 dw: f64,
512 dh: f64,
513 ) -> Result<(), JsValue>;
514 #[cfg(feature = "HtmlImageElement")]
515 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
516 #[doc = "The `drawImage()` method."]
517 #[doc = ""]
518 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
519 #[doc = ""]
520 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"]
521 pub fn draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
522 this: &OffscreenCanvasRenderingContext2d,
523 image: &HtmlImageElement,
524 sx: f64,
525 sy: f64,
526 sw: f64,
527 sh: f64,
528 dx: f64,
529 dy: f64,
530 dw: f64,
531 dh: f64,
532 ) -> Result<(), JsValue>;
533 #[cfg(feature = "SvgImageElement")]
534 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
535 #[doc = "The `drawImage()` method."]
536 #[doc = ""]
537 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
538 #[doc = ""]
539 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"]
540 pub fn draw_image_with_svg_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
541 this: &OffscreenCanvasRenderingContext2d,
542 image: &SvgImageElement,
543 sx: f64,
544 sy: f64,
545 sw: f64,
546 sh: f64,
547 dx: f64,
548 dy: f64,
549 dw: f64,
550 dh: f64,
551 ) -> Result<(), JsValue>;
552 #[cfg(feature = "HtmlCanvasElement")]
553 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
554 #[doc = "The `drawImage()` method."]
555 #[doc = ""]
556 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
557 #[doc = ""]
558 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"]
559 pub fn draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
560 this: &OffscreenCanvasRenderingContext2d,
561 image: &HtmlCanvasElement,
562 sx: f64,
563 sy: f64,
564 sw: f64,
565 sh: f64,
566 dx: f64,
567 dy: f64,
568 dw: f64,
569 dh: f64,
570 ) -> Result<(), JsValue>;
571 #[cfg(feature = "HtmlVideoElement")]
572 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
573 #[doc = "The `drawImage()` method."]
574 #[doc = ""]
575 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
576 #[doc = ""]
577 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"]
578 pub fn draw_image_with_html_video_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
579 this: &OffscreenCanvasRenderingContext2d,
580 image: &HtmlVideoElement,
581 sx: f64,
582 sy: f64,
583 sw: f64,
584 sh: f64,
585 dx: f64,
586 dy: f64,
587 dw: f64,
588 dh: f64,
589 ) -> Result<(), JsValue>;
590 #[cfg(feature = "ImageBitmap")]
591 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
592 #[doc = "The `drawImage()` method."]
593 #[doc = ""]
594 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
595 #[doc = ""]
596 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"]
597 pub fn draw_image_with_image_bitmap_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
598 this: &OffscreenCanvasRenderingContext2d,
599 image: &ImageBitmap,
600 sx: f64,
601 sy: f64,
602 sw: f64,
603 sh: f64,
604 dx: f64,
605 dy: f64,
606 dw: f64,
607 dh: f64,
608 ) -> Result<(), JsValue>;
609 #[cfg(feature = "OffscreenCanvas")]
610 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
611 #[doc = "The `drawImage()` method."]
612 #[doc = ""]
613 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
614 #[doc = ""]
615 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"]
616 pub fn draw_image_with_offscreen_canvas_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
617 this: &OffscreenCanvasRenderingContext2d,
618 image: &OffscreenCanvas,
619 sx: f64,
620 sy: f64,
621 sw: f64,
622 sh: f64,
623 dx: f64,
624 dy: f64,
625 dw: f64,
626 dh: f64,
627 ) -> Result<(), JsValue>;
628 #[cfg(web_sys_unstable_apis)]
629 #[cfg(feature = "VideoFrame")]
630 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
631 #[doc = "The `drawImage()` method."]
632 #[doc = ""]
633 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
634 #[doc = ""]
635 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"]
636 #[doc = ""]
637 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
638 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
639 pub fn draw_image_with_video_frame(
640 this: &OffscreenCanvasRenderingContext2d,
641 image: &VideoFrame,
642 dx: f64,
643 dy: f64,
644 ) -> Result<(), JsValue>;
645 #[cfg(web_sys_unstable_apis)]
646 #[cfg(feature = "VideoFrame")]
647 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
648 #[doc = "The `drawImage()` method."]
649 #[doc = ""]
650 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
651 #[doc = ""]
652 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"]
653 #[doc = ""]
654 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
655 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
656 pub fn draw_image_with_video_frame_and_dw_and_dh(
657 this: &OffscreenCanvasRenderingContext2d,
658 image: &VideoFrame,
659 dx: f64,
660 dy: f64,
661 dw: f64,
662 dh: f64,
663 ) -> Result<(), JsValue>;
664 #[cfg(web_sys_unstable_apis)]
665 #[cfg(feature = "VideoFrame")]
666 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
667 #[doc = "The `drawImage()` method."]
668 #[doc = ""]
669 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
670 #[doc = ""]
671 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"]
672 #[doc = ""]
673 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
674 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
675 pub fn draw_image_with_video_frame_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
676 this: &OffscreenCanvasRenderingContext2d,
677 image: &VideoFrame,
678 sx: f64,
679 sy: f64,
680 sw: f64,
681 sh: f64,
682 dx: f64,
683 dy: f64,
684 dw: f64,
685 dh: f64,
686 ) -> Result<(), JsValue>;
687 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = beginPath)]
688 #[doc = "The `beginPath()` method."]
689 #[doc = ""]
690 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/beginPath)"]
691 #[doc = ""]
692 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
693 pub fn begin_path(this: &OffscreenCanvasRenderingContext2d);
694 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)]
695 #[doc = "The `clip()` method."]
696 #[doc = ""]
697 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"]
698 #[doc = ""]
699 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
700 pub fn clip(this: &OffscreenCanvasRenderingContext2d);
701 #[cfg(feature = "CanvasWindingRule")]
702 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)]
703 #[doc = "The `clip()` method."]
704 #[doc = ""]
705 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"]
706 #[doc = ""]
707 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`*"]
708 pub fn clip_with_canvas_winding_rule(
709 this: &OffscreenCanvasRenderingContext2d,
710 winding: CanvasWindingRule,
711 );
712 #[cfg(feature = "Path2d")]
713 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)]
714 #[doc = "The `clip()` method."]
715 #[doc = ""]
716 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"]
717 #[doc = ""]
718 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
719 pub fn clip_with_path_2d(this: &OffscreenCanvasRenderingContext2d, path: &Path2d);
720 #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))]
721 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)]
722 #[doc = "The `clip()` method."]
723 #[doc = ""]
724 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"]
725 #[doc = ""]
726 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
727 pub fn clip_with_path_2d_and_winding(
728 this: &OffscreenCanvasRenderingContext2d,
729 path: &Path2d,
730 winding: CanvasWindingRule,
731 );
732 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)]
733 #[doc = "The `fill()` method."]
734 #[doc = ""]
735 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"]
736 #[doc = ""]
737 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
738 pub fn fill(this: &OffscreenCanvasRenderingContext2d);
739 #[cfg(feature = "CanvasWindingRule")]
740 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)]
741 #[doc = "The `fill()` method."]
742 #[doc = ""]
743 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"]
744 #[doc = ""]
745 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`*"]
746 pub fn fill_with_canvas_winding_rule(
747 this: &OffscreenCanvasRenderingContext2d,
748 winding: CanvasWindingRule,
749 );
750 #[cfg(feature = "Path2d")]
751 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)]
752 #[doc = "The `fill()` method."]
753 #[doc = ""]
754 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"]
755 #[doc = ""]
756 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
757 pub fn fill_with_path_2d(this: &OffscreenCanvasRenderingContext2d, path: &Path2d);
758 #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))]
759 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)]
760 #[doc = "The `fill()` method."]
761 #[doc = ""]
762 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"]
763 #[doc = ""]
764 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
765 pub fn fill_with_path_2d_and_winding(
766 this: &OffscreenCanvasRenderingContext2d,
767 path: &Path2d,
768 winding: CanvasWindingRule,
769 );
770 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)]
771 #[doc = "The `isPointInPath()` method."]
772 #[doc = ""]
773 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"]
774 #[doc = ""]
775 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
776 pub fn is_point_in_path_with_f64(
777 this: &OffscreenCanvasRenderingContext2d,
778 x: f64,
779 y: f64,
780 ) -> bool;
781 #[cfg(feature = "CanvasWindingRule")]
782 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)]
783 #[doc = "The `isPointInPath()` method."]
784 #[doc = ""]
785 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"]
786 #[doc = ""]
787 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`*"]
788 pub fn is_point_in_path_with_f64_and_canvas_winding_rule(
789 this: &OffscreenCanvasRenderingContext2d,
790 x: f64,
791 y: f64,
792 winding: CanvasWindingRule,
793 ) -> bool;
794 #[cfg(feature = "Path2d")]
795 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)]
796 #[doc = "The `isPointInPath()` method."]
797 #[doc = ""]
798 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"]
799 #[doc = ""]
800 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
801 pub fn is_point_in_path_with_path_2d_and_f64(
802 this: &OffscreenCanvasRenderingContext2d,
803 path: &Path2d,
804 x: f64,
805 y: f64,
806 ) -> bool;
807 #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))]
808 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)]
809 #[doc = "The `isPointInPath()` method."]
810 #[doc = ""]
811 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"]
812 #[doc = ""]
813 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
814 pub fn is_point_in_path_with_path_2d_and_f64_and_winding(
815 this: &OffscreenCanvasRenderingContext2d,
816 path: &Path2d,
817 x: f64,
818 y: f64,
819 winding: CanvasWindingRule,
820 ) -> bool;
821 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInStroke)]
822 #[doc = "The `isPointInStroke()` method."]
823 #[doc = ""]
824 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInStroke)"]
825 #[doc = ""]
826 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
827 pub fn is_point_in_stroke_with_x_and_y(
828 this: &OffscreenCanvasRenderingContext2d,
829 x: f64,
830 y: f64,
831 ) -> bool;
832 #[cfg(feature = "Path2d")]
833 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInStroke)]
834 #[doc = "The `isPointInStroke()` method."]
835 #[doc = ""]
836 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInStroke)"]
837 #[doc = ""]
838 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
839 pub fn is_point_in_stroke_with_path_and_x_and_y(
840 this: &OffscreenCanvasRenderingContext2d,
841 path: &Path2d,
842 x: f64,
843 y: f64,
844 ) -> bool;
845 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = stroke)]
846 #[doc = "The `stroke()` method."]
847 #[doc = ""]
848 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/stroke)"]
849 #[doc = ""]
850 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
851 pub fn stroke(this: &OffscreenCanvasRenderingContext2d);
852 #[cfg(feature = "Path2d")]
853 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = stroke)]
854 #[doc = "The `stroke()` method."]
855 #[doc = ""]
856 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/stroke)"]
857 #[doc = ""]
858 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
859 pub fn stroke_with_path(this: &OffscreenCanvasRenderingContext2d, path: &Path2d);
860 #[cfg(feature = "CanvasGradient")]
861 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createLinearGradient)]
862 #[doc = "The `createLinearGradient()` method."]
863 #[doc = ""]
864 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createLinearGradient)"]
865 #[doc = ""]
866 #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"]
867 pub fn create_linear_gradient(
868 this: &OffscreenCanvasRenderingContext2d,
869 x0: f64,
870 y0: f64,
871 x1: f64,
872 y1: f64,
873 ) -> CanvasGradient;
874 #[cfg(all(feature = "CanvasPattern", feature = "HtmlImageElement",))]
875 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)]
876 #[doc = "The `createPattern()` method."]
877 #[doc = ""]
878 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"]
879 #[doc = ""]
880 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"]
881 pub fn create_pattern_with_html_image_element(
882 this: &OffscreenCanvasRenderingContext2d,
883 image: &HtmlImageElement,
884 repetition: &str,
885 ) -> Result<Option<CanvasPattern>, JsValue>;
886 #[cfg(all(feature = "CanvasPattern", feature = "SvgImageElement",))]
887 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)]
888 #[doc = "The `createPattern()` method."]
889 #[doc = ""]
890 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"]
891 #[doc = ""]
892 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"]
893 pub fn create_pattern_with_svg_image_element(
894 this: &OffscreenCanvasRenderingContext2d,
895 image: &SvgImageElement,
896 repetition: &str,
897 ) -> Result<Option<CanvasPattern>, JsValue>;
898 #[cfg(all(feature = "CanvasPattern", feature = "HtmlCanvasElement",))]
899 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)]
900 #[doc = "The `createPattern()` method."]
901 #[doc = ""]
902 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"]
903 #[doc = ""]
904 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"]
905 pub fn create_pattern_with_html_canvas_element(
906 this: &OffscreenCanvasRenderingContext2d,
907 image: &HtmlCanvasElement,
908 repetition: &str,
909 ) -> Result<Option<CanvasPattern>, JsValue>;
910 #[cfg(all(feature = "CanvasPattern", feature = "HtmlVideoElement",))]
911 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)]
912 #[doc = "The `createPattern()` method."]
913 #[doc = ""]
914 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"]
915 #[doc = ""]
916 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"]
917 pub fn create_pattern_with_html_video_element(
918 this: &OffscreenCanvasRenderingContext2d,
919 image: &HtmlVideoElement,
920 repetition: &str,
921 ) -> Result<Option<CanvasPattern>, JsValue>;
922 #[cfg(all(feature = "CanvasPattern", feature = "ImageBitmap",))]
923 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)]
924 #[doc = "The `createPattern()` method."]
925 #[doc = ""]
926 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"]
927 #[doc = ""]
928 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"]
929 pub fn create_pattern_with_image_bitmap(
930 this: &OffscreenCanvasRenderingContext2d,
931 image: &ImageBitmap,
932 repetition: &str,
933 ) -> Result<Option<CanvasPattern>, JsValue>;
934 #[cfg(all(feature = "CanvasPattern", feature = "OffscreenCanvas",))]
935 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)]
936 #[doc = "The `createPattern()` method."]
937 #[doc = ""]
938 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"]
939 #[doc = ""]
940 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"]
941 pub fn create_pattern_with_offscreen_canvas(
942 this: &OffscreenCanvasRenderingContext2d,
943 image: &OffscreenCanvas,
944 repetition: &str,
945 ) -> Result<Option<CanvasPattern>, JsValue>;
946 #[cfg(web_sys_unstable_apis)]
947 #[cfg(all(feature = "CanvasPattern", feature = "VideoFrame",))]
948 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)]
949 #[doc = "The `createPattern()` method."]
950 #[doc = ""]
951 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"]
952 #[doc = ""]
953 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"]
954 #[doc = ""]
955 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
956 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
957 pub fn create_pattern_with_video_frame(
958 this: &OffscreenCanvasRenderingContext2d,
959 image: &VideoFrame,
960 repetition: &str,
961 ) -> Result<Option<CanvasPattern>, JsValue>;
962 #[cfg(feature = "CanvasGradient")]
963 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createRadialGradient)]
964 #[doc = "The `createRadialGradient()` method."]
965 #[doc = ""]
966 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createRadialGradient)"]
967 #[doc = ""]
968 #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"]
969 pub fn create_radial_gradient(
970 this: &OffscreenCanvasRenderingContext2d,
971 x0: f64,
972 y0: f64,
973 r0: f64,
974 x1: f64,
975 y1: f64,
976 r1: f64,
977 ) -> Result<CanvasGradient, JsValue>;
978 #[cfg(feature = "ImageData")]
979 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createImageData)]
980 #[doc = "The `createImageData()` method."]
981 #[doc = ""]
982 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createImageData)"]
983 #[doc = ""]
984 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
985 pub fn create_image_data_with_sw_and_sh(
986 this: &OffscreenCanvasRenderingContext2d,
987 sw: f64,
988 sh: f64,
989 ) -> Result<ImageData, JsValue>;
990 #[cfg(feature = "ImageData")]
991 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createImageData)]
992 #[doc = "The `createImageData()` method."]
993 #[doc = ""]
994 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createImageData)"]
995 #[doc = ""]
996 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
997 pub fn create_image_data_with_imagedata(
998 this: &OffscreenCanvasRenderingContext2d,
999 imagedata: &ImageData,
1000 ) -> Result<ImageData, JsValue>;
1001 #[cfg(not(web_sys_unstable_apis))]
1002 #[cfg(feature = "ImageData")]
1003 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getImageData)]
1004 #[doc = "The `getImageData()` method."]
1005 #[doc = ""]
1006 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getImageData)"]
1007 #[doc = ""]
1008 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1009 pub fn get_image_data(
1010 this: &OffscreenCanvasRenderingContext2d,
1011 sx: f64,
1012 sy: f64,
1013 sw: f64,
1014 sh: f64,
1015 ) -> Result<ImageData, JsValue>;
1016 #[cfg(web_sys_unstable_apis)]
1017 #[cfg(feature = "ImageData")]
1018 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getImageData)]
1019 #[doc = "The `getImageData()` method."]
1020 #[doc = ""]
1021 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getImageData)"]
1022 #[doc = ""]
1023 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1024 #[doc = ""]
1025 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
1026 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
1027 pub fn get_image_data(
1028 this: &OffscreenCanvasRenderingContext2d,
1029 sx: i32,
1030 sy: i32,
1031 sw: i32,
1032 sh: i32,
1033 ) -> Result<ImageData, JsValue>;
1034 #[cfg(not(web_sys_unstable_apis))]
1035 #[cfg(feature = "ImageData")]
1036 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)]
1037 #[doc = "The `putImageData()` method."]
1038 #[doc = ""]
1039 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"]
1040 #[doc = ""]
1041 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1042 pub fn put_image_data(
1043 this: &OffscreenCanvasRenderingContext2d,
1044 imagedata: &ImageData,
1045 dx: f64,
1046 dy: f64,
1047 ) -> Result<(), JsValue>;
1048 #[cfg(not(web_sys_unstable_apis))]
1049 #[cfg(feature = "ImageData")]
1050 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)]
1051 #[doc = "The `putImageData()` method."]
1052 #[doc = ""]
1053 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"]
1054 #[doc = ""]
1055 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1056 pub fn put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height(
1057 this: &OffscreenCanvasRenderingContext2d,
1058 imagedata: &ImageData,
1059 dx: f64,
1060 dy: f64,
1061 dirty_x: f64,
1062 dirty_y: f64,
1063 dirty_width: f64,
1064 dirty_height: f64,
1065 ) -> Result<(), JsValue>;
1066 #[cfg(web_sys_unstable_apis)]
1067 #[cfg(feature = "ImageData")]
1068 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)]
1069 #[doc = "The `putImageData()` method."]
1070 #[doc = ""]
1071 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"]
1072 #[doc = ""]
1073 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1074 #[doc = ""]
1075 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
1076 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
1077 pub fn put_image_data(
1078 this: &OffscreenCanvasRenderingContext2d,
1079 imagedata: &ImageData,
1080 dx: i32,
1081 dy: i32,
1082 ) -> Result<(), JsValue>;
1083 #[cfg(web_sys_unstable_apis)]
1084 #[cfg(feature = "ImageData")]
1085 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)]
1086 #[doc = "The `putImageData()` method."]
1087 #[doc = ""]
1088 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"]
1089 #[doc = ""]
1090 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1091 #[doc = ""]
1092 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
1093 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
1094 pub fn put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height(
1095 this: &OffscreenCanvasRenderingContext2d,
1096 imagedata: &ImageData,
1097 dx: i32,
1098 dy: i32,
1099 dirty_x: i32,
1100 dirty_y: i32,
1101 dirty_width: i32,
1102 dirty_height: i32,
1103 ) -> Result<(), JsValue>;
1104 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = arc)]
1105 #[doc = "The `arc()` method."]
1106 #[doc = ""]
1107 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/arc)"]
1108 #[doc = ""]
1109 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1110 pub fn arc(
1111 this: &OffscreenCanvasRenderingContext2d,
1112 x: f64,
1113 y: f64,
1114 radius: f64,
1115 start_angle: f64,
1116 end_angle: f64,
1117 ) -> Result<(), JsValue>;
1118 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = arc)]
1119 #[doc = "The `arc()` method."]
1120 #[doc = ""]
1121 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/arc)"]
1122 #[doc = ""]
1123 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1124 pub fn arc_with_anticlockwise(
1125 this: &OffscreenCanvasRenderingContext2d,
1126 x: f64,
1127 y: f64,
1128 radius: f64,
1129 start_angle: f64,
1130 end_angle: f64,
1131 anticlockwise: bool,
1132 ) -> Result<(), JsValue>;
1133 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = arcTo)]
1134 #[doc = "The `arcTo()` method."]
1135 #[doc = ""]
1136 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/arcTo)"]
1137 #[doc = ""]
1138 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1139 pub fn arc_to(
1140 this: &OffscreenCanvasRenderingContext2d,
1141 x1: f64,
1142 y1: f64,
1143 x2: f64,
1144 y2: f64,
1145 radius: f64,
1146 ) -> Result<(), JsValue>;
1147 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = bezierCurveTo)]
1148 #[doc = "The `bezierCurveTo()` method."]
1149 #[doc = ""]
1150 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/bezierCurveTo)"]
1151 #[doc = ""]
1152 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1153 pub fn bezier_curve_to(
1154 this: &OffscreenCanvasRenderingContext2d,
1155 cp1x: f64,
1156 cp1y: f64,
1157 cp2x: f64,
1158 cp2y: f64,
1159 x: f64,
1160 y: f64,
1161 );
1162 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = closePath)]
1163 #[doc = "The `closePath()` method."]
1164 #[doc = ""]
1165 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/closePath)"]
1166 #[doc = ""]
1167 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1168 pub fn close_path(this: &OffscreenCanvasRenderingContext2d);
1169 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = ellipse)]
1170 #[doc = "The `ellipse()` method."]
1171 #[doc = ""]
1172 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/ellipse)"]
1173 #[doc = ""]
1174 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1175 pub fn ellipse(
1176 this: &OffscreenCanvasRenderingContext2d,
1177 x: f64,
1178 y: f64,
1179 radius_x: f64,
1180 radius_y: f64,
1181 rotation: f64,
1182 start_angle: f64,
1183 end_angle: f64,
1184 ) -> Result<(), JsValue>;
1185 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = ellipse)]
1186 #[doc = "The `ellipse()` method."]
1187 #[doc = ""]
1188 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/ellipse)"]
1189 #[doc = ""]
1190 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1191 pub fn ellipse_with_anticlockwise(
1192 this: &OffscreenCanvasRenderingContext2d,
1193 x: f64,
1194 y: f64,
1195 radius_x: f64,
1196 radius_y: f64,
1197 rotation: f64,
1198 start_angle: f64,
1199 end_angle: f64,
1200 anticlockwise: bool,
1201 ) -> Result<(), JsValue>;
1202 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineTo)]
1203 #[doc = "The `lineTo()` method."]
1204 #[doc = ""]
1205 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineTo)"]
1206 #[doc = ""]
1207 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1208 pub fn line_to(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64);
1209 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = moveTo)]
1210 #[doc = "The `moveTo()` method."]
1211 #[doc = ""]
1212 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/moveTo)"]
1213 #[doc = ""]
1214 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1215 pub fn move_to(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64);
1216 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = quadraticCurveTo)]
1217 #[doc = "The `quadraticCurveTo()` method."]
1218 #[doc = ""]
1219 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/quadraticCurveTo)"]
1220 #[doc = ""]
1221 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1222 pub fn quadratic_curve_to(
1223 this: &OffscreenCanvasRenderingContext2d,
1224 cpx: f64,
1225 cpy: f64,
1226 x: f64,
1227 y: f64,
1228 );
1229 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = rect)]
1230 #[doc = "The `rect()` method."]
1231 #[doc = ""]
1232 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/rect)"]
1233 #[doc = ""]
1234 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1235 pub fn rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64);
1236 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1237 #[doc = "The `roundRect()` method."]
1238 #[doc = ""]
1239 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1240 #[doc = ""]
1241 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1242 pub fn round_rect(
1243 this: &OffscreenCanvasRenderingContext2d,
1244 x: f64,
1245 y: f64,
1246 w: f64,
1247 h: f64,
1248 ) -> Result<(), JsValue>;
1249 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1250 #[doc = "The `roundRect()` method."]
1251 #[doc = ""]
1252 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1253 #[doc = ""]
1254 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1255 pub fn round_rect_with_f64(
1256 this: &OffscreenCanvasRenderingContext2d,
1257 x: f64,
1258 y: f64,
1259 w: f64,
1260 h: f64,
1261 radii: f64,
1262 ) -> Result<(), JsValue>;
1263 #[cfg(feature = "DomPointInit")]
1264 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1265 #[doc = "The `roundRect()` method."]
1266 #[doc = ""]
1267 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1268 #[doc = ""]
1269 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `OffscreenCanvasRenderingContext2d`*"]
1270 pub fn round_rect_with_dom_point_init(
1271 this: &OffscreenCanvasRenderingContext2d,
1272 x: f64,
1273 y: f64,
1274 w: f64,
1275 h: f64,
1276 radii: &DomPointInit,
1277 ) -> Result<(), JsValue>;
1278 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1279 #[doc = "The `roundRect()` method."]
1280 #[doc = ""]
1281 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1282 #[doc = ""]
1283 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1284 pub fn round_rect_with_f64_sequence(
1285 this: &OffscreenCanvasRenderingContext2d,
1286 x: f64,
1287 y: f64,
1288 w: f64,
1289 h: f64,
1290 radii: &::wasm_bindgen::JsValue,
1291 ) -> Result<(), JsValue>;
1292 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1293 #[doc = "The `roundRect()` method."]
1294 #[doc = ""]
1295 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1296 #[doc = ""]
1297 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1298 pub fn round_rect_with_dom_point_init_sequence(
1299 this: &OffscreenCanvasRenderingContext2d,
1300 x: f64,
1301 y: f64,
1302 w: f64,
1303 h: f64,
1304 radii: &::wasm_bindgen::JsValue,
1305 ) -> Result<(), JsValue>;
1306 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getLineDash)]
1307 #[doc = "The `getLineDash()` method."]
1308 #[doc = ""]
1309 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getLineDash)"]
1310 #[doc = ""]
1311 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1312 pub fn get_line_dash(this: &OffscreenCanvasRenderingContext2d) -> ::js_sys::Array;
1313 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setLineDash)]
1314 #[doc = "The `setLineDash()` method."]
1315 #[doc = ""]
1316 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setLineDash)"]
1317 #[doc = ""]
1318 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1319 pub fn set_line_dash(
1320 this: &OffscreenCanvasRenderingContext2d,
1321 segments: &::wasm_bindgen::JsValue,
1322 ) -> Result<(), JsValue>;
1323 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clearRect)]
1324 #[doc = "The `clearRect()` method."]
1325 #[doc = ""]
1326 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clearRect)"]
1327 #[doc = ""]
1328 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1329 pub fn clear_rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64);
1330 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillRect)]
1331 #[doc = "The `fillRect()` method."]
1332 #[doc = ""]
1333 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillRect)"]
1334 #[doc = ""]
1335 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1336 pub fn fill_rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64);
1337 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeRect)]
1338 #[doc = "The `strokeRect()` method."]
1339 #[doc = ""]
1340 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeRect)"]
1341 #[doc = ""]
1342 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1343 pub fn stroke_rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64);
1344 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = reset)]
1345 #[doc = "The `reset()` method."]
1346 #[doc = ""]
1347 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/reset)"]
1348 #[doc = ""]
1349 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1350 pub fn reset(this: &OffscreenCanvasRenderingContext2d);
1351 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = restore)]
1352 #[doc = "The `restore()` method."]
1353 #[doc = ""]
1354 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/restore)"]
1355 #[doc = ""]
1356 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1357 pub fn restore(this: &OffscreenCanvasRenderingContext2d);
1358 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = save)]
1359 #[doc = "The `save()` method."]
1360 #[doc = ""]
1361 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/save)"]
1362 #[doc = ""]
1363 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1364 pub fn save(this: &OffscreenCanvasRenderingContext2d);
1365 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillText)]
1366 #[doc = "The `fillText()` method."]
1367 #[doc = ""]
1368 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillText)"]
1369 #[doc = ""]
1370 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1371 pub fn fill_text(
1372 this: &OffscreenCanvasRenderingContext2d,
1373 text: &str,
1374 x: f64,
1375 y: f64,
1376 ) -> Result<(), JsValue>;
1377 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillText)]
1378 #[doc = "The `fillText()` method."]
1379 #[doc = ""]
1380 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillText)"]
1381 #[doc = ""]
1382 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1383 pub fn fill_text_with_max_width(
1384 this: &OffscreenCanvasRenderingContext2d,
1385 text: &str,
1386 x: f64,
1387 y: f64,
1388 max_width: f64,
1389 ) -> Result<(), JsValue>;
1390 #[cfg(feature = "TextMetrics")]
1391 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = measureText)]
1392 #[doc = "The `measureText()` method."]
1393 #[doc = ""]
1394 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/measureText)"]
1395 #[doc = ""]
1396 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `TextMetrics`*"]
1397 pub fn measure_text(
1398 this: &OffscreenCanvasRenderingContext2d,
1399 text: &str,
1400 ) -> Result<TextMetrics, JsValue>;
1401 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeText)]
1402 #[doc = "The `strokeText()` method."]
1403 #[doc = ""]
1404 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeText)"]
1405 #[doc = ""]
1406 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1407 pub fn stroke_text(
1408 this: &OffscreenCanvasRenderingContext2d,
1409 text: &str,
1410 x: f64,
1411 y: f64,
1412 ) -> Result<(), JsValue>;
1413 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeText)]
1414 #[doc = "The `strokeText()` method."]
1415 #[doc = ""]
1416 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeText)"]
1417 #[doc = ""]
1418 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1419 pub fn stroke_text_with_max_width(
1420 this: &OffscreenCanvasRenderingContext2d,
1421 text: &str,
1422 x: f64,
1423 y: f64,
1424 max_width: f64,
1425 ) -> Result<(), JsValue>;
1426 #[cfg(feature = "DomMatrix")]
1427 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getTransform)]
1428 #[doc = "The `getTransform()` method."]
1429 #[doc = ""]
1430 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getTransform)"]
1431 #[doc = ""]
1432 #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `OffscreenCanvasRenderingContext2d`*"]
1433 pub fn get_transform(this: &OffscreenCanvasRenderingContext2d) -> Result<DomMatrix, JsValue>;
1434 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = resetTransform)]
1435 #[doc = "The `resetTransform()` method."]
1436 #[doc = ""]
1437 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/resetTransform)"]
1438 #[doc = ""]
1439 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1440 pub fn reset_transform(this: &OffscreenCanvasRenderingContext2d) -> Result<(), JsValue>;
1441 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = rotate)]
1442 #[doc = "The `rotate()` method."]
1443 #[doc = ""]
1444 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/rotate)"]
1445 #[doc = ""]
1446 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1447 pub fn rotate(this: &OffscreenCanvasRenderingContext2d, angle: f64) -> Result<(), JsValue>;
1448 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = scale)]
1449 #[doc = "The `scale()` method."]
1450 #[doc = ""]
1451 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/scale)"]
1452 #[doc = ""]
1453 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1454 pub fn scale(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue>;
1455 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)]
1456 #[doc = "The `setTransform()` method."]
1457 #[doc = ""]
1458 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"]
1459 #[doc = ""]
1460 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1461 pub fn set_transform(
1462 this: &OffscreenCanvasRenderingContext2d,
1463 a: f64,
1464 b: f64,
1465 c: f64,
1466 d: f64,
1467 e: f64,
1468 f: f64,
1469 ) -> Result<(), JsValue>;
1470 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)]
1471 #[doc = "The `setTransform()` method."]
1472 #[doc = ""]
1473 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"]
1474 #[doc = ""]
1475 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1476 pub fn set_transform_with_default_dom_matrix_2d_init(
1477 this: &OffscreenCanvasRenderingContext2d,
1478 ) -> Result<(), JsValue>;
1479 #[cfg(feature = "DomMatrix2dInit")]
1480 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)]
1481 #[doc = "The `setTransform()` method."]
1482 #[doc = ""]
1483 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"]
1484 #[doc = ""]
1485 #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`, `OffscreenCanvasRenderingContext2d`*"]
1486 pub fn set_transform_with_dom_matrix_2d_init(
1487 this: &OffscreenCanvasRenderingContext2d,
1488 transform: &DomMatrix2dInit,
1489 ) -> Result<(), JsValue>;
1490 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = transform)]
1491 #[doc = "The `transform()` method."]
1492 #[doc = ""]
1493 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/transform)"]
1494 #[doc = ""]
1495 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1496 pub fn transform(
1497 this: &OffscreenCanvasRenderingContext2d,
1498 a: f64,
1499 b: f64,
1500 c: f64,
1501 d: f64,
1502 e: f64,
1503 f: f64,
1504 ) -> Result<(), JsValue>;
1505 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = translate)]
1506 #[doc = "The `translate()` method."]
1507 #[doc = ""]
1508 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/translate)"]
1509 #[doc = ""]
1510 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1511 pub fn translate(
1512 this: &OffscreenCanvasRenderingContext2d,
1513 x: f64,
1514 y: f64,
1515 ) -> Result<(), JsValue>;
1516}