Skip to main content

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