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 = SVGMatrix , typescript_type = "SVGMatrix")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SvgMatrix` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
14 pub type SvgMatrix;
15 # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = a)]
16 #[doc = "Getter for the `a` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/a)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
21 pub fn a(this: &SvgMatrix) -> f32;
22 # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = a)]
23 #[doc = "Setter for the `a` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/a)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
28 pub fn set_a(this: &SvgMatrix, value: f32);
29 # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = b)]
30 #[doc = "Getter for the `b` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/b)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
35 pub fn b(this: &SvgMatrix) -> f32;
36 # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = b)]
37 #[doc = "Setter for the `b` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/b)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
42 pub fn set_b(this: &SvgMatrix, value: f32);
43 # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = c)]
44 #[doc = "Getter for the `c` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/c)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
49 pub fn c(this: &SvgMatrix) -> f32;
50 # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = c)]
51 #[doc = "Setter for the `c` field of this object."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/c)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
56 pub fn set_c(this: &SvgMatrix, value: f32);
57 # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = d)]
58 #[doc = "Getter for the `d` field of this object."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/d)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
63 pub fn d(this: &SvgMatrix) -> f32;
64 # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = d)]
65 #[doc = "Setter for the `d` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/d)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
70 pub fn set_d(this: &SvgMatrix, value: f32);
71 # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = e)]
72 #[doc = "Getter for the `e` field of this object."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/e)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
77 pub fn e(this: &SvgMatrix) -> f32;
78 # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = e)]
79 #[doc = "Setter for the `e` field of this object."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/e)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
84 pub fn set_e(this: &SvgMatrix, value: f32);
85 # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = f)]
86 #[doc = "Getter for the `f` field of this object."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/f)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
91 pub fn f(this: &SvgMatrix) -> f32;
92 # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = f)]
93 #[doc = "Setter for the `f` field of this object."]
94 #[doc = ""]
95 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/f)"]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
98 pub fn set_f(this: &SvgMatrix, value: f32);
99 # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = flipX)]
100 #[doc = "The `flipX()` method."]
101 #[doc = ""]
102 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/flipX)"]
103 #[doc = ""]
104 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
105 pub fn flip_x(this: &SvgMatrix) -> SvgMatrix;
106 # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = flipY)]
107 #[doc = "The `flipY()` method."]
108 #[doc = ""]
109 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/flipY)"]
110 #[doc = ""]
111 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
112 pub fn flip_y(this: &SvgMatrix) -> SvgMatrix;
113 # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = inverse)]
114 #[doc = "The `inverse()` method."]
115 #[doc = ""]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/inverse)"]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
119 pub fn inverse(this: &SvgMatrix) -> Result<SvgMatrix, JsValue>;
120 # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = multiply)]
121 #[doc = "The `multiply()` method."]
122 #[doc = ""]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/multiply)"]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
126 pub fn multiply(this: &SvgMatrix, second_matrix: &SvgMatrix) -> SvgMatrix;
127 # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = rotate)]
128 #[doc = "The `rotate()` method."]
129 #[doc = ""]
130 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/rotate)"]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
133 pub fn rotate(this: &SvgMatrix, angle: f32) -> SvgMatrix;
134 # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = rotateFromVector)]
135 #[doc = "The `rotateFromVector()` method."]
136 #[doc = ""]
137 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/rotateFromVector)"]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
140 pub fn rotate_from_vector(this: &SvgMatrix, x: f32, y: f32) -> Result<SvgMatrix, JsValue>;
141 # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = scale)]
142 #[doc = "The `scale()` method."]
143 #[doc = ""]
144 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/scale)"]
145 #[doc = ""]
146 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
147 pub fn scale(this: &SvgMatrix, scale_factor: f32) -> SvgMatrix;
148 # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = scaleNonUniform)]
149 #[doc = "The `scaleNonUniform()` method."]
150 #[doc = ""]
151 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/scaleNonUniform)"]
152 #[doc = ""]
153 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
154 pub fn scale_non_uniform(
155 this: &SvgMatrix,
156 scale_factor_x: f32,
157 scale_factor_y: f32,
158 ) -> SvgMatrix;
159 # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = skewX)]
160 #[doc = "The `skewX()` method."]
161 #[doc = ""]
162 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/skewX)"]
163 #[doc = ""]
164 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
165 pub fn skew_x(this: &SvgMatrix, angle: f32) -> Result<SvgMatrix, JsValue>;
166 # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = skewY)]
167 #[doc = "The `skewY()` method."]
168 #[doc = ""]
169 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/skewY)"]
170 #[doc = ""]
171 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
172 pub fn skew_y(this: &SvgMatrix, angle: f32) -> Result<SvgMatrix, JsValue>;
173 # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = translate)]
174 #[doc = "The `translate()` method."]
175 #[doc = ""]
176 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/translate)"]
177 #[doc = ""]
178 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"]
179 pub fn translate(this: &SvgMatrix, x: f32, y: f32) -> SvgMatrix;
180}