web_sys/features/
gen_SvgImageElement.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 = "SVGImageElement",
15 typescript_type = "SVGImageElement"
16 )]
17 #[derive(Debug, Clone, PartialEq, Eq)]
18 #[doc = "The `SvgImageElement` class."]
19 #[doc = ""]
20 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement)"]
21 #[doc = ""]
22 #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`*"]
23 pub type SvgImageElement;
24 #[cfg(feature = "SvgAnimatedLength")]
25 #[wasm_bindgen(method, getter, js_class = "SVGImageElement", 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/SVGImageElement/x)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"]
31 pub fn x(this: &SvgImageElement) -> SvgAnimatedLength;
32 #[cfg(feature = "SvgAnimatedLength")]
33 #[wasm_bindgen(method, getter, js_class = "SVGImageElement", 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/SVGImageElement/y)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"]
39 pub fn y(this: &SvgImageElement) -> SvgAnimatedLength;
40 #[cfg(feature = "SvgAnimatedLength")]
41 #[wasm_bindgen(method, getter, js_class = "SVGImageElement", 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/SVGImageElement/width)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"]
47 pub fn width(this: &SvgImageElement) -> SvgAnimatedLength;
48 #[cfg(feature = "SvgAnimatedLength")]
49 #[wasm_bindgen(method, getter, js_class = "SVGImageElement", 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/SVGImageElement/height)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"]
55 pub fn height(this: &SvgImageElement) -> SvgAnimatedLength;
56 #[cfg(feature = "SvgAnimatedPreserveAspectRatio")]
57 #[wasm_bindgen(
58 method,
59 getter,
60 js_class = "SVGImageElement",
61 js_name = "preserveAspectRatio"
62 )]
63 #[doc = "Getter for the `preserveAspectRatio` field of this object."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/preserveAspectRatio)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgImageElement`*"]
68 pub fn preserve_aspect_ratio(this: &SvgImageElement) -> SvgAnimatedPreserveAspectRatio;
69 #[cfg(feature = "SvgAnimatedString")]
70 #[wasm_bindgen(method, getter, js_class = "SVGImageElement", js_name = "href")]
71 #[doc = "Getter for the `href` field of this object."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/href)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgImageElement`*"]
76 pub fn href(this: &SvgImageElement) -> SvgAnimatedString;
77}