web_sys/features/
gen_OptionalEffectTiming.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 = OptionalEffectTiming)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `OptionalEffectTiming` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"]
12 pub type OptionalEffectTiming;
13 #[doc = "Get the `delay` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"]
16 #[wasm_bindgen(method, getter = "delay")]
17 pub fn get_delay(this: &OptionalEffectTiming) -> 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: `OptionalEffectTiming`*"]
21 #[wasm_bindgen(method, setter = "delay")]
22 pub fn set_delay(this: &OptionalEffectTiming, 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: `OptionalEffectTiming`, `PlaybackDirection`*"]
27 #[wasm_bindgen(method, getter = "direction")]
28 pub fn get_direction(this: &OptionalEffectTiming) -> 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: `OptionalEffectTiming`, `PlaybackDirection`*"]
33 #[wasm_bindgen(method, setter = "direction")]
34 pub fn set_direction(this: &OptionalEffectTiming, 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: `OptionalEffectTiming`*"]
38 #[wasm_bindgen(method, getter = "duration")]
39 pub fn get_duration(this: &OptionalEffectTiming) -> ::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: `OptionalEffectTiming`*"]
43 #[wasm_bindgen(method, setter = "duration")]
44 pub fn set_duration(this: &OptionalEffectTiming, 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: `OptionalEffectTiming`*"]
48 #[wasm_bindgen(method, getter = "easing")]
49 pub fn get_easing(this: &OptionalEffectTiming) -> 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: `OptionalEffectTiming`*"]
53 #[wasm_bindgen(method, setter = "easing")]
54 pub fn set_easing(this: &OptionalEffectTiming, 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: `OptionalEffectTiming`*"]
58 #[wasm_bindgen(method, getter = "endDelay")]
59 pub fn get_end_delay(this: &OptionalEffectTiming) -> 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: `OptionalEffectTiming`*"]
63 #[wasm_bindgen(method, setter = "endDelay")]
64 pub fn set_end_delay(this: &OptionalEffectTiming, 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: `FillMode`, `OptionalEffectTiming`*"]
69 #[wasm_bindgen(method, getter = "fill")]
70 pub fn get_fill(this: &OptionalEffectTiming) -> 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: `FillMode`, `OptionalEffectTiming`*"]
75 #[wasm_bindgen(method, setter = "fill")]
76 pub fn set_fill(this: &OptionalEffectTiming, 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: `OptionalEffectTiming`*"]
80 #[wasm_bindgen(method, getter = "iterationStart")]
81 pub fn get_iteration_start(this: &OptionalEffectTiming) -> 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: `OptionalEffectTiming`*"]
85 #[wasm_bindgen(method, setter = "iterationStart")]
86 pub fn set_iteration_start(this: &OptionalEffectTiming, 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: `OptionalEffectTiming`*"]
90 #[wasm_bindgen(method, getter = "iterations")]
91 pub fn get_iterations(this: &OptionalEffectTiming) -> 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: `OptionalEffectTiming`*"]
95 #[wasm_bindgen(method, setter = "iterations")]
96 pub fn set_iterations(this: &OptionalEffectTiming, val: f64);
97}
98impl OptionalEffectTiming {
99 #[doc = "Construct a new `OptionalEffectTiming`."]
100 #[doc = ""]
101 #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"]
102 pub fn new() -> Self {
103 #[allow(unused_mut)]
104 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
105 ret
106 }
107 #[deprecated = "Use `set_delay()` instead."]
108 pub fn delay(&mut self, val: f64) -> &mut Self {
109 self.set_delay(val);
110 self
111 }
112 #[cfg(feature = "PlaybackDirection")]
113 #[deprecated = "Use `set_direction()` instead."]
114 pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self {
115 self.set_direction(val);
116 self
117 }
118 #[deprecated = "Use `set_duration()` instead."]
119 pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
120 self.set_duration(val);
121 self
122 }
123 #[deprecated = "Use `set_easing()` instead."]
124 pub fn easing(&mut self, val: &str) -> &mut Self {
125 self.set_easing(val);
126 self
127 }
128 #[deprecated = "Use `set_end_delay()` instead."]
129 pub fn end_delay(&mut self, val: f64) -> &mut Self {
130 self.set_end_delay(val);
131 self
132 }
133 #[cfg(feature = "FillMode")]
134 #[deprecated = "Use `set_fill()` instead."]
135 pub fn fill(&mut self, val: FillMode) -> &mut Self {
136 self.set_fill(val);
137 self
138 }
139 #[deprecated = "Use `set_iteration_start()` instead."]
140 pub fn iteration_start(&mut self, val: f64) -> &mut Self {
141 self.set_iteration_start(val);
142 self
143 }
144 #[deprecated = "Use `set_iterations()` instead."]
145 pub fn iterations(&mut self, val: f64) -> &mut Self {
146 self.set_iterations(val);
147 self
148 }
149}
150impl Default for OptionalEffectTiming {
151 fn default() -> Self {
152 Self::new()
153 }
154}