web_sys/features/
gen_ComputedEffectTiming.rs

1#![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 = "Get the `easing` field of this object."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
48    #[wasm_bindgen(method, getter = "easing")]
49    pub fn get_easing(this: &ComputedEffectTiming) -> Option<::alloc::string::String>;
50    #[doc = "Change the `easing` field of this object."]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
53    #[wasm_bindgen(method, setter = "easing")]
54    pub fn set_easing(this: &ComputedEffectTiming, val: &str);
55    #[doc = "Get the `endDelay` field of this object."]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
58    #[wasm_bindgen(method, getter = "endDelay")]
59    pub fn get_end_delay(this: &ComputedEffectTiming) -> Option<f64>;
60    #[doc = "Change the `endDelay` field of this object."]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
63    #[wasm_bindgen(method, setter = "endDelay")]
64    pub fn set_end_delay(this: &ComputedEffectTiming, val: f64);
65    #[cfg(feature = "FillMode")]
66    #[doc = "Get the `fill` field of this object."]
67    #[doc = ""]
68    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `FillMode`*"]
69    #[wasm_bindgen(method, getter = "fill")]
70    pub fn get_fill(this: &ComputedEffectTiming) -> Option<FillMode>;
71    #[cfg(feature = "FillMode")]
72    #[doc = "Change the `fill` field of this object."]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `FillMode`*"]
75    #[wasm_bindgen(method, setter = "fill")]
76    pub fn set_fill(this: &ComputedEffectTiming, val: FillMode);
77    #[doc = "Get the `iterationStart` field of this object."]
78    #[doc = ""]
79    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
80    #[wasm_bindgen(method, getter = "iterationStart")]
81    pub fn get_iteration_start(this: &ComputedEffectTiming) -> Option<f64>;
82    #[doc = "Change the `iterationStart` field of this object."]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
85    #[wasm_bindgen(method, setter = "iterationStart")]
86    pub fn set_iteration_start(this: &ComputedEffectTiming, val: f64);
87    #[doc = "Get the `iterations` field of this object."]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
90    #[wasm_bindgen(method, getter = "iterations")]
91    pub fn get_iterations(this: &ComputedEffectTiming) -> Option<f64>;
92    #[doc = "Change the `iterations` field of this object."]
93    #[doc = ""]
94    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
95    #[wasm_bindgen(method, setter = "iterations")]
96    pub fn set_iterations(this: &ComputedEffectTiming, val: f64);
97    #[doc = "Get the `activeDuration` field of this object."]
98    #[doc = ""]
99    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
100    #[wasm_bindgen(method, getter = "activeDuration")]
101    pub fn get_active_duration(this: &ComputedEffectTiming) -> Option<f64>;
102    #[doc = "Change the `activeDuration` field of this object."]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
105    #[wasm_bindgen(method, setter = "activeDuration")]
106    pub fn set_active_duration(this: &ComputedEffectTiming, val: f64);
107    #[doc = "Get the `currentIteration` field of this object."]
108    #[doc = ""]
109    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
110    #[wasm_bindgen(method, getter = "currentIteration")]
111    pub fn get_current_iteration(this: &ComputedEffectTiming) -> Option<f64>;
112    #[doc = "Change the `currentIteration` field of this object."]
113    #[doc = ""]
114    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
115    #[wasm_bindgen(method, setter = "currentIteration")]
116    pub fn set_current_iteration(this: &ComputedEffectTiming, val: Option<f64>);
117    #[doc = "Get the `endTime` field of this object."]
118    #[doc = ""]
119    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
120    #[wasm_bindgen(method, getter = "endTime")]
121    pub fn get_end_time(this: &ComputedEffectTiming) -> Option<f64>;
122    #[doc = "Change the `endTime` field of this object."]
123    #[doc = ""]
124    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
125    #[wasm_bindgen(method, setter = "endTime")]
126    pub fn set_end_time(this: &ComputedEffectTiming, val: f64);
127    #[doc = "Get the `localTime` field of this object."]
128    #[doc = ""]
129    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
130    #[wasm_bindgen(method, getter = "localTime")]
131    pub fn get_local_time(this: &ComputedEffectTiming) -> Option<f64>;
132    #[doc = "Change the `localTime` field of this object."]
133    #[doc = ""]
134    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
135    #[wasm_bindgen(method, setter = "localTime")]
136    pub fn set_local_time(this: &ComputedEffectTiming, val: Option<f64>);
137    #[doc = "Get the `progress` field of this object."]
138    #[doc = ""]
139    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
140    #[wasm_bindgen(method, getter = "progress")]
141    pub fn get_progress(this: &ComputedEffectTiming) -> Option<f64>;
142    #[doc = "Change the `progress` field of this object."]
143    #[doc = ""]
144    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
145    #[wasm_bindgen(method, setter = "progress")]
146    pub fn set_progress(this: &ComputedEffectTiming, val: Option<f64>);
147}
148impl ComputedEffectTiming {
149    #[doc = "Construct a new `ComputedEffectTiming`."]
150    #[doc = ""]
151    #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
152    pub fn new() -> Self {
153        #[allow(unused_mut)]
154        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
155        ret
156    }
157    #[deprecated = "Use `set_delay()` instead."]
158    pub fn delay(&mut self, val: f64) -> &mut Self {
159        self.set_delay(val);
160        self
161    }
162    #[cfg(feature = "PlaybackDirection")]
163    #[deprecated = "Use `set_direction()` instead."]
164    pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self {
165        self.set_direction(val);
166        self
167    }
168    #[deprecated = "Use `set_duration()` instead."]
169    pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
170        self.set_duration(val);
171        self
172    }
173    #[deprecated = "Use `set_easing()` instead."]
174    pub fn easing(&mut self, val: &str) -> &mut Self {
175        self.set_easing(val);
176        self
177    }
178    #[deprecated = "Use `set_end_delay()` instead."]
179    pub fn end_delay(&mut self, val: f64) -> &mut Self {
180        self.set_end_delay(val);
181        self
182    }
183    #[cfg(feature = "FillMode")]
184    #[deprecated = "Use `set_fill()` instead."]
185    pub fn fill(&mut self, val: FillMode) -> &mut Self {
186        self.set_fill(val);
187        self
188    }
189    #[deprecated = "Use `set_iteration_start()` instead."]
190    pub fn iteration_start(&mut self, val: f64) -> &mut Self {
191        self.set_iteration_start(val);
192        self
193    }
194    #[deprecated = "Use `set_iterations()` instead."]
195    pub fn iterations(&mut self, val: f64) -> &mut Self {
196        self.set_iterations(val);
197        self
198    }
199    #[deprecated = "Use `set_active_duration()` instead."]
200    pub fn active_duration(&mut self, val: f64) -> &mut Self {
201        self.set_active_duration(val);
202        self
203    }
204    #[deprecated = "Use `set_current_iteration()` instead."]
205    pub fn current_iteration(&mut self, val: Option<f64>) -> &mut Self {
206        self.set_current_iteration(val);
207        self
208    }
209    #[deprecated = "Use `set_end_time()` instead."]
210    pub fn end_time(&mut self, val: f64) -> &mut Self {
211        self.set_end_time(val);
212        self
213    }
214    #[deprecated = "Use `set_local_time()` instead."]
215    pub fn local_time(&mut self, val: Option<f64>) -> &mut Self {
216        self.set_local_time(val);
217        self
218    }
219    #[deprecated = "Use `set_progress()` instead."]
220    pub fn progress(&mut self, val: Option<f64>) -> &mut Self {
221        self.set_progress(val);
222        self
223    }
224}
225impl Default for ComputedEffectTiming {
226    fn default() -> Self {
227        Self::new()
228    }
229}