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 = "VideoFrame")]
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: `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"]
431 pub fn draw_image_with_video_frame(
432 this: &OffscreenCanvasRenderingContext2d,
433 image: &VideoFrame,
434 dx: f64,
435 dy: f64,
436 ) -> Result<(), JsValue>;
437 #[cfg(feature = "HtmlImageElement")]
438 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
439 #[doc = "The `drawImage()` method."]
440 #[doc = ""]
441 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
442 #[doc = ""]
443 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"]
444 pub fn draw_image_with_html_image_element_and_dw_and_dh(
445 this: &OffscreenCanvasRenderingContext2d,
446 image: &HtmlImageElement,
447 dx: f64,
448 dy: f64,
449 dw: f64,
450 dh: f64,
451 ) -> Result<(), JsValue>;
452 #[cfg(feature = "SvgImageElement")]
453 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
454 #[doc = "The `drawImage()` method."]
455 #[doc = ""]
456 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
457 #[doc = ""]
458 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"]
459 pub fn draw_image_with_svg_image_element_and_dw_and_dh(
460 this: &OffscreenCanvasRenderingContext2d,
461 image: &SvgImageElement,
462 dx: f64,
463 dy: f64,
464 dw: f64,
465 dh: f64,
466 ) -> Result<(), JsValue>;
467 #[cfg(feature = "HtmlCanvasElement")]
468 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
469 #[doc = "The `drawImage()` method."]
470 #[doc = ""]
471 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
472 #[doc = ""]
473 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"]
474 pub fn draw_image_with_html_canvas_element_and_dw_and_dh(
475 this: &OffscreenCanvasRenderingContext2d,
476 image: &HtmlCanvasElement,
477 dx: f64,
478 dy: f64,
479 dw: f64,
480 dh: f64,
481 ) -> Result<(), JsValue>;
482 #[cfg(feature = "HtmlVideoElement")]
483 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
484 #[doc = "The `drawImage()` method."]
485 #[doc = ""]
486 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
487 #[doc = ""]
488 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"]
489 pub fn draw_image_with_html_video_element_and_dw_and_dh(
490 this: &OffscreenCanvasRenderingContext2d,
491 image: &HtmlVideoElement,
492 dx: f64,
493 dy: f64,
494 dw: f64,
495 dh: f64,
496 ) -> Result<(), JsValue>;
497 #[cfg(feature = "ImageBitmap")]
498 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
499 #[doc = "The `drawImage()` method."]
500 #[doc = ""]
501 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
502 #[doc = ""]
503 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"]
504 pub fn draw_image_with_image_bitmap_and_dw_and_dh(
505 this: &OffscreenCanvasRenderingContext2d,
506 image: &ImageBitmap,
507 dx: f64,
508 dy: f64,
509 dw: f64,
510 dh: f64,
511 ) -> Result<(), JsValue>;
512 #[cfg(feature = "OffscreenCanvas")]
513 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
514 #[doc = "The `drawImage()` method."]
515 #[doc = ""]
516 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
517 #[doc = ""]
518 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"]
519 pub fn draw_image_with_offscreen_canvas_and_dw_and_dh(
520 this: &OffscreenCanvasRenderingContext2d,
521 image: &OffscreenCanvas,
522 dx: f64,
523 dy: f64,
524 dw: f64,
525 dh: f64,
526 ) -> Result<(), JsValue>;
527 #[cfg(feature = "VideoFrame")]
528 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
529 #[doc = "The `drawImage()` method."]
530 #[doc = ""]
531 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
532 #[doc = ""]
533 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"]
534 pub fn draw_image_with_video_frame_and_dw_and_dh(
535 this: &OffscreenCanvasRenderingContext2d,
536 image: &VideoFrame,
537 dx: f64,
538 dy: f64,
539 dw: f64,
540 dh: f64,
541 ) -> Result<(), JsValue>;
542 #[cfg(feature = "HtmlImageElement")]
543 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
544 #[doc = "The `drawImage()` method."]
545 #[doc = ""]
546 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
547 #[doc = ""]
548 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"]
549 pub fn draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
550 this: &OffscreenCanvasRenderingContext2d,
551 image: &HtmlImageElement,
552 sx: f64,
553 sy: f64,
554 sw: f64,
555 sh: f64,
556 dx: f64,
557 dy: f64,
558 dw: f64,
559 dh: f64,
560 ) -> Result<(), JsValue>;
561 #[cfg(feature = "SvgImageElement")]
562 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
563 #[doc = "The `drawImage()` method."]
564 #[doc = ""]
565 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
566 #[doc = ""]
567 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"]
568 pub fn draw_image_with_svg_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
569 this: &OffscreenCanvasRenderingContext2d,
570 image: &SvgImageElement,
571 sx: f64,
572 sy: f64,
573 sw: f64,
574 sh: f64,
575 dx: f64,
576 dy: f64,
577 dw: f64,
578 dh: f64,
579 ) -> Result<(), JsValue>;
580 #[cfg(feature = "HtmlCanvasElement")]
581 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
582 #[doc = "The `drawImage()` method."]
583 #[doc = ""]
584 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
585 #[doc = ""]
586 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"]
587 pub fn draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
588 this: &OffscreenCanvasRenderingContext2d,
589 image: &HtmlCanvasElement,
590 sx: f64,
591 sy: f64,
592 sw: f64,
593 sh: f64,
594 dx: f64,
595 dy: f64,
596 dw: f64,
597 dh: f64,
598 ) -> Result<(), JsValue>;
599 #[cfg(feature = "HtmlVideoElement")]
600 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
601 #[doc = "The `drawImage()` method."]
602 #[doc = ""]
603 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
604 #[doc = ""]
605 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"]
606 pub fn draw_image_with_html_video_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
607 this: &OffscreenCanvasRenderingContext2d,
608 image: &HtmlVideoElement,
609 sx: f64,
610 sy: f64,
611 sw: f64,
612 sh: f64,
613 dx: f64,
614 dy: f64,
615 dw: f64,
616 dh: f64,
617 ) -> Result<(), JsValue>;
618 #[cfg(feature = "ImageBitmap")]
619 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
620 #[doc = "The `drawImage()` method."]
621 #[doc = ""]
622 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
623 #[doc = ""]
624 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"]
625 pub fn draw_image_with_image_bitmap_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
626 this: &OffscreenCanvasRenderingContext2d,
627 image: &ImageBitmap,
628 sx: f64,
629 sy: f64,
630 sw: f64,
631 sh: f64,
632 dx: f64,
633 dy: f64,
634 dw: f64,
635 dh: f64,
636 ) -> Result<(), JsValue>;
637 #[cfg(feature = "OffscreenCanvas")]
638 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
639 #[doc = "The `drawImage()` method."]
640 #[doc = ""]
641 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
642 #[doc = ""]
643 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"]
644 pub fn draw_image_with_offscreen_canvas_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
645 this: &OffscreenCanvasRenderingContext2d,
646 image: &OffscreenCanvas,
647 sx: f64,
648 sy: f64,
649 sw: f64,
650 sh: f64,
651 dx: f64,
652 dy: f64,
653 dw: f64,
654 dh: f64,
655 ) -> Result<(), JsValue>;
656 #[cfg(feature = "VideoFrame")]
657 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)]
658 #[doc = "The `drawImage()` method."]
659 #[doc = ""]
660 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"]
661 #[doc = ""]
662 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"]
663 pub fn draw_image_with_video_frame_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh(
664 this: &OffscreenCanvasRenderingContext2d,
665 image: &VideoFrame,
666 sx: f64,
667 sy: f64,
668 sw: f64,
669 sh: f64,
670 dx: f64,
671 dy: f64,
672 dw: f64,
673 dh: f64,
674 ) -> Result<(), JsValue>;
675 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = beginPath)]
676 #[doc = "The `beginPath()` method."]
677 #[doc = ""]
678 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/beginPath)"]
679 #[doc = ""]
680 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
681 pub fn begin_path(this: &OffscreenCanvasRenderingContext2d);
682 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)]
683 #[doc = "The `clip()` method."]
684 #[doc = ""]
685 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"]
686 #[doc = ""]
687 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
688 pub fn clip(this: &OffscreenCanvasRenderingContext2d);
689 #[cfg(feature = "CanvasWindingRule")]
690 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)]
691 #[doc = "The `clip()` method."]
692 #[doc = ""]
693 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"]
694 #[doc = ""]
695 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`*"]
696 pub fn clip_with_canvas_winding_rule(
697 this: &OffscreenCanvasRenderingContext2d,
698 winding: CanvasWindingRule,
699 );
700 #[cfg(feature = "Path2d")]
701 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)]
702 #[doc = "The `clip()` method."]
703 #[doc = ""]
704 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"]
705 #[doc = ""]
706 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
707 pub fn clip_with_path_2d(this: &OffscreenCanvasRenderingContext2d, path: &Path2d);
708 #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))]
709 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)]
710 #[doc = "The `clip()` method."]
711 #[doc = ""]
712 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"]
713 #[doc = ""]
714 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
715 pub fn clip_with_path_2d_and_winding(
716 this: &OffscreenCanvasRenderingContext2d,
717 path: &Path2d,
718 winding: CanvasWindingRule,
719 );
720 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)]
721 #[doc = "The `fill()` method."]
722 #[doc = ""]
723 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"]
724 #[doc = ""]
725 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
726 pub fn fill(this: &OffscreenCanvasRenderingContext2d);
727 #[cfg(feature = "CanvasWindingRule")]
728 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)]
729 #[doc = "The `fill()` method."]
730 #[doc = ""]
731 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"]
732 #[doc = ""]
733 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`*"]
734 pub fn fill_with_canvas_winding_rule(
735 this: &OffscreenCanvasRenderingContext2d,
736 winding: CanvasWindingRule,
737 );
738 #[cfg(feature = "Path2d")]
739 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)]
740 #[doc = "The `fill()` method."]
741 #[doc = ""]
742 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"]
743 #[doc = ""]
744 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
745 pub fn fill_with_path_2d(this: &OffscreenCanvasRenderingContext2d, path: &Path2d);
746 #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))]
747 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)]
748 #[doc = "The `fill()` method."]
749 #[doc = ""]
750 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"]
751 #[doc = ""]
752 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
753 pub fn fill_with_path_2d_and_winding(
754 this: &OffscreenCanvasRenderingContext2d,
755 path: &Path2d,
756 winding: CanvasWindingRule,
757 );
758 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)]
759 #[doc = "The `isPointInPath()` method."]
760 #[doc = ""]
761 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"]
762 #[doc = ""]
763 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
764 pub fn is_point_in_path_with_f64(
765 this: &OffscreenCanvasRenderingContext2d,
766 x: f64,
767 y: f64,
768 ) -> bool;
769 #[cfg(feature = "CanvasWindingRule")]
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: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`*"]
776 pub fn is_point_in_path_with_f64_and_canvas_winding_rule(
777 this: &OffscreenCanvasRenderingContext2d,
778 x: f64,
779 y: f64,
780 winding: CanvasWindingRule,
781 ) -> bool;
782 #[cfg(feature = "Path2d")]
783 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)]
784 #[doc = "The `isPointInPath()` method."]
785 #[doc = ""]
786 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"]
787 #[doc = ""]
788 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
789 pub fn is_point_in_path_with_path_2d_and_f64(
790 this: &OffscreenCanvasRenderingContext2d,
791 path: &Path2d,
792 x: f64,
793 y: f64,
794 ) -> bool;
795 #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))]
796 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)]
797 #[doc = "The `isPointInPath()` method."]
798 #[doc = ""]
799 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"]
800 #[doc = ""]
801 #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
802 pub fn is_point_in_path_with_path_2d_and_f64_and_winding(
803 this: &OffscreenCanvasRenderingContext2d,
804 path: &Path2d,
805 x: f64,
806 y: f64,
807 winding: CanvasWindingRule,
808 ) -> bool;
809 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInStroke)]
810 #[doc = "The `isPointInStroke()` method."]
811 #[doc = ""]
812 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInStroke)"]
813 #[doc = ""]
814 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
815 pub fn is_point_in_stroke_with_x_and_y(
816 this: &OffscreenCanvasRenderingContext2d,
817 x: f64,
818 y: f64,
819 ) -> bool;
820 #[cfg(feature = "Path2d")]
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`, `Path2d`*"]
827 pub fn is_point_in_stroke_with_path_and_x_and_y(
828 this: &OffscreenCanvasRenderingContext2d,
829 path: &Path2d,
830 x: f64,
831 y: f64,
832 ) -> bool;
833 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = stroke)]
834 #[doc = "The `stroke()` method."]
835 #[doc = ""]
836 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/stroke)"]
837 #[doc = ""]
838 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
839 pub fn stroke(this: &OffscreenCanvasRenderingContext2d);
840 #[cfg(feature = "Path2d")]
841 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = stroke)]
842 #[doc = "The `stroke()` method."]
843 #[doc = ""]
844 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/stroke)"]
845 #[doc = ""]
846 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"]
847 pub fn stroke_with_path(this: &OffscreenCanvasRenderingContext2d, path: &Path2d);
848 #[cfg(feature = "CanvasGradient")]
849 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createLinearGradient)]
850 #[doc = "The `createLinearGradient()` method."]
851 #[doc = ""]
852 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createLinearGradient)"]
853 #[doc = ""]
854 #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"]
855 pub fn create_linear_gradient(
856 this: &OffscreenCanvasRenderingContext2d,
857 x0: f64,
858 y0: f64,
859 x1: f64,
860 y1: f64,
861 ) -> CanvasGradient;
862 #[cfg(all(feature = "CanvasPattern", feature = "HtmlImageElement",))]
863 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)]
864 #[doc = "The `createPattern()` method."]
865 #[doc = ""]
866 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"]
867 #[doc = ""]
868 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"]
869 pub fn create_pattern_with_html_image_element(
870 this: &OffscreenCanvasRenderingContext2d,
871 image: &HtmlImageElement,
872 repetition: &str,
873 ) -> Result<Option<CanvasPattern>, JsValue>;
874 #[cfg(all(feature = "CanvasPattern", feature = "SvgImageElement",))]
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`, `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"]
881 pub fn create_pattern_with_svg_image_element(
882 this: &OffscreenCanvasRenderingContext2d,
883 image: &SvgImageElement,
884 repetition: &str,
885 ) -> Result<Option<CanvasPattern>, JsValue>;
886 #[cfg(all(feature = "CanvasPattern", feature = "HtmlCanvasElement",))]
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`, `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"]
893 pub fn create_pattern_with_html_canvas_element(
894 this: &OffscreenCanvasRenderingContext2d,
895 image: &HtmlCanvasElement,
896 repetition: &str,
897 ) -> Result<Option<CanvasPattern>, JsValue>;
898 #[cfg(all(feature = "CanvasPattern", feature = "HtmlVideoElement",))]
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`, `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"]
905 pub fn create_pattern_with_html_video_element(
906 this: &OffscreenCanvasRenderingContext2d,
907 image: &HtmlVideoElement,
908 repetition: &str,
909 ) -> Result<Option<CanvasPattern>, JsValue>;
910 #[cfg(all(feature = "CanvasPattern", feature = "ImageBitmap",))]
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`, `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"]
917 pub fn create_pattern_with_image_bitmap(
918 this: &OffscreenCanvasRenderingContext2d,
919 image: &ImageBitmap,
920 repetition: &str,
921 ) -> Result<Option<CanvasPattern>, JsValue>;
922 #[cfg(all(feature = "CanvasPattern", feature = "OffscreenCanvas",))]
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`, `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"]
929 pub fn create_pattern_with_offscreen_canvas(
930 this: &OffscreenCanvasRenderingContext2d,
931 image: &OffscreenCanvas,
932 repetition: &str,
933 ) -> Result<Option<CanvasPattern>, JsValue>;
934 #[cfg(all(feature = "CanvasPattern", feature = "VideoFrame",))]
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`, `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"]
941 pub fn create_pattern_with_video_frame(
942 this: &OffscreenCanvasRenderingContext2d,
943 image: &VideoFrame,
944 repetition: &str,
945 ) -> Result<Option<CanvasPattern>, JsValue>;
946 #[cfg(feature = "CanvasGradient")]
947 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createRadialGradient)]
948 #[doc = "The `createRadialGradient()` method."]
949 #[doc = ""]
950 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createRadialGradient)"]
951 #[doc = ""]
952 #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"]
953 pub fn create_radial_gradient(
954 this: &OffscreenCanvasRenderingContext2d,
955 x0: f64,
956 y0: f64,
957 r0: f64,
958 x1: f64,
959 y1: f64,
960 r1: f64,
961 ) -> Result<CanvasGradient, JsValue>;
962 #[cfg(feature = "ImageData")]
963 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createImageData)]
964 #[doc = "The `createImageData()` method."]
965 #[doc = ""]
966 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createImageData)"]
967 #[doc = ""]
968 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
969 pub fn create_image_data_with_sw_and_sh(
970 this: &OffscreenCanvasRenderingContext2d,
971 sw: f64,
972 sh: f64,
973 ) -> Result<ImageData, JsValue>;
974 #[cfg(feature = "ImageData")]
975 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createImageData)]
976 #[doc = "The `createImageData()` method."]
977 #[doc = ""]
978 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createImageData)"]
979 #[doc = ""]
980 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
981 pub fn create_image_data_with_imagedata(
982 this: &OffscreenCanvasRenderingContext2d,
983 imagedata: &ImageData,
984 ) -> Result<ImageData, JsValue>;
985 #[cfg(not(web_sys_unstable_apis))]
986 #[cfg(feature = "ImageData")]
987 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getImageData)]
988 #[doc = "The `getImageData()` method."]
989 #[doc = ""]
990 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getImageData)"]
991 #[doc = ""]
992 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
993 pub fn get_image_data(
994 this: &OffscreenCanvasRenderingContext2d,
995 sx: f64,
996 sy: f64,
997 sw: f64,
998 sh: f64,
999 ) -> Result<ImageData, JsValue>;
1000 #[cfg(web_sys_unstable_apis)]
1001 #[cfg(feature = "ImageData")]
1002 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getImageData)]
1003 #[doc = "The `getImageData()` method."]
1004 #[doc = ""]
1005 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getImageData)"]
1006 #[doc = ""]
1007 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1008 #[doc = ""]
1009 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
1010 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
1011 pub fn get_image_data(
1012 this: &OffscreenCanvasRenderingContext2d,
1013 sx: i32,
1014 sy: i32,
1015 sw: i32,
1016 sh: i32,
1017 ) -> Result<ImageData, JsValue>;
1018 #[cfg(not(web_sys_unstable_apis))]
1019 #[cfg(feature = "ImageData")]
1020 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)]
1021 #[doc = "The `putImageData()` method."]
1022 #[doc = ""]
1023 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"]
1024 #[doc = ""]
1025 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1026 pub fn put_image_data(
1027 this: &OffscreenCanvasRenderingContext2d,
1028 imagedata: &ImageData,
1029 dx: f64,
1030 dy: f64,
1031 ) -> Result<(), JsValue>;
1032 #[cfg(not(web_sys_unstable_apis))]
1033 #[cfg(feature = "ImageData")]
1034 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)]
1035 #[doc = "The `putImageData()` method."]
1036 #[doc = ""]
1037 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"]
1038 #[doc = ""]
1039 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1040 pub fn put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height(
1041 this: &OffscreenCanvasRenderingContext2d,
1042 imagedata: &ImageData,
1043 dx: f64,
1044 dy: f64,
1045 dirty_x: f64,
1046 dirty_y: f64,
1047 dirty_width: f64,
1048 dirty_height: f64,
1049 ) -> Result<(), JsValue>;
1050 #[cfg(web_sys_unstable_apis)]
1051 #[cfg(feature = "ImageData")]
1052 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)]
1053 #[doc = "The `putImageData()` method."]
1054 #[doc = ""]
1055 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"]
1056 #[doc = ""]
1057 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1058 #[doc = ""]
1059 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
1060 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
1061 pub fn put_image_data(
1062 this: &OffscreenCanvasRenderingContext2d,
1063 imagedata: &ImageData,
1064 dx: i32,
1065 dy: i32,
1066 ) -> Result<(), JsValue>;
1067 #[cfg(web_sys_unstable_apis)]
1068 #[cfg(feature = "ImageData")]
1069 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)]
1070 #[doc = "The `putImageData()` method."]
1071 #[doc = ""]
1072 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"]
1073 #[doc = ""]
1074 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"]
1075 #[doc = ""]
1076 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
1077 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
1078 pub fn put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height(
1079 this: &OffscreenCanvasRenderingContext2d,
1080 imagedata: &ImageData,
1081 dx: i32,
1082 dy: i32,
1083 dirty_x: i32,
1084 dirty_y: i32,
1085 dirty_width: i32,
1086 dirty_height: i32,
1087 ) -> Result<(), JsValue>;
1088 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = arc)]
1089 #[doc = "The `arc()` method."]
1090 #[doc = ""]
1091 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/arc)"]
1092 #[doc = ""]
1093 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1094 pub fn arc(
1095 this: &OffscreenCanvasRenderingContext2d,
1096 x: f64,
1097 y: f64,
1098 radius: f64,
1099 start_angle: f64,
1100 end_angle: f64,
1101 ) -> Result<(), JsValue>;
1102 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = arc)]
1103 #[doc = "The `arc()` method."]
1104 #[doc = ""]
1105 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/arc)"]
1106 #[doc = ""]
1107 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1108 pub fn arc_with_anticlockwise(
1109 this: &OffscreenCanvasRenderingContext2d,
1110 x: f64,
1111 y: f64,
1112 radius: f64,
1113 start_angle: f64,
1114 end_angle: f64,
1115 anticlockwise: bool,
1116 ) -> Result<(), JsValue>;
1117 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = arcTo)]
1118 #[doc = "The `arcTo()` method."]
1119 #[doc = ""]
1120 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/arcTo)"]
1121 #[doc = ""]
1122 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1123 pub fn arc_to(
1124 this: &OffscreenCanvasRenderingContext2d,
1125 x1: f64,
1126 y1: f64,
1127 x2: f64,
1128 y2: f64,
1129 radius: f64,
1130 ) -> Result<(), JsValue>;
1131 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = bezierCurveTo)]
1132 #[doc = "The `bezierCurveTo()` method."]
1133 #[doc = ""]
1134 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/bezierCurveTo)"]
1135 #[doc = ""]
1136 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1137 pub fn bezier_curve_to(
1138 this: &OffscreenCanvasRenderingContext2d,
1139 cp1x: f64,
1140 cp1y: f64,
1141 cp2x: f64,
1142 cp2y: f64,
1143 x: f64,
1144 y: f64,
1145 );
1146 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = closePath)]
1147 #[doc = "The `closePath()` method."]
1148 #[doc = ""]
1149 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/closePath)"]
1150 #[doc = ""]
1151 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1152 pub fn close_path(this: &OffscreenCanvasRenderingContext2d);
1153 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = ellipse)]
1154 #[doc = "The `ellipse()` method."]
1155 #[doc = ""]
1156 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/ellipse)"]
1157 #[doc = ""]
1158 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1159 pub fn ellipse(
1160 this: &OffscreenCanvasRenderingContext2d,
1161 x: f64,
1162 y: f64,
1163 radius_x: f64,
1164 radius_y: f64,
1165 rotation: f64,
1166 start_angle: f64,
1167 end_angle: f64,
1168 ) -> Result<(), JsValue>;
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_with_anticlockwise(
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 anticlockwise: bool,
1185 ) -> Result<(), JsValue>;
1186 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineTo)]
1187 #[doc = "The `lineTo()` method."]
1188 #[doc = ""]
1189 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineTo)"]
1190 #[doc = ""]
1191 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1192 pub fn line_to(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64);
1193 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = moveTo)]
1194 #[doc = "The `moveTo()` method."]
1195 #[doc = ""]
1196 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/moveTo)"]
1197 #[doc = ""]
1198 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1199 pub fn move_to(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64);
1200 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = quadraticCurveTo)]
1201 #[doc = "The `quadraticCurveTo()` method."]
1202 #[doc = ""]
1203 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/quadraticCurveTo)"]
1204 #[doc = ""]
1205 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1206 pub fn quadratic_curve_to(
1207 this: &OffscreenCanvasRenderingContext2d,
1208 cpx: f64,
1209 cpy: f64,
1210 x: f64,
1211 y: f64,
1212 );
1213 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = rect)]
1214 #[doc = "The `rect()` method."]
1215 #[doc = ""]
1216 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/rect)"]
1217 #[doc = ""]
1218 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1219 pub fn rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64);
1220 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1221 #[doc = "The `roundRect()` method."]
1222 #[doc = ""]
1223 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1224 #[doc = ""]
1225 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1226 pub fn round_rect(
1227 this: &OffscreenCanvasRenderingContext2d,
1228 x: f64,
1229 y: f64,
1230 w: f64,
1231 h: f64,
1232 ) -> Result<(), JsValue>;
1233 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1234 #[doc = "The `roundRect()` method."]
1235 #[doc = ""]
1236 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1237 #[doc = ""]
1238 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1239 pub fn round_rect_with_f64(
1240 this: &OffscreenCanvasRenderingContext2d,
1241 x: f64,
1242 y: f64,
1243 w: f64,
1244 h: f64,
1245 radii: f64,
1246 ) -> Result<(), JsValue>;
1247 #[cfg(feature = "DomPointInit")]
1248 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1249 #[doc = "The `roundRect()` method."]
1250 #[doc = ""]
1251 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1252 #[doc = ""]
1253 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `OffscreenCanvasRenderingContext2d`*"]
1254 pub fn round_rect_with_dom_point_init(
1255 this: &OffscreenCanvasRenderingContext2d,
1256 x: f64,
1257 y: f64,
1258 w: f64,
1259 h: f64,
1260 radii: &DomPointInit,
1261 ) -> Result<(), JsValue>;
1262 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1263 #[doc = "The `roundRect()` method."]
1264 #[doc = ""]
1265 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1266 #[doc = ""]
1267 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1268 pub fn round_rect_with_f64_sequence(
1269 this: &OffscreenCanvasRenderingContext2d,
1270 x: f64,
1271 y: f64,
1272 w: f64,
1273 h: f64,
1274 radii: &::wasm_bindgen::JsValue,
1275 ) -> Result<(), JsValue>;
1276 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)]
1277 #[doc = "The `roundRect()` method."]
1278 #[doc = ""]
1279 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"]
1280 #[doc = ""]
1281 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1282 pub fn round_rect_with_dom_point_init_sequence(
1283 this: &OffscreenCanvasRenderingContext2d,
1284 x: f64,
1285 y: f64,
1286 w: f64,
1287 h: f64,
1288 radii: &::wasm_bindgen::JsValue,
1289 ) -> Result<(), JsValue>;
1290 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getLineDash)]
1291 #[doc = "The `getLineDash()` method."]
1292 #[doc = ""]
1293 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getLineDash)"]
1294 #[doc = ""]
1295 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1296 pub fn get_line_dash(this: &OffscreenCanvasRenderingContext2d) -> ::js_sys::Array;
1297 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setLineDash)]
1298 #[doc = "The `setLineDash()` method."]
1299 #[doc = ""]
1300 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setLineDash)"]
1301 #[doc = ""]
1302 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1303 pub fn set_line_dash(
1304 this: &OffscreenCanvasRenderingContext2d,
1305 segments: &::wasm_bindgen::JsValue,
1306 ) -> Result<(), JsValue>;
1307 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clearRect)]
1308 #[doc = "The `clearRect()` method."]
1309 #[doc = ""]
1310 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clearRect)"]
1311 #[doc = ""]
1312 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1313 pub fn clear_rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64);
1314 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillRect)]
1315 #[doc = "The `fillRect()` method."]
1316 #[doc = ""]
1317 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillRect)"]
1318 #[doc = ""]
1319 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1320 pub fn fill_rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64);
1321 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeRect)]
1322 #[doc = "The `strokeRect()` method."]
1323 #[doc = ""]
1324 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeRect)"]
1325 #[doc = ""]
1326 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1327 pub fn stroke_rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64);
1328 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = reset)]
1329 #[doc = "The `reset()` method."]
1330 #[doc = ""]
1331 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/reset)"]
1332 #[doc = ""]
1333 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1334 pub fn reset(this: &OffscreenCanvasRenderingContext2d);
1335 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = restore)]
1336 #[doc = "The `restore()` method."]
1337 #[doc = ""]
1338 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/restore)"]
1339 #[doc = ""]
1340 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1341 pub fn restore(this: &OffscreenCanvasRenderingContext2d);
1342 # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = save)]
1343 #[doc = "The `save()` method."]
1344 #[doc = ""]
1345 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/save)"]
1346 #[doc = ""]
1347 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1348 pub fn save(this: &OffscreenCanvasRenderingContext2d);
1349 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillText)]
1350 #[doc = "The `fillText()` method."]
1351 #[doc = ""]
1352 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillText)"]
1353 #[doc = ""]
1354 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1355 pub fn fill_text(
1356 this: &OffscreenCanvasRenderingContext2d,
1357 text: &str,
1358 x: f64,
1359 y: f64,
1360 ) -> Result<(), JsValue>;
1361 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillText)]
1362 #[doc = "The `fillText()` method."]
1363 #[doc = ""]
1364 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillText)"]
1365 #[doc = ""]
1366 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1367 pub fn fill_text_with_max_width(
1368 this: &OffscreenCanvasRenderingContext2d,
1369 text: &str,
1370 x: f64,
1371 y: f64,
1372 max_width: f64,
1373 ) -> Result<(), JsValue>;
1374 #[cfg(feature = "TextMetrics")]
1375 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = measureText)]
1376 #[doc = "The `measureText()` method."]
1377 #[doc = ""]
1378 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/measureText)"]
1379 #[doc = ""]
1380 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `TextMetrics`*"]
1381 pub fn measure_text(
1382 this: &OffscreenCanvasRenderingContext2d,
1383 text: &str,
1384 ) -> Result<TextMetrics, JsValue>;
1385 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeText)]
1386 #[doc = "The `strokeText()` method."]
1387 #[doc = ""]
1388 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeText)"]
1389 #[doc = ""]
1390 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1391 pub fn stroke_text(
1392 this: &OffscreenCanvasRenderingContext2d,
1393 text: &str,
1394 x: f64,
1395 y: f64,
1396 ) -> Result<(), JsValue>;
1397 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeText)]
1398 #[doc = "The `strokeText()` method."]
1399 #[doc = ""]
1400 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeText)"]
1401 #[doc = ""]
1402 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1403 pub fn stroke_text_with_max_width(
1404 this: &OffscreenCanvasRenderingContext2d,
1405 text: &str,
1406 x: f64,
1407 y: f64,
1408 max_width: f64,
1409 ) -> Result<(), JsValue>;
1410 #[cfg(feature = "DomMatrix")]
1411 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getTransform)]
1412 #[doc = "The `getTransform()` method."]
1413 #[doc = ""]
1414 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getTransform)"]
1415 #[doc = ""]
1416 #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `OffscreenCanvasRenderingContext2d`*"]
1417 pub fn get_transform(this: &OffscreenCanvasRenderingContext2d) -> Result<DomMatrix, JsValue>;
1418 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = resetTransform)]
1419 #[doc = "The `resetTransform()` method."]
1420 #[doc = ""]
1421 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/resetTransform)"]
1422 #[doc = ""]
1423 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1424 pub fn reset_transform(this: &OffscreenCanvasRenderingContext2d) -> Result<(), JsValue>;
1425 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = rotate)]
1426 #[doc = "The `rotate()` method."]
1427 #[doc = ""]
1428 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/rotate)"]
1429 #[doc = ""]
1430 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1431 pub fn rotate(this: &OffscreenCanvasRenderingContext2d, angle: f64) -> Result<(), JsValue>;
1432 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = scale)]
1433 #[doc = "The `scale()` method."]
1434 #[doc = ""]
1435 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/scale)"]
1436 #[doc = ""]
1437 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1438 pub fn scale(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue>;
1439 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)]
1440 #[doc = "The `setTransform()` method."]
1441 #[doc = ""]
1442 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"]
1443 #[doc = ""]
1444 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1445 pub fn set_transform(
1446 this: &OffscreenCanvasRenderingContext2d,
1447 a: f64,
1448 b: f64,
1449 c: f64,
1450 d: f64,
1451 e: f64,
1452 f: f64,
1453 ) -> Result<(), JsValue>;
1454 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)]
1455 #[doc = "The `setTransform()` method."]
1456 #[doc = ""]
1457 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"]
1458 #[doc = ""]
1459 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1460 pub fn set_transform_with_default_dom_matrix_2d_init(
1461 this: &OffscreenCanvasRenderingContext2d,
1462 ) -> Result<(), JsValue>;
1463 #[cfg(feature = "DomMatrix2dInit")]
1464 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)]
1465 #[doc = "The `setTransform()` method."]
1466 #[doc = ""]
1467 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"]
1468 #[doc = ""]
1469 #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`, `OffscreenCanvasRenderingContext2d`*"]
1470 pub fn set_transform_with_dom_matrix_2d_init(
1471 this: &OffscreenCanvasRenderingContext2d,
1472 transform: &DomMatrix2dInit,
1473 ) -> Result<(), JsValue>;
1474 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = transform)]
1475 #[doc = "The `transform()` method."]
1476 #[doc = ""]
1477 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/transform)"]
1478 #[doc = ""]
1479 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1480 pub fn transform(
1481 this: &OffscreenCanvasRenderingContext2d,
1482 a: f64,
1483 b: f64,
1484 c: f64,
1485 d: f64,
1486 e: f64,
1487 f: f64,
1488 ) -> Result<(), JsValue>;
1489 # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = translate)]
1490 #[doc = "The `translate()` method."]
1491 #[doc = ""]
1492 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/translate)"]
1493 #[doc = ""]
1494 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
1495 pub fn translate(
1496 this: &OffscreenCanvasRenderingContext2d,
1497 x: f64,
1498 y: f64,
1499 ) -> Result<(), JsValue>;
1500}