Skip to main content

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