Skip to main content

web_sys/features/
gen_SvgForeignObjectElement.rs

1#![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 = "SVGForeignObjectElement",
15        typescript_type = "SVGForeignObjectElement"
16    )]
17    #[derive(Debug, Clone, PartialEq, Eq)]
18    #[doc = "The `SvgForeignObjectElement` class."]
19    #[doc = ""]
20    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement)"]
21    #[doc = ""]
22    #[doc = "*This API requires the following crate features to be activated: `SvgForeignObjectElement`*"]
23    pub type SvgForeignObjectElement;
24    #[cfg(feature = "SvgAnimatedLength")]
25    #[wasm_bindgen(method, getter, js_class = "SVGForeignObjectElement", 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/SVGForeignObjectElement/x)"]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"]
31    pub fn x(this: &SvgForeignObjectElement) -> SvgAnimatedLength;
32    #[cfg(feature = "SvgAnimatedLength")]
33    #[wasm_bindgen(method, getter, js_class = "SVGForeignObjectElement", 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/SVGForeignObjectElement/y)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"]
39    pub fn y(this: &SvgForeignObjectElement) -> SvgAnimatedLength;
40    #[cfg(feature = "SvgAnimatedLength")]
41    #[wasm_bindgen(
42        method,
43        getter,
44        js_class = "SVGForeignObjectElement",
45        js_name = "width"
46    )]
47    #[doc = "Getter for the `width` field of this object."]
48    #[doc = ""]
49    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/width)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"]
52    pub fn width(this: &SvgForeignObjectElement) -> SvgAnimatedLength;
53    #[cfg(feature = "SvgAnimatedLength")]
54    #[wasm_bindgen(
55        method,
56        getter,
57        js_class = "SVGForeignObjectElement",
58        js_name = "height"
59    )]
60    #[doc = "Getter for the `height` field of this object."]
61    #[doc = ""]
62    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/height)"]
63    #[doc = ""]
64    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"]
65    pub fn height(this: &SvgForeignObjectElement) -> SvgAnimatedLength;
66}