maxcountryman_web_sys/features/
gen_SvgForeignObjectElement.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGForeignObjectElement , typescript_type = "SVGForeignObjectElement")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `SvgForeignObjectElement` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `SvgForeignObjectElement`*"]
13    pub type SvgForeignObjectElement;
14    #[cfg(feature = "SvgAnimatedLength")]
15    # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , 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/SVGForeignObjectElement/x)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"]
21    pub fn x(this: &SvgForeignObjectElement) -> SvgAnimatedLength;
22    #[cfg(feature = "SvgAnimatedLength")]
23    # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , 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/SVGForeignObjectElement/y)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"]
29    pub fn y(this: &SvgForeignObjectElement) -> SvgAnimatedLength;
30    #[cfg(feature = "SvgAnimatedLength")]
31    # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , 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/SVGForeignObjectElement/width)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"]
37    pub fn width(this: &SvgForeignObjectElement) -> SvgAnimatedLength;
38    #[cfg(feature = "SvgAnimatedLength")]
39    # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , 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/SVGForeignObjectElement/height)"]
43    #[doc = ""]
44    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"]
45    pub fn height(this: &SvgForeignObjectElement) -> SvgAnimatedLength;
46}