web_sys/features/
gen_SvgAnimationElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "SvgElement",
9 extends = "Element",
10 extends = "Node",
11 extends = "EventTarget",
12 extends = "::js_sys::Object",
13 js_name = "SVGAnimationElement",
14 typescript_type = "SVGAnimationElement"
15 )]
16 #[derive(Debug, Clone, PartialEq, Eq)]
17 #[doc = "The `SvgAnimationElement` class."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
22 pub type SvgAnimationElement;
23 #[wasm_bindgen(
24 method,
25 getter,
26 js_class = "SVGAnimationElement",
27 js_name = "targetElement"
28 )]
29 #[doc = "Getter for the `targetElement` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/targetElement)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
34 pub fn target_element(this: &SvgAnimationElement) -> Option<SvgElement>;
35 #[cfg(feature = "SvgStringList")]
36 #[wasm_bindgen(
37 method,
38 getter,
39 js_class = "SVGAnimationElement",
40 js_name = "requiredFeatures"
41 )]
42 #[doc = "Getter for the `requiredFeatures` field of this object."]
43 #[doc = ""]
44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredFeatures)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"]
47 pub fn required_features(this: &SvgAnimationElement) -> SvgStringList;
48 #[cfg(feature = "SvgStringList")]
49 #[wasm_bindgen(
50 method,
51 getter,
52 js_class = "SVGAnimationElement",
53 js_name = "requiredExtensions"
54 )]
55 #[doc = "Getter for the `requiredExtensions` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredExtensions)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"]
60 pub fn required_extensions(this: &SvgAnimationElement) -> SvgStringList;
61 #[cfg(feature = "SvgStringList")]
62 #[wasm_bindgen(
63 method,
64 getter,
65 js_class = "SVGAnimationElement",
66 js_name = "systemLanguage"
67 )]
68 #[doc = "Getter for the `systemLanguage` field of this object."]
69 #[doc = ""]
70 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/systemLanguage)"]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"]
73 pub fn system_language(this: &SvgAnimationElement) -> SvgStringList;
74 #[wasm_bindgen(
75 catch,
76 method,
77 js_class = "SVGAnimationElement",
78 js_name = "beginElement"
79 )]
80 #[doc = "The `beginElement()` method."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElement)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
85 pub fn begin_element(this: &SvgAnimationElement) -> Result<(), JsValue>;
86 #[wasm_bindgen(
87 catch,
88 method,
89 js_class = "SVGAnimationElement",
90 js_name = "beginElementAt"
91 )]
92 #[doc = "The `beginElementAt()` method."]
93 #[doc = ""]
94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElementAt)"]
95 #[doc = ""]
96 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
97 pub fn begin_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>;
98 #[wasm_bindgen(
99 catch,
100 method,
101 js_class = "SVGAnimationElement",
102 js_name = "endElement"
103 )]
104 #[doc = "The `endElement()` method."]
105 #[doc = ""]
106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElement)"]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
109 pub fn end_element(this: &SvgAnimationElement) -> Result<(), JsValue>;
110 #[wasm_bindgen(
111 catch,
112 method,
113 js_class = "SVGAnimationElement",
114 js_name = "endElementAt"
115 )]
116 #[doc = "The `endElementAt()` method."]
117 #[doc = ""]
118 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElementAt)"]
119 #[doc = ""]
120 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
121 pub fn end_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>;
122 #[wasm_bindgen(method, js_class = "SVGAnimationElement", js_name = "getCurrentTime")]
123 #[doc = "The `getCurrentTime()` method."]
124 #[doc = ""]
125 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getCurrentTime)"]
126 #[doc = ""]
127 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
128 pub fn get_current_time(this: &SvgAnimationElement) -> f32;
129 #[wasm_bindgen(
130 catch,
131 method,
132 js_class = "SVGAnimationElement",
133 js_name = "getSimpleDuration"
134 )]
135 #[doc = "The `getSimpleDuration()` method."]
136 #[doc = ""]
137 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getSimpleDuration)"]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
140 pub fn get_simple_duration(this: &SvgAnimationElement) -> Result<f32, JsValue>;
141 #[wasm_bindgen(
142 catch,
143 method,
144 js_class = "SVGAnimationElement",
145 js_name = "getStartTime"
146 )]
147 #[doc = "The `getStartTime()` method."]
148 #[doc = ""]
149 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getStartTime)"]
150 #[doc = ""]
151 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
152 pub fn get_start_time(this: &SvgAnimationElement) -> Result<f32, JsValue>;
153 #[wasm_bindgen(method, js_class = "SVGAnimationElement", js_name = "hasExtension")]
154 #[doc = "The `hasExtension()` method."]
155 #[doc = ""]
156 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/hasExtension)"]
157 #[doc = ""]
158 #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"]
159 pub fn has_extension(this: &SvgAnimationElement, extension: &str) -> bool;
160}