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