web_sys/features/
gen_SvgRectElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "SvgGeometryElement",
9 extends = "SvgGraphicsElement",
10 extends = "SvgElement",
11 extends = "Element",
12 extends = "Node",
13 extends = "EventTarget",
14 extends = "::js_sys::Object",
15 js_name = "SVGRectElement",
16 typescript_type = "SVGRectElement"
17 )]
18 #[derive(Debug, Clone, PartialEq, Eq)]
19 #[doc = "The `SvgRectElement` class."]
20 #[doc = ""]
21 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement)"]
22 #[doc = ""]
23 #[doc = "*This API requires the following crate features to be activated: `SvgRectElement`*"]
24 pub type SvgRectElement;
25 #[cfg(feature = "SvgAnimatedLength")]
26 #[wasm_bindgen(method, getter, js_class = "SVGRectElement", js_name = "x")]
27 #[doc = "Getter for the `x` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/x)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"]
32 pub fn x(this: &SvgRectElement) -> SvgAnimatedLength;
33 #[cfg(feature = "SvgAnimatedLength")]
34 #[wasm_bindgen(method, getter, js_class = "SVGRectElement", js_name = "y")]
35 #[doc = "Getter for the `y` field of this object."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/y)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"]
40 pub fn y(this: &SvgRectElement) -> SvgAnimatedLength;
41 #[cfg(feature = "SvgAnimatedLength")]
42 #[wasm_bindgen(method, getter, js_class = "SVGRectElement", js_name = "width")]
43 #[doc = "Getter for the `width` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/width)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"]
48 pub fn width(this: &SvgRectElement) -> SvgAnimatedLength;
49 #[cfg(feature = "SvgAnimatedLength")]
50 #[wasm_bindgen(method, getter, js_class = "SVGRectElement", js_name = "height")]
51 #[doc = "Getter for the `height` field of this object."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/height)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"]
56 pub fn height(this: &SvgRectElement) -> SvgAnimatedLength;
57 #[cfg(feature = "SvgAnimatedLength")]
58 #[wasm_bindgen(method, getter, js_class = "SVGRectElement", js_name = "rx")]
59 #[doc = "Getter for the `rx` field of this object."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/rx)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"]
64 pub fn rx(this: &SvgRectElement) -> SvgAnimatedLength;
65 #[cfg(feature = "SvgAnimatedLength")]
66 #[wasm_bindgen(method, getter, js_class = "SVGRectElement", js_name = "ry")]
67 #[doc = "Getter for the `ry` field of this object."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/ry)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"]
72 pub fn ry(this: &SvgRectElement) -> SvgAnimatedLength;
73}