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