web_sys/features/
gen_DomMatrix2dInit.rs1#![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 = DOMMatrix2DInit)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `DomMatrix2dInit` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
12 pub type DomMatrix2dInit;
13 #[doc = "Get the `a` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
16 #[wasm_bindgen(method, getter = "a")]
17 pub fn get_a(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
21 #[wasm_bindgen(method, setter = "a")]
22 pub fn set_a(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
26 #[wasm_bindgen(method, getter = "b")]
27 pub fn get_b(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
31 #[wasm_bindgen(method, setter = "b")]
32 pub fn set_b(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
36 #[wasm_bindgen(method, getter = "c")]
37 pub fn get_c(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
41 #[wasm_bindgen(method, setter = "c")]
42 pub fn set_c(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
46 #[wasm_bindgen(method, getter = "d")]
47 pub fn get_d(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
51 #[wasm_bindgen(method, setter = "d")]
52 pub fn set_d(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
56 #[wasm_bindgen(method, getter = "e")]
57 pub fn get_e(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
61 #[wasm_bindgen(method, setter = "e")]
62 pub fn set_e(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
66 #[wasm_bindgen(method, getter = "f")]
67 pub fn get_f(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
71 #[wasm_bindgen(method, setter = "f")]
72 pub fn set_f(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
76 #[wasm_bindgen(method, getter = "m11")]
77 pub fn get_m11(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
81 #[wasm_bindgen(method, setter = "m11")]
82 pub fn set_m11(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
86 #[wasm_bindgen(method, getter = "m12")]
87 pub fn get_m12(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
91 #[wasm_bindgen(method, setter = "m12")]
92 pub fn set_m12(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
96 #[wasm_bindgen(method, getter = "m21")]
97 pub fn get_m21(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
101 #[wasm_bindgen(method, setter = "m21")]
102 pub fn set_m21(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
106 #[wasm_bindgen(method, getter = "m22")]
107 pub fn get_m22(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
111 #[wasm_bindgen(method, setter = "m22")]
112 pub fn set_m22(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
116 #[wasm_bindgen(method, getter = "m41")]
117 pub fn get_m41(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
121 #[wasm_bindgen(method, setter = "m41")]
122 pub fn set_m41(this: &DomMatrix2dInit, 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: `DomMatrix2dInit`*"]
126 #[wasm_bindgen(method, getter = "m42")]
127 pub fn get_m42(this: &DomMatrix2dInit) -> 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: `DomMatrix2dInit`*"]
131 #[wasm_bindgen(method, setter = "m42")]
132 pub fn set_m42(this: &DomMatrix2dInit, val: f64);
133}
134impl DomMatrix2dInit {
135 #[doc = "Construct a new `DomMatrix2dInit`."]
136 #[doc = ""]
137 #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
138 pub fn new() -> Self {
139 #[allow(unused_mut)]
140 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
141 ret
142 }
143 #[deprecated = "Use `set_a()` instead."]
144 pub fn a(&mut self, val: f64) -> &mut Self {
145 self.set_a(val);
146 self
147 }
148 #[deprecated = "Use `set_b()` instead."]
149 pub fn b(&mut self, val: f64) -> &mut Self {
150 self.set_b(val);
151 self
152 }
153 #[deprecated = "Use `set_c()` instead."]
154 pub fn c(&mut self, val: f64) -> &mut Self {
155 self.set_c(val);
156 self
157 }
158 #[deprecated = "Use `set_d()` instead."]
159 pub fn d(&mut self, val: f64) -> &mut Self {
160 self.set_d(val);
161 self
162 }
163 #[deprecated = "Use `set_e()` instead."]
164 pub fn e(&mut self, val: f64) -> &mut Self {
165 self.set_e(val);
166 self
167 }
168 #[deprecated = "Use `set_f()` instead."]
169 pub fn f(&mut self, val: f64) -> &mut Self {
170 self.set_f(val);
171 self
172 }
173 #[deprecated = "Use `set_m11()` instead."]
174 pub fn m11(&mut self, val: f64) -> &mut Self {
175 self.set_m11(val);
176 self
177 }
178 #[deprecated = "Use `set_m12()` instead."]
179 pub fn m12(&mut self, val: f64) -> &mut Self {
180 self.set_m12(val);
181 self
182 }
183 #[deprecated = "Use `set_m21()` instead."]
184 pub fn m21(&mut self, val: f64) -> &mut Self {
185 self.set_m21(val);
186 self
187 }
188 #[deprecated = "Use `set_m22()` instead."]
189 pub fn m22(&mut self, val: f64) -> &mut Self {
190 self.set_m22(val);
191 self
192 }
193 #[deprecated = "Use `set_m41()` instead."]
194 pub fn m41(&mut self, val: f64) -> &mut Self {
195 self.set_m41(val);
196 self
197 }
198 #[deprecated = "Use `set_m42()` instead."]
199 pub fn m42(&mut self, val: f64) -> &mut Self {
200 self.set_m42(val);
201 self
202 }
203}
204impl Default for DomMatrix2dInit {
205 fn default() -> Self {
206 Self::new()
207 }
208}