1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = AnimationEffect , extends = :: js_sys :: Object , js_name = KeyframeEffect , typescript_type = "KeyframeEffect")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `KeyframeEffect` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"]
14 pub type KeyframeEffect;
15 # [wasm_bindgen (structural , method , getter , js_class = "KeyframeEffect" , js_name = target)]
16 #[doc = "Getter for the `target` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"]
21 pub fn target(this: &KeyframeEffect) -> Option<::js_sys::Object>;
22 # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = target)]
23 #[doc = "Setter for the `target` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"]
28 #[deprecated]
29 pub fn set_target(this: &KeyframeEffect, value: Option<&::js_sys::Object>);
30 #[cfg(feature = "Element")]
31 # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = target)]
32 #[doc = "Setter for the `target` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`*"]
37 pub fn set_target_opt_element(this: &KeyframeEffect, value: Option<&Element>);
38 #[cfg(feature = "CssPseudoElement")]
39 # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = target)]
40 #[doc = "Setter for the `target` field of this object."]
41 #[doc = ""]
42 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`*"]
45 pub fn set_target_opt_css_pseudo_element(
46 this: &KeyframeEffect,
47 value: Option<&CssPseudoElement>,
48 );
49 #[cfg(feature = "IterationCompositeOperation")]
50 # [wasm_bindgen (structural , method , getter , js_class = "KeyframeEffect" , js_name = iterationComposite)]
51 #[doc = "Getter for the `iterationComposite` field of this object."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/iterationComposite)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffect`*"]
56 pub fn iteration_composite(this: &KeyframeEffect) -> IterationCompositeOperation;
57 #[cfg(feature = "IterationCompositeOperation")]
58 # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = iterationComposite)]
59 #[doc = "Setter for the `iterationComposite` field of this object."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/iterationComposite)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffect`*"]
64 pub fn set_iteration_composite(this: &KeyframeEffect, value: IterationCompositeOperation);
65 #[cfg(feature = "CompositeOperation")]
66 # [wasm_bindgen (structural , method , getter , js_class = "KeyframeEffect" , js_name = composite)]
67 #[doc = "Getter for the `composite` field of this object."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffect`*"]
72 pub fn composite(this: &KeyframeEffect) -> CompositeOperation;
73 #[cfg(feature = "CompositeOperation")]
74 # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = composite)]
75 #[doc = "Setter for the `composite` field of this object."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffect`*"]
80 pub fn set_composite(this: &KeyframeEffect, value: CompositeOperation);
81 #[cfg(feature = "Element")]
82 #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")]
83 #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."]
84 #[doc = ""]
85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`*"]
88 pub fn new_with_opt_element_and_keyframes(
89 target: Option<&Element>,
90 keyframes: Option<&::js_sys::Object>,
91 ) -> Result<KeyframeEffect, JsValue>;
92 #[cfg(feature = "CssPseudoElement")]
93 #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")]
94 #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`*"]
99 pub fn new_with_opt_css_pseudo_element_and_keyframes(
100 target: Option<&CssPseudoElement>,
101 keyframes: Option<&::js_sys::Object>,
102 ) -> Result<KeyframeEffect, JsValue>;
103 #[cfg(feature = "Element")]
104 #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")]
105 #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."]
106 #[doc = ""]
107 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"]
108 #[doc = ""]
109 #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`*"]
110 pub fn new_with_opt_element_and_keyframes_and_f64(
111 target: Option<&Element>,
112 keyframes: Option<&::js_sys::Object>,
113 options: f64,
114 ) -> Result<KeyframeEffect, JsValue>;
115 #[cfg(feature = "CssPseudoElement")]
116 #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")]
117 #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."]
118 #[doc = ""]
119 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`*"]
122 pub fn new_with_opt_css_pseudo_element_and_keyframes_and_f64(
123 target: Option<&CssPseudoElement>,
124 keyframes: Option<&::js_sys::Object>,
125 options: f64,
126 ) -> Result<KeyframeEffect, JsValue>;
127 #[cfg(all(feature = "Element", feature = "KeyframeEffectOptions",))]
128 #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")]
129 #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."]
130 #[doc = ""]
131 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"]
132 #[doc = ""]
133 #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`, `KeyframeEffectOptions`*"]
134 pub fn new_with_opt_element_and_keyframes_and_keyframe_effect_options(
135 target: Option<&Element>,
136 keyframes: Option<&::js_sys::Object>,
137 options: &KeyframeEffectOptions,
138 ) -> Result<KeyframeEffect, JsValue>;
139 #[cfg(all(feature = "CssPseudoElement", feature = "KeyframeEffectOptions",))]
140 #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")]
141 #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."]
142 #[doc = ""]
143 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"]
144 #[doc = ""]
145 #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`, `KeyframeEffectOptions`*"]
146 pub fn new_with_opt_css_pseudo_element_and_keyframes_and_keyframe_effect_options(
147 target: Option<&CssPseudoElement>,
148 keyframes: Option<&::js_sys::Object>,
149 options: &KeyframeEffectOptions,
150 ) -> Result<KeyframeEffect, JsValue>;
151 #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")]
152 #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."]
153 #[doc = ""]
154 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"]
155 #[doc = ""]
156 #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"]
157 pub fn new_with_source(source: &KeyframeEffect) -> Result<KeyframeEffect, JsValue>;
158 # [wasm_bindgen (catch , method , structural , js_class = "KeyframeEffect" , js_name = getKeyframes)]
159 #[doc = "The `getKeyframes()` method."]
160 #[doc = ""]
161 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/getKeyframes)"]
162 #[doc = ""]
163 #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"]
164 pub fn get_keyframes(this: &KeyframeEffect) -> Result<::js_sys::Array, JsValue>;
165 # [wasm_bindgen (catch , method , structural , js_class = "KeyframeEffect" , js_name = setKeyframes)]
166 #[doc = "The `setKeyframes()` method."]
167 #[doc = ""]
168 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/setKeyframes)"]
169 #[doc = ""]
170 #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"]
171 pub fn set_keyframes(
172 this: &KeyframeEffect,
173 keyframes: Option<&::js_sys::Object>,
174 ) -> Result<(), JsValue>;
175}