web_sys/features/
gen_SvgAnimationElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimationElement , typescript_type = "SVGAnimationElement")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `SvgAnimationElement` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
14    pub type SvgAnimationElement;
15    # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = targetElement)]
16    #[doc = "Getter for the `targetElement` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/targetElement)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
21    pub fn target_element(this: &SvgAnimationElement) -> Option<SvgElement>;
22    #[cfg(feature = "SvgStringList")]
23    # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = requiredFeatures)]
24    #[doc = "Getter for the `requiredFeatures` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredFeatures)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"]
29    pub fn required_features(this: &SvgAnimationElement) -> SvgStringList;
30    #[cfg(feature = "SvgStringList")]
31    # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = requiredExtensions)]
32    #[doc = "Getter for the `requiredExtensions` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredExtensions)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"]
37    pub fn required_extensions(this: &SvgAnimationElement) -> SvgStringList;
38    #[cfg(feature = "SvgStringList")]
39    # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = systemLanguage)]
40    #[doc = "Getter for the `systemLanguage` field of this object."]
41    #[doc = ""]
42    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/systemLanguage)"]
43    #[doc = ""]
44    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"]
45    pub fn system_language(this: &SvgAnimationElement) -> SvgStringList;
46    # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = beginElement)]
47    #[doc = "The `beginElement()` method."]
48    #[doc = ""]
49    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElement)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
52    pub fn begin_element(this: &SvgAnimationElement) -> Result<(), JsValue>;
53    # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = beginElementAt)]
54    #[doc = "The `beginElementAt()` method."]
55    #[doc = ""]
56    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElementAt)"]
57    #[doc = ""]
58    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
59    pub fn begin_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>;
60    # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = endElement)]
61    #[doc = "The `endElement()` method."]
62    #[doc = ""]
63    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElement)"]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
66    pub fn end_element(this: &SvgAnimationElement) -> Result<(), JsValue>;
67    # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = endElementAt)]
68    #[doc = "The `endElementAt()` method."]
69    #[doc = ""]
70    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElementAt)"]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
73    pub fn end_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>;
74    # [wasm_bindgen (method , structural , js_class = "SVGAnimationElement" , js_name = getCurrentTime)]
75    #[doc = "The `getCurrentTime()` method."]
76    #[doc = ""]
77    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getCurrentTime)"]
78    #[doc = ""]
79    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
80    pub fn get_current_time(this: &SvgAnimationElement) -> f32;
81    # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = getSimpleDuration)]
82    #[doc = "The `getSimpleDuration()` method."]
83    #[doc = ""]
84    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getSimpleDuration)"]
85    #[doc = ""]
86    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
87    pub fn get_simple_duration(this: &SvgAnimationElement) -> Result<f32, JsValue>;
88    # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = getStartTime)]
89    #[doc = "The `getStartTime()` method."]
90    #[doc = ""]
91    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getStartTime)"]
92    #[doc = ""]
93    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
94    pub fn get_start_time(this: &SvgAnimationElement) -> Result<f32, JsValue>;
95    # [wasm_bindgen (method , structural , js_class = "SVGAnimationElement" , js_name = hasExtension)]
96    #[doc = "The `hasExtension()` method."]
97    #[doc = ""]
98    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/hasExtension)"]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
101    pub fn has_extension(this: &SvgAnimationElement, extension: &str) -> bool;
102}