web_sys/features/
gen_SvgRect.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 = "SVGRect",
10 typescript_type = "SVGRect"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `SvgRect` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
18 pub type SvgRect;
19 #[wasm_bindgen(method, getter, js_class = "SVGRect", 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/SVGRect/x)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
25 pub fn x(this: &SvgRect) -> f32;
26 #[wasm_bindgen(method, setter, js_class = "SVGRect", 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/SVGRect/x)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
32 pub fn set_x(this: &SvgRect, value: f32);
33 #[wasm_bindgen(method, getter, js_class = "SVGRect", 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/SVGRect/y)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
39 pub fn y(this: &SvgRect) -> f32;
40 #[wasm_bindgen(method, setter, js_class = "SVGRect", 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/SVGRect/y)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
46 pub fn set_y(this: &SvgRect, value: f32);
47 #[wasm_bindgen(method, getter, js_class = "SVGRect", js_name = "width")]
48 #[doc = "Getter for the `width` field of this object."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
53 pub fn width(this: &SvgRect) -> f32;
54 #[wasm_bindgen(method, setter, js_class = "SVGRect", js_name = "width")]
55 #[doc = "Setter for the `width` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
60 pub fn set_width(this: &SvgRect, value: f32);
61 #[wasm_bindgen(method, getter, js_class = "SVGRect", js_name = "height")]
62 #[doc = "Getter for the `height` field of this object."]
63 #[doc = ""]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
67 pub fn height(this: &SvgRect) -> f32;
68 #[wasm_bindgen(method, setter, js_class = "SVGRect", js_name = "height")]
69 #[doc = "Setter for the `height` field of this object."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
74 pub fn set_height(this: &SvgRect, value: f32);
75}