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