Skip to main content

web_sys/features/
gen_SvgMatrix.rs

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