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 = DOMMatrixInit)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `DomMatrixInit` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
12 pub type DomMatrixInit;
13 #[doc = "Get the `a` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
16 #[wasm_bindgen(method, getter = "a")]
17 pub fn get_a(this: &DomMatrixInit) -> Option<f64>;
18 #[doc = "Change the `a` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
21 #[wasm_bindgen(method, setter = "a")]
22 pub fn set_a(this: &DomMatrixInit, val: f64);
23 #[doc = "Get the `b` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
26 #[wasm_bindgen(method, getter = "b")]
27 pub fn get_b(this: &DomMatrixInit) -> Option<f64>;
28 #[doc = "Change the `b` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
31 #[wasm_bindgen(method, setter = "b")]
32 pub fn set_b(this: &DomMatrixInit, val: f64);
33 #[doc = "Get the `c` field of this object."]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
36 #[wasm_bindgen(method, getter = "c")]
37 pub fn get_c(this: &DomMatrixInit) -> Option<f64>;
38 #[doc = "Change the `c` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
41 #[wasm_bindgen(method, setter = "c")]
42 pub fn set_c(this: &DomMatrixInit, val: f64);
43 #[doc = "Get the `d` field of this object."]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
46 #[wasm_bindgen(method, getter = "d")]
47 pub fn get_d(this: &DomMatrixInit) -> Option<f64>;
48 #[doc = "Change the `d` field of this object."]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
51 #[wasm_bindgen(method, setter = "d")]
52 pub fn set_d(this: &DomMatrixInit, val: f64);
53 #[doc = "Get the `e` field of this object."]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
56 #[wasm_bindgen(method, getter = "e")]
57 pub fn get_e(this: &DomMatrixInit) -> Option<f64>;
58 #[doc = "Change the `e` field of this object."]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
61 #[wasm_bindgen(method, setter = "e")]
62 pub fn set_e(this: &DomMatrixInit, val: f64);
63 #[doc = "Get the `f` field of this object."]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
66 #[wasm_bindgen(method, getter = "f")]
67 pub fn get_f(this: &DomMatrixInit) -> Option<f64>;
68 #[doc = "Change the `f` field of this object."]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
71 #[wasm_bindgen(method, setter = "f")]
72 pub fn set_f(this: &DomMatrixInit, val: f64);
73 #[doc = "Get the `m11` field of this object."]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
76 #[wasm_bindgen(method, getter = "m11")]
77 pub fn get_m11(this: &DomMatrixInit) -> Option<f64>;
78 #[doc = "Change the `m11` field of this object."]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
81 #[wasm_bindgen(method, setter = "m11")]
82 pub fn set_m11(this: &DomMatrixInit, val: f64);
83 #[doc = "Get the `m12` field of this object."]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
86 #[wasm_bindgen(method, getter = "m12")]
87 pub fn get_m12(this: &DomMatrixInit) -> Option<f64>;
88 #[doc = "Change the `m12` field of this object."]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
91 #[wasm_bindgen(method, setter = "m12")]
92 pub fn set_m12(this: &DomMatrixInit, val: f64);
93 #[doc = "Get the `m21` field of this object."]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
96 #[wasm_bindgen(method, getter = "m21")]
97 pub fn get_m21(this: &DomMatrixInit) -> Option<f64>;
98 #[doc = "Change the `m21` field of this object."]
99 #[doc = ""]
100 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
101 #[wasm_bindgen(method, setter = "m21")]
102 pub fn set_m21(this: &DomMatrixInit, val: f64);
103 #[doc = "Get the `m22` field of this object."]
104 #[doc = ""]
105 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
106 #[wasm_bindgen(method, getter = "m22")]
107 pub fn get_m22(this: &DomMatrixInit) -> Option<f64>;
108 #[doc = "Change the `m22` field of this object."]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
111 #[wasm_bindgen(method, setter = "m22")]
112 pub fn set_m22(this: &DomMatrixInit, val: f64);
113 #[doc = "Get the `m41` field of this object."]
114 #[doc = ""]
115 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
116 #[wasm_bindgen(method, getter = "m41")]
117 pub fn get_m41(this: &DomMatrixInit) -> Option<f64>;
118 #[doc = "Change the `m41` field of this object."]
119 #[doc = ""]
120 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
121 #[wasm_bindgen(method, setter = "m41")]
122 pub fn set_m41(this: &DomMatrixInit, val: f64);
123 #[doc = "Get the `m42` field of this object."]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
126 #[wasm_bindgen(method, getter = "m42")]
127 pub fn get_m42(this: &DomMatrixInit) -> Option<f64>;
128 #[doc = "Change the `m42` field of this object."]
129 #[doc = ""]
130 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
131 #[wasm_bindgen(method, setter = "m42")]
132 pub fn set_m42(this: &DomMatrixInit, val: f64);
133 #[doc = "Get the `is2D` field of this object."]
134 #[doc = ""]
135 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
136 #[wasm_bindgen(method, getter = "is2D")]
137 pub fn get_is_2d(this: &DomMatrixInit) -> Option<bool>;
138 #[doc = "Change the `is2D` field of this object."]
139 #[doc = ""]
140 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
141 #[wasm_bindgen(method, setter = "is2D")]
142 pub fn set_is_2d(this: &DomMatrixInit, val: bool);
143 #[doc = "Get the `m13` field of this object."]
144 #[doc = ""]
145 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
146 #[wasm_bindgen(method, getter = "m13")]
147 pub fn get_m13(this: &DomMatrixInit) -> Option<f64>;
148 #[doc = "Change the `m13` field of this object."]
149 #[doc = ""]
150 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
151 #[wasm_bindgen(method, setter = "m13")]
152 pub fn set_m13(this: &DomMatrixInit, val: f64);
153 #[doc = "Get the `m14` field of this object."]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
156 #[wasm_bindgen(method, getter = "m14")]
157 pub fn get_m14(this: &DomMatrixInit) -> Option<f64>;
158 #[doc = "Change the `m14` field of this object."]
159 #[doc = ""]
160 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
161 #[wasm_bindgen(method, setter = "m14")]
162 pub fn set_m14(this: &DomMatrixInit, val: f64);
163 #[doc = "Get the `m23` field of this object."]
164 #[doc = ""]
165 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
166 #[wasm_bindgen(method, getter = "m23")]
167 pub fn get_m23(this: &DomMatrixInit) -> Option<f64>;
168 #[doc = "Change the `m23` field of this object."]
169 #[doc = ""]
170 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
171 #[wasm_bindgen(method, setter = "m23")]
172 pub fn set_m23(this: &DomMatrixInit, val: f64);
173 #[doc = "Get the `m24` field of this object."]
174 #[doc = ""]
175 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
176 #[wasm_bindgen(method, getter = "m24")]
177 pub fn get_m24(this: &DomMatrixInit) -> Option<f64>;
178 #[doc = "Change the `m24` field of this object."]
179 #[doc = ""]
180 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
181 #[wasm_bindgen(method, setter = "m24")]
182 pub fn set_m24(this: &DomMatrixInit, val: f64);
183 #[doc = "Get the `m31` field of this object."]
184 #[doc = ""]
185 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
186 #[wasm_bindgen(method, getter = "m31")]
187 pub fn get_m31(this: &DomMatrixInit) -> Option<f64>;
188 #[doc = "Change the `m31` field of this object."]
189 #[doc = ""]
190 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
191 #[wasm_bindgen(method, setter = "m31")]
192 pub fn set_m31(this: &DomMatrixInit, val: f64);
193 #[doc = "Get the `m32` field of this object."]
194 #[doc = ""]
195 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
196 #[wasm_bindgen(method, getter = "m32")]
197 pub fn get_m32(this: &DomMatrixInit) -> Option<f64>;
198 #[doc = "Change the `m32` field of this object."]
199 #[doc = ""]
200 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
201 #[wasm_bindgen(method, setter = "m32")]
202 pub fn set_m32(this: &DomMatrixInit, val: f64);
203 #[doc = "Get the `m33` field of this object."]
204 #[doc = ""]
205 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
206 #[wasm_bindgen(method, getter = "m33")]
207 pub fn get_m33(this: &DomMatrixInit) -> Option<f64>;
208 #[doc = "Change the `m33` field of this object."]
209 #[doc = ""]
210 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
211 #[wasm_bindgen(method, setter = "m33")]
212 pub fn set_m33(this: &DomMatrixInit, val: f64);
213 #[doc = "Get the `m34` field of this object."]
214 #[doc = ""]
215 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
216 #[wasm_bindgen(method, getter = "m34")]
217 pub fn get_m34(this: &DomMatrixInit) -> Option<f64>;
218 #[doc = "Change the `m34` field of this object."]
219 #[doc = ""]
220 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
221 #[wasm_bindgen(method, setter = "m34")]
222 pub fn set_m34(this: &DomMatrixInit, val: f64);
223 #[doc = "Get the `m43` field of this object."]
224 #[doc = ""]
225 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
226 #[wasm_bindgen(method, getter = "m43")]
227 pub fn get_m43(this: &DomMatrixInit) -> Option<f64>;
228 #[doc = "Change the `m43` field of this object."]
229 #[doc = ""]
230 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
231 #[wasm_bindgen(method, setter = "m43")]
232 pub fn set_m43(this: &DomMatrixInit, val: f64);
233 #[doc = "Get the `m44` field of this object."]
234 #[doc = ""]
235 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
236 #[wasm_bindgen(method, getter = "m44")]
237 pub fn get_m44(this: &DomMatrixInit) -> Option<f64>;
238 #[doc = "Change the `m44` field of this object."]
239 #[doc = ""]
240 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
241 #[wasm_bindgen(method, setter = "m44")]
242 pub fn set_m44(this: &DomMatrixInit, val: f64);
243}
244impl DomMatrixInit {
245 #[doc = "Construct a new `DomMatrixInit`."]
246 #[doc = ""]
247 #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
248 pub fn new() -> Self {
249 #[allow(unused_mut)]
250 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
251 ret
252 }
253 #[deprecated = "Use `set_a()` instead."]
254 pub fn a(&mut self, val: f64) -> &mut Self {
255 self.set_a(val);
256 self
257 }
258 #[deprecated = "Use `set_b()` instead."]
259 pub fn b(&mut self, val: f64) -> &mut Self {
260 self.set_b(val);
261 self
262 }
263 #[deprecated = "Use `set_c()` instead."]
264 pub fn c(&mut self, val: f64) -> &mut Self {
265 self.set_c(val);
266 self
267 }
268 #[deprecated = "Use `set_d()` instead."]
269 pub fn d(&mut self, val: f64) -> &mut Self {
270 self.set_d(val);
271 self
272 }
273 #[deprecated = "Use `set_e()` instead."]
274 pub fn e(&mut self, val: f64) -> &mut Self {
275 self.set_e(val);
276 self
277 }
278 #[deprecated = "Use `set_f()` instead."]
279 pub fn f(&mut self, val: f64) -> &mut Self {
280 self.set_f(val);
281 self
282 }
283 #[deprecated = "Use `set_m11()` instead."]
284 pub fn m11(&mut self, val: f64) -> &mut Self {
285 self.set_m11(val);
286 self
287 }
288 #[deprecated = "Use `set_m12()` instead."]
289 pub fn m12(&mut self, val: f64) -> &mut Self {
290 self.set_m12(val);
291 self
292 }
293 #[deprecated = "Use `set_m21()` instead."]
294 pub fn m21(&mut self, val: f64) -> &mut Self {
295 self.set_m21(val);
296 self
297 }
298 #[deprecated = "Use `set_m22()` instead."]
299 pub fn m22(&mut self, val: f64) -> &mut Self {
300 self.set_m22(val);
301 self
302 }
303 #[deprecated = "Use `set_m41()` instead."]
304 pub fn m41(&mut self, val: f64) -> &mut Self {
305 self.set_m41(val);
306 self
307 }
308 #[deprecated = "Use `set_m42()` instead."]
309 pub fn m42(&mut self, val: f64) -> &mut Self {
310 self.set_m42(val);
311 self
312 }
313 #[deprecated = "Use `set_is_2d()` instead."]
314 pub fn is_2d(&mut self, val: bool) -> &mut Self {
315 self.set_is_2d(val);
316 self
317 }
318 #[deprecated = "Use `set_m13()` instead."]
319 pub fn m13(&mut self, val: f64) -> &mut Self {
320 self.set_m13(val);
321 self
322 }
323 #[deprecated = "Use `set_m14()` instead."]
324 pub fn m14(&mut self, val: f64) -> &mut Self {
325 self.set_m14(val);
326 self
327 }
328 #[deprecated = "Use `set_m23()` instead."]
329 pub fn m23(&mut self, val: f64) -> &mut Self {
330 self.set_m23(val);
331 self
332 }
333 #[deprecated = "Use `set_m24()` instead."]
334 pub fn m24(&mut self, val: f64) -> &mut Self {
335 self.set_m24(val);
336 self
337 }
338 #[deprecated = "Use `set_m31()` instead."]
339 pub fn m31(&mut self, val: f64) -> &mut Self {
340 self.set_m31(val);
341 self
342 }
343 #[deprecated = "Use `set_m32()` instead."]
344 pub fn m32(&mut self, val: f64) -> &mut Self {
345 self.set_m32(val);
346 self
347 }
348 #[deprecated = "Use `set_m33()` instead."]
349 pub fn m33(&mut self, val: f64) -> &mut Self {
350 self.set_m33(val);
351 self
352 }
353 #[deprecated = "Use `set_m34()` instead."]
354 pub fn m34(&mut self, val: f64) -> &mut Self {
355 self.set_m34(val);
356 self
357 }
358 #[deprecated = "Use `set_m43()` instead."]
359 pub fn m43(&mut self, val: f64) -> &mut Self {
360 self.set_m43(val);
361 self
362 }
363 #[deprecated = "Use `set_m44()` instead."]
364 pub fn m44(&mut self, val: f64) -> &mut Self {
365 self.set_m44(val);
366 self
367 }
368}
369impl Default for DomMatrixInit {
370 fn default() -> Self {
371 Self::new()
372 }
373}