web_sys/features/
gen_SvgTextPathElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextPathElement , typescript_type = "SVGTextPathElement")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `SvgTextPathElement` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
14    pub type SvgTextPathElement;
15    #[cfg(feature = "SvgAnimatedLength")]
16    # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = startOffset)]
17    #[doc = "Getter for the `startOffset` field of this object."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/startOffset)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgTextPathElement`*"]
22    pub fn start_offset(this: &SvgTextPathElement) -> SvgAnimatedLength;
23    #[cfg(feature = "SvgAnimatedEnumeration")]
24    # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = method)]
25    #[doc = "Getter for the `method` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/method)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"]
30    pub fn method(this: &SvgTextPathElement) -> SvgAnimatedEnumeration;
31    #[cfg(feature = "SvgAnimatedEnumeration")]
32    # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = spacing)]
33    #[doc = "Getter for the `spacing` field of this object."]
34    #[doc = ""]
35    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/spacing)"]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"]
38    pub fn spacing(this: &SvgTextPathElement) -> SvgAnimatedEnumeration;
39    #[cfg(feature = "SvgAnimatedString")]
40    # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = href)]
41    #[doc = "Getter for the `href` field of this object."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/href)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgTextPathElement`*"]
46    pub fn href(this: &SvgTextPathElement) -> SvgAnimatedString;
47}
48impl SvgTextPathElement {
49    #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_UNKNOWN` const."]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
52    pub const TEXTPATH_METHODTYPE_UNKNOWN: u16 = 0i64 as u16;
53    #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN` const."]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
56    pub const TEXTPATH_METHODTYPE_ALIGN: u16 = 1u64 as u16;
57    #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH` const."]
58    #[doc = ""]
59    #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
60    pub const TEXTPATH_METHODTYPE_STRETCH: u16 = 2u64 as u16;
61    #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_UNKNOWN` const."]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
64    pub const TEXTPATH_SPACINGTYPE_UNKNOWN: u16 = 0i64 as u16;
65    #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_AUTO` const."]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
68    pub const TEXTPATH_SPACINGTYPE_AUTO: u16 = 1u64 as u16;
69    #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT` const."]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
72    pub const TEXTPATH_SPACINGTYPE_EXACT: u16 = 2u64 as u16;
73}