diff options
Diffstat (limited to 'vendor/web-sys/src/features/gen_AnimationPropertyValueDetails.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_AnimationPropertyValueDetails.rs | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_AnimationPropertyValueDetails.rs b/vendor/web-sys/src/features/gen_AnimationPropertyValueDetails.rs new file mode 100644 index 000000000..71b218c37 --- /dev/null +++ b/vendor/web-sys/src/features/gen_AnimationPropertyValueDetails.rs @@ -0,0 +1,84 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPropertyValueDetails)] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnimationPropertyValueDetails` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] + pub type AnimationPropertyValueDetails; +} +impl AnimationPropertyValueDetails { + #[cfg(feature = "CompositeOperation")] + #[doc = "Construct a new `AnimationPropertyValueDetails`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"] + pub fn new(composite: CompositeOperation, offset: f64) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.composite(composite); + ret.offset(offset); + ret + } + #[cfg(feature = "CompositeOperation")] + #[doc = "Change the `composite` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"] + pub fn composite(&mut self, val: CompositeOperation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composite"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `easing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] + pub fn easing(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] + pub fn offset(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] + pub fn value(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} |