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