web_sys/features/
gen_ComputedEffectTiming.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ComputedEffectTiming)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `ComputedEffectTiming` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
12 pub type ComputedEffectTiming;
13 #[doc = "Get the `delay` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
16 #[wasm_bindgen(method, getter = "delay")]
17 pub fn get_delay(this: &ComputedEffectTiming) -> Option<f64>;
18 #[doc = "Change the `delay` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
21 #[wasm_bindgen(method, setter = "delay")]
22 pub fn set_delay(this: &ComputedEffectTiming, val: f64);
23 #[cfg(feature = "PlaybackDirection")]
24 #[doc = "Get the `direction` field of this object."]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `PlaybackDirection`*"]
27 #[wasm_bindgen(method, getter = "direction")]
28 pub fn get_direction(this: &ComputedEffectTiming) -> Option<PlaybackDirection>;
29 #[cfg(feature = "PlaybackDirection")]
30 #[doc = "Change the `direction` field of this object."]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `PlaybackDirection`*"]
33 #[wasm_bindgen(method, setter = "direction")]
34 pub fn set_direction(this: &ComputedEffectTiming, val: PlaybackDirection);
35 #[doc = "Get the `duration` field of this object."]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
38 #[wasm_bindgen(method, getter = "duration")]
39 pub fn get_duration(this: &ComputedEffectTiming) -> ::wasm_bindgen::JsValue;
40 #[doc = "Change the `duration` field of this object."]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
43 #[wasm_bindgen(method, setter = "duration")]
44 pub fn set_duration(this: &ComputedEffectTiming, val: &::wasm_bindgen::JsValue);
45 #[doc = "Change the `duration` field of this object."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
48 #[wasm_bindgen(method, setter = "duration")]
49 pub fn set_duration_f64(this: &ComputedEffectTiming, val: f64);
50 #[doc = "Change the `duration` field of this object."]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
53 #[wasm_bindgen(method, setter = "duration")]
54 pub fn set_duration_str(this: &ComputedEffectTiming, val: &str);
55 #[doc = "Get the `easing` field of this object."]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
58 #[wasm_bindgen(method, getter = "easing")]
59 pub fn get_easing(this: &ComputedEffectTiming) -> Option<::alloc::string::String>;
60 #[doc = "Change the `easing` field of this object."]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
63 #[wasm_bindgen(method, setter = "easing")]
64 pub fn set_easing(this: &ComputedEffectTiming, val: &str);
65 #[doc = "Get the `endDelay` field of this object."]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
68 #[wasm_bindgen(method, getter = "endDelay")]
69 pub fn get_end_delay(this: &ComputedEffectTiming) -> Option<f64>;
70 #[doc = "Change the `endDelay` field of this object."]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
73 #[wasm_bindgen(method, setter = "endDelay")]
74 pub fn set_end_delay(this: &ComputedEffectTiming, val: f64);
75 #[cfg(feature = "FillMode")]
76 #[doc = "Get the `fill` field of this object."]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `FillMode`*"]
79 #[wasm_bindgen(method, getter = "fill")]
80 pub fn get_fill(this: &ComputedEffectTiming) -> Option<FillMode>;
81 #[cfg(feature = "FillMode")]
82 #[doc = "Change the `fill` field of this object."]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `FillMode`*"]
85 #[wasm_bindgen(method, setter = "fill")]
86 pub fn set_fill(this: &ComputedEffectTiming, val: FillMode);
87 #[doc = "Get the `iterationStart` field of this object."]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
90 #[wasm_bindgen(method, getter = "iterationStart")]
91 pub fn get_iteration_start(this: &ComputedEffectTiming) -> Option<f64>;
92 #[doc = "Change the `iterationStart` field of this object."]
93 #[doc = ""]
94 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
95 #[wasm_bindgen(method, setter = "iterationStart")]
96 pub fn set_iteration_start(this: &ComputedEffectTiming, val: f64);
97 #[doc = "Get the `iterations` field of this object."]
98 #[doc = ""]
99 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
100 #[wasm_bindgen(method, getter = "iterations")]
101 pub fn get_iterations(this: &ComputedEffectTiming) -> Option<f64>;
102 #[doc = "Change the `iterations` field of this object."]
103 #[doc = ""]
104 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
105 #[wasm_bindgen(method, setter = "iterations")]
106 pub fn set_iterations(this: &ComputedEffectTiming, val: f64);
107 #[doc = "Get the `activeDuration` field of this object."]
108 #[doc = ""]
109 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
110 #[wasm_bindgen(method, getter = "activeDuration")]
111 pub fn get_active_duration(this: &ComputedEffectTiming) -> Option<f64>;
112 #[doc = "Change the `activeDuration` field of this object."]
113 #[doc = ""]
114 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
115 #[wasm_bindgen(method, setter = "activeDuration")]
116 pub fn set_active_duration(this: &ComputedEffectTiming, val: f64);
117 #[doc = "Get the `currentIteration` field of this object."]
118 #[doc = ""]
119 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
120 #[wasm_bindgen(method, getter = "currentIteration")]
121 pub fn get_current_iteration(this: &ComputedEffectTiming) -> Option<f64>;
122 #[doc = "Change the `currentIteration` field of this object."]
123 #[doc = ""]
124 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
125 #[wasm_bindgen(method, setter = "currentIteration")]
126 pub fn set_current_iteration(this: &ComputedEffectTiming, val: Option<f64>);
127 #[doc = "Get the `endTime` field of this object."]
128 #[doc = ""]
129 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
130 #[wasm_bindgen(method, getter = "endTime")]
131 pub fn get_end_time(this: &ComputedEffectTiming) -> Option<f64>;
132 #[doc = "Change the `endTime` field of this object."]
133 #[doc = ""]
134 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
135 #[wasm_bindgen(method, setter = "endTime")]
136 pub fn set_end_time(this: &ComputedEffectTiming, val: f64);
137 #[doc = "Get the `localTime` field of this object."]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
140 #[wasm_bindgen(method, getter = "localTime")]
141 pub fn get_local_time(this: &ComputedEffectTiming) -> Option<f64>;
142 #[doc = "Change the `localTime` field of this object."]
143 #[doc = ""]
144 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
145 #[wasm_bindgen(method, setter = "localTime")]
146 pub fn set_local_time(this: &ComputedEffectTiming, val: Option<f64>);
147 #[doc = "Get the `progress` field of this object."]
148 #[doc = ""]
149 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
150 #[wasm_bindgen(method, getter = "progress")]
151 pub fn get_progress(this: &ComputedEffectTiming) -> Option<f64>;
152 #[doc = "Change the `progress` field of this object."]
153 #[doc = ""]
154 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
155 #[wasm_bindgen(method, setter = "progress")]
156 pub fn set_progress(this: &ComputedEffectTiming, val: Option<f64>);
157}
158impl ComputedEffectTiming {
159 #[doc = "Construct a new `ComputedEffectTiming`."]
160 #[doc = ""]
161 #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
162 pub fn new() -> Self {
163 #[allow(unused_mut)]
164 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
165 ret
166 }
167 #[deprecated = "Use `set_delay()` instead."]
168 pub fn delay(&mut self, val: f64) -> &mut Self {
169 self.set_delay(val);
170 self
171 }
172 #[cfg(feature = "PlaybackDirection")]
173 #[deprecated = "Use `set_direction()` instead."]
174 pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self {
175 self.set_direction(val);
176 self
177 }
178 #[deprecated = "Use `set_duration()` instead."]
179 pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
180 self.set_duration(val);
181 self
182 }
183 #[deprecated = "Use `set_easing()` instead."]
184 pub fn easing(&mut self, val: &str) -> &mut Self {
185 self.set_easing(val);
186 self
187 }
188 #[deprecated = "Use `set_end_delay()` instead."]
189 pub fn end_delay(&mut self, val: f64) -> &mut Self {
190 self.set_end_delay(val);
191 self
192 }
193 #[cfg(feature = "FillMode")]
194 #[deprecated = "Use `set_fill()` instead."]
195 pub fn fill(&mut self, val: FillMode) -> &mut Self {
196 self.set_fill(val);
197 self
198 }
199 #[deprecated = "Use `set_iteration_start()` instead."]
200 pub fn iteration_start(&mut self, val: f64) -> &mut Self {
201 self.set_iteration_start(val);
202 self
203 }
204 #[deprecated = "Use `set_iterations()` instead."]
205 pub fn iterations(&mut self, val: f64) -> &mut Self {
206 self.set_iterations(val);
207 self
208 }
209 #[deprecated = "Use `set_active_duration()` instead."]
210 pub fn active_duration(&mut self, val: f64) -> &mut Self {
211 self.set_active_duration(val);
212 self
213 }
214 #[deprecated = "Use `set_current_iteration()` instead."]
215 pub fn current_iteration(&mut self, val: Option<f64>) -> &mut Self {
216 self.set_current_iteration(val);
217 self
218 }
219 #[deprecated = "Use `set_end_time()` instead."]
220 pub fn end_time(&mut self, val: f64) -> &mut Self {
221 self.set_end_time(val);
222 self
223 }
224 #[deprecated = "Use `set_local_time()` instead."]
225 pub fn local_time(&mut self, val: Option<f64>) -> &mut Self {
226 self.set_local_time(val);
227 self
228 }
229 #[deprecated = "Use `set_progress()` instead."]
230 pub fn progress(&mut self, val: Option<f64>) -> &mut Self {
231 self.set_progress(val);
232 self
233 }
234}
235impl Default for ComputedEffectTiming {
236 fn default() -> Self {
237 Self::new()
238 }
239}