web_sys/features/
gen_SvgPoint.rs1#![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 = "SVGPoint",
10 typescript_type = "SVGPoint"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `SvgPoint` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"]
18 pub type SvgPoint;
19 #[wasm_bindgen(method, getter, js_class = "SVGPoint", js_name = "x")]
20 #[doc = "Getter for the `x` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/x)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"]
25 pub fn x(this: &SvgPoint) -> f32;
26 #[wasm_bindgen(method, setter, js_class = "SVGPoint", js_name = "x")]
27 #[doc = "Setter for the `x` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/x)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"]
32 pub fn set_x(this: &SvgPoint, value: f32);
33 #[wasm_bindgen(method, getter, js_class = "SVGPoint", js_name = "y")]
34 #[doc = "Getter for the `y` field of this object."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/y)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"]
39 pub fn y(this: &SvgPoint) -> f32;
40 #[wasm_bindgen(method, setter, js_class = "SVGPoint", js_name = "y")]
41 #[doc = "Setter for the `y` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/y)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"]
46 pub fn set_y(this: &SvgPoint, value: f32);
47 #[cfg(feature = "SvgMatrix")]
48 #[wasm_bindgen(method, js_class = "SVGPoint", js_name = "matrixTransform")]
49 #[doc = "The `matrixTransform()` method."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/matrixTransform)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgPoint`*"]
54 pub fn matrix_transform(this: &SvgPoint, matrix: &SvgMatrix) -> SvgPoint;
55}