1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 #[cfg(feature = "UI_Composition_Core")] 3 pub mod Core; 4 #[cfg(feature = "UI_Composition_Desktop")] 5 pub mod Desktop; 6 #[cfg(feature = "UI_Composition_Diagnostics")] 7 pub mod Diagnostics; 8 #[cfg(feature = "UI_Composition_Effects")] 9 pub mod Effects; 10 #[cfg(feature = "UI_Composition_Interactions")] 11 pub mod Interactions; 12 #[cfg(feature = "UI_Composition_Scenes")] 13 pub mod Scenes; 14 #[repr(transparent)] 15 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 16 pub struct AmbientLight(::windows::runtime::IInspectable); 17 impl AmbientLight { Color(&self) -> ::windows::runtime::Result<super::Color>18 pub fn Color(&self) -> ::windows::runtime::Result<super::Color> { 19 let this = self; 20 unsafe { 21 let mut result__: super::Color = ::std::mem::zeroed(); 22 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Color>(result__) 23 } 24 } SetColor<'a, Param0: ::windows::runtime::IntoParam<'a, super::Color>>(&self, value: Param0) -> ::windows::runtime::Result<()>25 pub fn SetColor<'a, Param0: ::windows::runtime::IntoParam<'a, super::Color>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 26 let this = self; 27 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 28 } Intensity(&self) -> ::windows::runtime::Result<f32>29 pub fn Intensity(&self) -> ::windows::runtime::Result<f32> { 30 let this = &::windows::runtime::Interface::cast::<IAmbientLight2>(self)?; 31 unsafe { 32 let mut result__: f32 = ::std::mem::zeroed(); 33 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 34 } 35 } SetIntensity(&self, value: f32) -> ::windows::runtime::Result<()>36 pub fn SetIntensity(&self, value: f32) -> ::windows::runtime::Result<()> { 37 let this = &::windows::runtime::Interface::cast::<IAmbientLight2>(self)?; 38 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 39 } 40 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>41 pub fn Close(&self) -> ::windows::runtime::Result<()> { 42 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 43 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 44 } Compositor(&self) -> ::windows::runtime::Result<Compositor>45 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 46 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 47 unsafe { 48 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 49 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 50 } 51 } 52 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>53 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 54 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 55 unsafe { 56 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 57 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 58 } 59 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>60 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 61 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 62 unsafe { 63 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 64 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 65 } 66 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>67 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 68 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 69 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 70 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>71 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 72 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 73 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 74 } Targets(&self) -> ::windows::runtime::Result<VisualUnorderedCollection>75 pub fn Targets(&self) -> ::windows::runtime::Result<VisualUnorderedCollection> { 76 let this = &::windows::runtime::Interface::cast::<ICompositionLight>(self)?; 77 unsafe { 78 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 79 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<VisualUnorderedCollection>(result__) 80 } 81 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>82 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 83 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 84 unsafe { 85 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 86 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 87 } 88 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>89 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 90 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 91 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 92 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>93 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 94 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 95 unsafe { 96 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 97 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 98 } 99 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>100 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 101 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 102 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 103 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>104 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 105 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 106 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 107 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>108 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 109 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 110 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 111 } ExclusionsFromTargets(&self) -> ::windows::runtime::Result<VisualUnorderedCollection>112 pub fn ExclusionsFromTargets(&self) -> ::windows::runtime::Result<VisualUnorderedCollection> { 113 let this = &::windows::runtime::Interface::cast::<ICompositionLight2>(self)?; 114 unsafe { 115 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 116 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<VisualUnorderedCollection>(result__) 117 } 118 } 119 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>120 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 121 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 122 unsafe { 123 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 124 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 125 } 126 } IsEnabled(&self) -> ::windows::runtime::Result<bool>127 pub fn IsEnabled(&self) -> ::windows::runtime::Result<bool> { 128 let this = &::windows::runtime::Interface::cast::<ICompositionLight3>(self)?; 129 unsafe { 130 let mut result__: bool = ::std::mem::zeroed(); 131 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 132 } 133 } SetIsEnabled(&self, value: bool) -> ::windows::runtime::Result<()>134 pub fn SetIsEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 135 let this = &::windows::runtime::Interface::cast::<ICompositionLight3>(self)?; 136 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 137 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>138 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 139 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 140 unsafe { 141 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 142 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 143 } 144 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>145 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 146 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 147 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 148 } 149 } 150 unsafe impl ::windows::runtime::RuntimeType for AmbientLight { 151 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.AmbientLight;{a48130a1-b7c4-46f7-b9bf-daf43a44e6ee})"); 152 } 153 unsafe impl ::windows::runtime::Interface for AmbientLight { 154 type Vtable = IAmbientLight_abi; 155 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2759930017, 47044, 18167, [185, 191, 218, 244, 58, 68, 230, 238]); 156 } 157 impl ::windows::runtime::RuntimeName for AmbientLight { 158 const NAME: &'static str = "Windows.UI.Composition.AmbientLight"; 159 } 160 impl ::std::convert::From<AmbientLight> for ::windows::runtime::IUnknown { from(value: AmbientLight) -> Self161 fn from(value: AmbientLight) -> Self { 162 unsafe { ::std::mem::transmute(value) } 163 } 164 } 165 impl ::std::convert::From<&AmbientLight> for ::windows::runtime::IUnknown { from(value: &AmbientLight) -> Self166 fn from(value: &AmbientLight) -> Self { 167 ::std::convert::From::from(::std::clone::Clone::clone(value)) 168 } 169 } 170 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>171 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 172 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 173 } 174 } 175 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>176 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 177 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 178 } 179 } 180 impl ::std::convert::From<AmbientLight> for ::windows::runtime::IInspectable { from(value: AmbientLight) -> Self181 fn from(value: AmbientLight) -> Self { 182 value.0 183 } 184 } 185 impl ::std::convert::From<&AmbientLight> for ::windows::runtime::IInspectable { from(value: &AmbientLight) -> Self186 fn from(value: &AmbientLight) -> Self { 187 value.0.clone() 188 } 189 } 190 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>191 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 192 ::windows::runtime::Param::Owned(self.0) 193 } 194 } 195 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>196 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 197 ::windows::runtime::Param::Borrowed(&self.0) 198 } 199 } 200 #[cfg(feature = "Foundation")] 201 impl ::std::convert::TryFrom<AmbientLight> for super::super::Foundation::IClosable { 202 type Error = ::windows::runtime::Error; try_from(value: AmbientLight) -> ::windows::runtime::Result<Self>203 fn try_from(value: AmbientLight) -> ::windows::runtime::Result<Self> { 204 ::std::convert::TryFrom::try_from(&value) 205 } 206 } 207 #[cfg(feature = "Foundation")] 208 impl ::std::convert::TryFrom<&AmbientLight> for super::super::Foundation::IClosable { 209 type Error = ::windows::runtime::Error; try_from(value: &AmbientLight) -> ::windows::runtime::Result<Self>210 fn try_from(value: &AmbientLight) -> ::windows::runtime::Result<Self> { 211 ::windows::runtime::Interface::cast(value) 212 } 213 } 214 #[cfg(feature = "Foundation")] 215 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>216 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 217 ::windows::runtime::IntoParam::into_param(&self) 218 } 219 } 220 #[cfg(feature = "Foundation")] 221 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>222 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 223 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 224 } 225 } 226 impl ::std::convert::TryFrom<AmbientLight> for IAnimationObject { 227 type Error = ::windows::runtime::Error; try_from(value: AmbientLight) -> ::windows::runtime::Result<Self>228 fn try_from(value: AmbientLight) -> ::windows::runtime::Result<Self> { 229 ::std::convert::TryFrom::try_from(&value) 230 } 231 } 232 impl ::std::convert::TryFrom<&AmbientLight> for IAnimationObject { 233 type Error = ::windows::runtime::Error; try_from(value: &AmbientLight) -> ::windows::runtime::Result<Self>234 fn try_from(value: &AmbientLight) -> ::windows::runtime::Result<Self> { 235 ::windows::runtime::Interface::cast(value) 236 } 237 } 238 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>239 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 240 ::windows::runtime::IntoParam::into_param(&self) 241 } 242 } 243 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>244 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 245 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 246 } 247 } 248 impl ::std::convert::From<AmbientLight> for CompositionLight { from(value: AmbientLight) -> Self249 fn from(value: AmbientLight) -> Self { 250 ::std::convert::Into::<CompositionLight>::into(&value) 251 } 252 } 253 impl ::std::convert::From<&AmbientLight> for CompositionLight { from(value: &AmbientLight) -> Self254 fn from(value: &AmbientLight) -> Self { 255 ::windows::runtime::Interface::cast(value).unwrap() 256 } 257 } 258 impl<'a> ::windows::runtime::IntoParam<'a, CompositionLight> for AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, CompositionLight>259 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionLight> { 260 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionLight>::into(self)) 261 } 262 } 263 impl<'a> ::windows::runtime::IntoParam<'a, CompositionLight> for &AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, CompositionLight>264 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionLight> { 265 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionLight>::into(::std::clone::Clone::clone(self))) 266 } 267 } 268 impl ::std::convert::From<AmbientLight> for CompositionObject { from(value: AmbientLight) -> Self269 fn from(value: AmbientLight) -> Self { 270 ::std::convert::Into::<CompositionObject>::into(&value) 271 } 272 } 273 impl ::std::convert::From<&AmbientLight> for CompositionObject { from(value: &AmbientLight) -> Self274 fn from(value: &AmbientLight) -> Self { 275 ::windows::runtime::Interface::cast(value).unwrap() 276 } 277 } 278 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>279 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 280 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 281 } 282 } 283 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &AmbientLight { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>284 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 285 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 286 } 287 } 288 unsafe impl ::std::marker::Send for AmbientLight {} 289 unsafe impl ::std::marker::Sync for AmbientLight {} 290 #[repr(transparent)] 291 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 292 pub struct AnimationController(::windows::runtime::IInspectable); 293 impl AnimationController { PlaybackRate(&self) -> ::windows::runtime::Result<f32>294 pub fn PlaybackRate(&self) -> ::windows::runtime::Result<f32> { 295 let this = self; 296 unsafe { 297 let mut result__: f32 = ::std::mem::zeroed(); 298 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 299 } 300 } SetPlaybackRate(&self, value: f32) -> ::windows::runtime::Result<()>301 pub fn SetPlaybackRate(&self, value: f32) -> ::windows::runtime::Result<()> { 302 let this = self; 303 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 304 } Progress(&self) -> ::windows::runtime::Result<f32>305 pub fn Progress(&self) -> ::windows::runtime::Result<f32> { 306 let this = self; 307 unsafe { 308 let mut result__: f32 = ::std::mem::zeroed(); 309 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 310 } 311 } SetProgress(&self, value: f32) -> ::windows::runtime::Result<()>312 pub fn SetProgress(&self, value: f32) -> ::windows::runtime::Result<()> { 313 let this = self; 314 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 315 } ProgressBehavior(&self) -> ::windows::runtime::Result<AnimationControllerProgressBehavior>316 pub fn ProgressBehavior(&self) -> ::windows::runtime::Result<AnimationControllerProgressBehavior> { 317 let this = self; 318 unsafe { 319 let mut result__: AnimationControllerProgressBehavior = ::std::mem::zeroed(); 320 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationControllerProgressBehavior>(result__) 321 } 322 } SetProgressBehavior(&self, value: AnimationControllerProgressBehavior) -> ::windows::runtime::Result<()>323 pub fn SetProgressBehavior(&self, value: AnimationControllerProgressBehavior) -> ::windows::runtime::Result<()> { 324 let this = self; 325 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 326 } Pause(&self) -> ::windows::runtime::Result<()>327 pub fn Pause(&self) -> ::windows::runtime::Result<()> { 328 let this = self; 329 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this)).ok() } 330 } Resume(&self) -> ::windows::runtime::Result<()>331 pub fn Resume(&self) -> ::windows::runtime::Result<()> { 332 let this = self; 333 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this)).ok() } 334 } MaxPlaybackRate() -> ::windows::runtime::Result<f32>335 pub fn MaxPlaybackRate() -> ::windows::runtime::Result<f32> { 336 Self::IAnimationControllerStatics(|this| unsafe { 337 let mut result__: f32 = ::std::mem::zeroed(); 338 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 339 }) 340 } MinPlaybackRate() -> ::windows::runtime::Result<f32>341 pub fn MinPlaybackRate() -> ::windows::runtime::Result<f32> { 342 Self::IAnimationControllerStatics(|this| unsafe { 343 let mut result__: f32 = ::std::mem::zeroed(); 344 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 345 }) 346 } 347 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>348 pub fn Close(&self) -> ::windows::runtime::Result<()> { 349 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 350 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 351 } Compositor(&self) -> ::windows::runtime::Result<Compositor>352 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 353 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 354 unsafe { 355 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 356 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 357 } 358 } 359 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>360 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 361 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 362 unsafe { 363 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 364 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 365 } 366 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>367 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 368 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 369 unsafe { 370 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 371 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 372 } 373 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>374 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 375 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 376 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 377 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>378 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 379 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 380 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 381 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>382 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 383 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 384 unsafe { 385 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 386 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 387 } 388 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>389 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 390 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 391 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 392 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>393 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 394 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 395 unsafe { 396 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 397 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 398 } 399 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>400 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 401 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 402 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 403 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>404 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 405 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 406 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 407 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>408 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 409 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 410 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 411 } 412 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>413 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 414 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 415 unsafe { 416 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 417 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 418 } 419 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>420 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 421 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 422 unsafe { 423 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 424 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 425 } 426 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>427 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 428 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 429 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 430 } IAnimationControllerStatics<R, F: FnOnce(&IAnimationControllerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>431 pub fn IAnimationControllerStatics<R, F: FnOnce(&IAnimationControllerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 432 static mut SHARED: ::windows::runtime::FactoryCache<AnimationController, IAnimationControllerStatics> = ::windows::runtime::FactoryCache::new(); 433 unsafe { SHARED.call(callback) } 434 } 435 } 436 unsafe impl ::windows::runtime::RuntimeType for AnimationController { 437 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.AnimationController;{c934efd2-0722-4f5f-a4e2-9510f3d43bf7})"); 438 } 439 unsafe impl ::windows::runtime::Interface for AnimationController { 440 type Vtable = IAnimationController_abi; 441 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3375689682, 1826, 20319, [164, 226, 149, 16, 243, 212, 59, 247]); 442 } 443 impl ::windows::runtime::RuntimeName for AnimationController { 444 const NAME: &'static str = "Windows.UI.Composition.AnimationController"; 445 } 446 impl ::std::convert::From<AnimationController> for ::windows::runtime::IUnknown { from(value: AnimationController) -> Self447 fn from(value: AnimationController) -> Self { 448 unsafe { ::std::mem::transmute(value) } 449 } 450 } 451 impl ::std::convert::From<&AnimationController> for ::windows::runtime::IUnknown { from(value: &AnimationController) -> Self452 fn from(value: &AnimationController) -> Self { 453 ::std::convert::From::from(::std::clone::Clone::clone(value)) 454 } 455 } 456 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for AnimationController { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>457 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 458 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 459 } 460 } 461 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &AnimationController { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>462 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 463 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 464 } 465 } 466 impl ::std::convert::From<AnimationController> for ::windows::runtime::IInspectable { from(value: AnimationController) -> Self467 fn from(value: AnimationController) -> Self { 468 value.0 469 } 470 } 471 impl ::std::convert::From<&AnimationController> for ::windows::runtime::IInspectable { from(value: &AnimationController) -> Self472 fn from(value: &AnimationController) -> Self { 473 value.0.clone() 474 } 475 } 476 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for AnimationController { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>477 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 478 ::windows::runtime::Param::Owned(self.0) 479 } 480 } 481 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a AnimationController { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>482 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 483 ::windows::runtime::Param::Borrowed(&self.0) 484 } 485 } 486 #[cfg(feature = "Foundation")] 487 impl ::std::convert::TryFrom<AnimationController> for super::super::Foundation::IClosable { 488 type Error = ::windows::runtime::Error; try_from(value: AnimationController) -> ::windows::runtime::Result<Self>489 fn try_from(value: AnimationController) -> ::windows::runtime::Result<Self> { 490 ::std::convert::TryFrom::try_from(&value) 491 } 492 } 493 #[cfg(feature = "Foundation")] 494 impl ::std::convert::TryFrom<&AnimationController> for super::super::Foundation::IClosable { 495 type Error = ::windows::runtime::Error; try_from(value: &AnimationController) -> ::windows::runtime::Result<Self>496 fn try_from(value: &AnimationController) -> ::windows::runtime::Result<Self> { 497 ::windows::runtime::Interface::cast(value) 498 } 499 } 500 #[cfg(feature = "Foundation")] 501 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for AnimationController { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>502 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 503 ::windows::runtime::IntoParam::into_param(&self) 504 } 505 } 506 #[cfg(feature = "Foundation")] 507 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &AnimationController { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>508 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 509 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 510 } 511 } 512 impl ::std::convert::TryFrom<AnimationController> for IAnimationObject { 513 type Error = ::windows::runtime::Error; try_from(value: AnimationController) -> ::windows::runtime::Result<Self>514 fn try_from(value: AnimationController) -> ::windows::runtime::Result<Self> { 515 ::std::convert::TryFrom::try_from(&value) 516 } 517 } 518 impl ::std::convert::TryFrom<&AnimationController> for IAnimationObject { 519 type Error = ::windows::runtime::Error; try_from(value: &AnimationController) -> ::windows::runtime::Result<Self>520 fn try_from(value: &AnimationController) -> ::windows::runtime::Result<Self> { 521 ::windows::runtime::Interface::cast(value) 522 } 523 } 524 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for AnimationController { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>525 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 526 ::windows::runtime::IntoParam::into_param(&self) 527 } 528 } 529 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &AnimationController { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>530 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 531 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 532 } 533 } 534 impl ::std::convert::From<AnimationController> for CompositionObject { from(value: AnimationController) -> Self535 fn from(value: AnimationController) -> Self { 536 ::std::convert::Into::<CompositionObject>::into(&value) 537 } 538 } 539 impl ::std::convert::From<&AnimationController> for CompositionObject { from(value: &AnimationController) -> Self540 fn from(value: &AnimationController) -> Self { 541 ::windows::runtime::Interface::cast(value).unwrap() 542 } 543 } 544 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for AnimationController { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>545 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 546 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 547 } 548 } 549 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &AnimationController { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>550 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 551 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 552 } 553 } 554 unsafe impl ::std::marker::Send for AnimationController {} 555 unsafe impl ::std::marker::Sync for AnimationController {} 556 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 557 #[repr(transparent)] 558 pub struct AnimationControllerProgressBehavior(pub i32); 559 impl AnimationControllerProgressBehavior { 560 pub const Default: AnimationControllerProgressBehavior = AnimationControllerProgressBehavior(0i32); 561 pub const IncludesDelayTime: AnimationControllerProgressBehavior = AnimationControllerProgressBehavior(1i32); 562 } 563 impl ::std::convert::From<i32> for AnimationControllerProgressBehavior { from(value: i32) -> Self564 fn from(value: i32) -> Self { 565 Self(value) 566 } 567 } 568 unsafe impl ::windows::runtime::Abi for AnimationControllerProgressBehavior { 569 type Abi = Self; 570 type DefaultType = Self; 571 } 572 unsafe impl ::windows::runtime::RuntimeType for AnimationControllerProgressBehavior { 573 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Composition.AnimationControllerProgressBehavior;i4)"); 574 } 575 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 576 #[repr(transparent)] 577 pub struct AnimationDelayBehavior(pub i32); 578 impl AnimationDelayBehavior { 579 pub const SetInitialValueAfterDelay: AnimationDelayBehavior = AnimationDelayBehavior(0i32); 580 pub const SetInitialValueBeforeDelay: AnimationDelayBehavior = AnimationDelayBehavior(1i32); 581 } 582 impl ::std::convert::From<i32> for AnimationDelayBehavior { from(value: i32) -> Self583 fn from(value: i32) -> Self { 584 Self(value) 585 } 586 } 587 unsafe impl ::windows::runtime::Abi for AnimationDelayBehavior { 588 type Abi = Self; 589 type DefaultType = Self; 590 } 591 unsafe impl ::windows::runtime::RuntimeType for AnimationDelayBehavior { 592 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Composition.AnimationDelayBehavior;i4)"); 593 } 594 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 595 #[repr(transparent)] 596 pub struct AnimationDirection(pub i32); 597 impl AnimationDirection { 598 pub const Normal: AnimationDirection = AnimationDirection(0i32); 599 pub const Reverse: AnimationDirection = AnimationDirection(1i32); 600 pub const Alternate: AnimationDirection = AnimationDirection(2i32); 601 pub const AlternateReverse: AnimationDirection = AnimationDirection(3i32); 602 } 603 impl ::std::convert::From<i32> for AnimationDirection { from(value: i32) -> Self604 fn from(value: i32) -> Self { 605 Self(value) 606 } 607 } 608 unsafe impl ::windows::runtime::Abi for AnimationDirection { 609 type Abi = Self; 610 type DefaultType = Self; 611 } 612 unsafe impl ::windows::runtime::RuntimeType for AnimationDirection { 613 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Composition.AnimationDirection;i4)"); 614 } 615 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 616 #[repr(transparent)] 617 pub struct AnimationIterationBehavior(pub i32); 618 impl AnimationIterationBehavior { 619 pub const Count: AnimationIterationBehavior = AnimationIterationBehavior(0i32); 620 pub const Forever: AnimationIterationBehavior = AnimationIterationBehavior(1i32); 621 } 622 impl ::std::convert::From<i32> for AnimationIterationBehavior { from(value: i32) -> Self623 fn from(value: i32) -> Self { 624 Self(value) 625 } 626 } 627 unsafe impl ::windows::runtime::Abi for AnimationIterationBehavior { 628 type Abi = Self; 629 type DefaultType = Self; 630 } 631 unsafe impl ::windows::runtime::RuntimeType for AnimationIterationBehavior { 632 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Composition.AnimationIterationBehavior;i4)"); 633 } 634 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 635 #[repr(transparent)] 636 pub struct AnimationPropertyAccessMode(pub i32); 637 impl AnimationPropertyAccessMode { 638 pub const None: AnimationPropertyAccessMode = AnimationPropertyAccessMode(0i32); 639 pub const ReadOnly: AnimationPropertyAccessMode = AnimationPropertyAccessMode(1i32); 640 pub const WriteOnly: AnimationPropertyAccessMode = AnimationPropertyAccessMode(2i32); 641 pub const ReadWrite: AnimationPropertyAccessMode = AnimationPropertyAccessMode(3i32); 642 } 643 impl ::std::convert::From<i32> for AnimationPropertyAccessMode { from(value: i32) -> Self644 fn from(value: i32) -> Self { 645 Self(value) 646 } 647 } 648 unsafe impl ::windows::runtime::Abi for AnimationPropertyAccessMode { 649 type Abi = Self; 650 type DefaultType = Self; 651 } 652 unsafe impl ::windows::runtime::RuntimeType for AnimationPropertyAccessMode { 653 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Composition.AnimationPropertyAccessMode;i4)"); 654 } 655 #[repr(transparent)] 656 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 657 pub struct AnimationPropertyInfo(::windows::runtime::IInspectable); 658 impl AnimationPropertyInfo { AccessMode(&self) -> ::windows::runtime::Result<AnimationPropertyAccessMode>659 pub fn AccessMode(&self) -> ::windows::runtime::Result<AnimationPropertyAccessMode> { 660 let this = self; 661 unsafe { 662 let mut result__: AnimationPropertyAccessMode = ::std::mem::zeroed(); 663 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationPropertyAccessMode>(result__) 664 } 665 } SetAccessMode(&self, value: AnimationPropertyAccessMode) -> ::windows::runtime::Result<()>666 pub fn SetAccessMode(&self, value: AnimationPropertyAccessMode) -> ::windows::runtime::Result<()> { 667 let this = self; 668 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 669 } GetResolvedCompositionObject(&self) -> ::windows::runtime::Result<CompositionObject>670 pub fn GetResolvedCompositionObject(&self) -> ::windows::runtime::Result<CompositionObject> { 671 let this = &::windows::runtime::Interface::cast::<IAnimationPropertyInfo2>(self)?; 672 unsafe { 673 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 674 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionObject>(result__) 675 } 676 } GetResolvedCompositionObjectProperty(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>677 pub fn GetResolvedCompositionObjectProperty(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 678 let this = &::windows::runtime::Interface::cast::<IAnimationPropertyInfo2>(self)?; 679 unsafe { 680 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 681 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 682 } 683 } 684 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>685 pub fn Close(&self) -> ::windows::runtime::Result<()> { 686 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 687 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 688 } Compositor(&self) -> ::windows::runtime::Result<Compositor>689 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 690 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 691 unsafe { 692 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 693 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 694 } 695 } 696 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>697 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 698 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 699 unsafe { 700 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 701 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 702 } 703 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>704 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 705 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 706 unsafe { 707 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 708 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 709 } 710 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>711 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 712 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 713 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 714 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>715 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 716 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 717 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 718 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>719 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 720 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 721 unsafe { 722 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 723 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 724 } 725 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>726 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 727 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 728 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 729 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>730 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 731 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 732 unsafe { 733 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 734 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 735 } 736 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>737 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 738 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 739 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 740 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>741 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 742 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 743 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 744 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>745 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 746 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 747 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 748 } 749 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>750 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 751 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 752 unsafe { 753 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 754 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 755 } 756 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>757 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 758 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 759 unsafe { 760 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 761 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 762 } 763 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>764 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 765 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 766 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 767 } 768 } 769 unsafe impl ::windows::runtime::RuntimeType for AnimationPropertyInfo { 770 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.AnimationPropertyInfo;{f4716f05-ed77-4e3c-b328-5c3985b3738f})"); 771 } 772 unsafe impl ::windows::runtime::Interface for AnimationPropertyInfo { 773 type Vtable = IAnimationPropertyInfo_abi; 774 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4101074693, 60791, 20028, [179, 40, 92, 57, 133, 179, 115, 143]); 775 } 776 impl ::windows::runtime::RuntimeName for AnimationPropertyInfo { 777 const NAME: &'static str = "Windows.UI.Composition.AnimationPropertyInfo"; 778 } 779 impl ::std::convert::From<AnimationPropertyInfo> for ::windows::runtime::IUnknown { from(value: AnimationPropertyInfo) -> Self780 fn from(value: AnimationPropertyInfo) -> Self { 781 unsafe { ::std::mem::transmute(value) } 782 } 783 } 784 impl ::std::convert::From<&AnimationPropertyInfo> for ::windows::runtime::IUnknown { from(value: &AnimationPropertyInfo) -> Self785 fn from(value: &AnimationPropertyInfo) -> Self { 786 ::std::convert::From::from(::std::clone::Clone::clone(value)) 787 } 788 } 789 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>790 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 791 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 792 } 793 } 794 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>795 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 796 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 797 } 798 } 799 impl ::std::convert::From<AnimationPropertyInfo> for ::windows::runtime::IInspectable { from(value: AnimationPropertyInfo) -> Self800 fn from(value: AnimationPropertyInfo) -> Self { 801 value.0 802 } 803 } 804 impl ::std::convert::From<&AnimationPropertyInfo> for ::windows::runtime::IInspectable { from(value: &AnimationPropertyInfo) -> Self805 fn from(value: &AnimationPropertyInfo) -> Self { 806 value.0.clone() 807 } 808 } 809 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>810 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 811 ::windows::runtime::Param::Owned(self.0) 812 } 813 } 814 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>815 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 816 ::windows::runtime::Param::Borrowed(&self.0) 817 } 818 } 819 #[cfg(feature = "Foundation")] 820 impl ::std::convert::TryFrom<AnimationPropertyInfo> for super::super::Foundation::IClosable { 821 type Error = ::windows::runtime::Error; try_from(value: AnimationPropertyInfo) -> ::windows::runtime::Result<Self>822 fn try_from(value: AnimationPropertyInfo) -> ::windows::runtime::Result<Self> { 823 ::std::convert::TryFrom::try_from(&value) 824 } 825 } 826 #[cfg(feature = "Foundation")] 827 impl ::std::convert::TryFrom<&AnimationPropertyInfo> for super::super::Foundation::IClosable { 828 type Error = ::windows::runtime::Error; try_from(value: &AnimationPropertyInfo) -> ::windows::runtime::Result<Self>829 fn try_from(value: &AnimationPropertyInfo) -> ::windows::runtime::Result<Self> { 830 ::windows::runtime::Interface::cast(value) 831 } 832 } 833 #[cfg(feature = "Foundation")] 834 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>835 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 836 ::windows::runtime::IntoParam::into_param(&self) 837 } 838 } 839 #[cfg(feature = "Foundation")] 840 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>841 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 842 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 843 } 844 } 845 impl ::std::convert::TryFrom<AnimationPropertyInfo> for IAnimationObject { 846 type Error = ::windows::runtime::Error; try_from(value: AnimationPropertyInfo) -> ::windows::runtime::Result<Self>847 fn try_from(value: AnimationPropertyInfo) -> ::windows::runtime::Result<Self> { 848 ::std::convert::TryFrom::try_from(&value) 849 } 850 } 851 impl ::std::convert::TryFrom<&AnimationPropertyInfo> for IAnimationObject { 852 type Error = ::windows::runtime::Error; try_from(value: &AnimationPropertyInfo) -> ::windows::runtime::Result<Self>853 fn try_from(value: &AnimationPropertyInfo) -> ::windows::runtime::Result<Self> { 854 ::windows::runtime::Interface::cast(value) 855 } 856 } 857 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>858 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 859 ::windows::runtime::IntoParam::into_param(&self) 860 } 861 } 862 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>863 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 864 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 865 } 866 } 867 impl ::std::convert::From<AnimationPropertyInfo> for CompositionObject { from(value: AnimationPropertyInfo) -> Self868 fn from(value: AnimationPropertyInfo) -> Self { 869 ::std::convert::Into::<CompositionObject>::into(&value) 870 } 871 } 872 impl ::std::convert::From<&AnimationPropertyInfo> for CompositionObject { from(value: &AnimationPropertyInfo) -> Self873 fn from(value: &AnimationPropertyInfo) -> Self { 874 ::windows::runtime::Interface::cast(value).unwrap() 875 } 876 } 877 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>878 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 879 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 880 } 881 } 882 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &AnimationPropertyInfo { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>883 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 884 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 885 } 886 } 887 unsafe impl ::std::marker::Send for AnimationPropertyInfo {} 888 unsafe impl ::std::marker::Sync for AnimationPropertyInfo {} 889 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 890 #[repr(transparent)] 891 pub struct AnimationStopBehavior(pub i32); 892 impl AnimationStopBehavior { 893 pub const LeaveCurrentValue: AnimationStopBehavior = AnimationStopBehavior(0i32); 894 pub const SetToInitialValue: AnimationStopBehavior = AnimationStopBehavior(1i32); 895 pub const SetToFinalValue: AnimationStopBehavior = AnimationStopBehavior(2i32); 896 } 897 impl ::std::convert::From<i32> for AnimationStopBehavior { from(value: i32) -> Self898 fn from(value: i32) -> Self { 899 Self(value) 900 } 901 } 902 unsafe impl ::windows::runtime::Abi for AnimationStopBehavior { 903 type Abi = Self; 904 type DefaultType = Self; 905 } 906 unsafe impl ::windows::runtime::RuntimeType for AnimationStopBehavior { 907 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Composition.AnimationStopBehavior;i4)"); 908 } 909 #[repr(transparent)] 910 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 911 pub struct BackEasingFunction(::windows::runtime::IInspectable); 912 impl BackEasingFunction { Mode(&self) -> ::windows::runtime::Result<CompositionEasingFunctionMode>913 pub fn Mode(&self) -> ::windows::runtime::Result<CompositionEasingFunctionMode> { 914 let this = self; 915 unsafe { 916 let mut result__: CompositionEasingFunctionMode = ::std::mem::zeroed(); 917 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionEasingFunctionMode>(result__) 918 } 919 } Amplitude(&self) -> ::windows::runtime::Result<f32>920 pub fn Amplitude(&self) -> ::windows::runtime::Result<f32> { 921 let this = self; 922 unsafe { 923 let mut result__: f32 = ::std::mem::zeroed(); 924 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 925 } 926 } 927 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>928 pub fn Close(&self) -> ::windows::runtime::Result<()> { 929 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 930 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 931 } Compositor(&self) -> ::windows::runtime::Result<Compositor>932 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 933 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 934 unsafe { 935 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 936 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 937 } 938 } 939 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>940 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 941 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 942 unsafe { 943 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 944 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 945 } 946 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>947 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 948 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 949 unsafe { 950 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 951 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 952 } 953 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>954 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 955 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 956 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 957 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>958 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 959 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 960 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 961 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>962 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 963 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 964 unsafe { 965 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 966 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 967 } 968 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>969 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 970 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 971 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 972 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>973 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 974 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 975 unsafe { 976 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 977 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 978 } 979 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>980 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 981 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 982 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 983 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>984 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 985 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 986 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 987 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>988 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 989 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 990 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 991 } 992 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>993 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 994 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 995 unsafe { 996 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 997 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 998 } 999 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>1000 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 1001 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 1002 unsafe { 1003 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1004 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 1005 } 1006 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>1007 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 1008 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 1009 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 1010 } 1011 } 1012 unsafe impl ::windows::runtime::RuntimeType for BackEasingFunction { 1013 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.BackEasingFunction;{b8560da4-5e3c-545d-b263-7987a2bd27cb})"); 1014 } 1015 unsafe impl ::windows::runtime::Interface for BackEasingFunction { 1016 type Vtable = IBackEasingFunction_abi; 1017 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3092647332, 24124, 21597, [178, 99, 121, 135, 162, 189, 39, 203]); 1018 } 1019 impl ::windows::runtime::RuntimeName for BackEasingFunction { 1020 const NAME: &'static str = "Windows.UI.Composition.BackEasingFunction"; 1021 } 1022 impl ::std::convert::From<BackEasingFunction> for ::windows::runtime::IUnknown { from(value: BackEasingFunction) -> Self1023 fn from(value: BackEasingFunction) -> Self { 1024 unsafe { ::std::mem::transmute(value) } 1025 } 1026 } 1027 impl ::std::convert::From<&BackEasingFunction> for ::windows::runtime::IUnknown { from(value: &BackEasingFunction) -> Self1028 fn from(value: &BackEasingFunction) -> Self { 1029 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1030 } 1031 } 1032 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1033 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1034 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1035 } 1036 } 1037 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1038 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1039 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1040 } 1041 } 1042 impl ::std::convert::From<BackEasingFunction> for ::windows::runtime::IInspectable { from(value: BackEasingFunction) -> Self1043 fn from(value: BackEasingFunction) -> Self { 1044 value.0 1045 } 1046 } 1047 impl ::std::convert::From<&BackEasingFunction> for ::windows::runtime::IInspectable { from(value: &BackEasingFunction) -> Self1048 fn from(value: &BackEasingFunction) -> Self { 1049 value.0.clone() 1050 } 1051 } 1052 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1053 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1054 ::windows::runtime::Param::Owned(self.0) 1055 } 1056 } 1057 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1058 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1059 ::windows::runtime::Param::Borrowed(&self.0) 1060 } 1061 } 1062 #[cfg(feature = "Foundation")] 1063 impl ::std::convert::TryFrom<BackEasingFunction> for super::super::Foundation::IClosable { 1064 type Error = ::windows::runtime::Error; try_from(value: BackEasingFunction) -> ::windows::runtime::Result<Self>1065 fn try_from(value: BackEasingFunction) -> ::windows::runtime::Result<Self> { 1066 ::std::convert::TryFrom::try_from(&value) 1067 } 1068 } 1069 #[cfg(feature = "Foundation")] 1070 impl ::std::convert::TryFrom<&BackEasingFunction> for super::super::Foundation::IClosable { 1071 type Error = ::windows::runtime::Error; try_from(value: &BackEasingFunction) -> ::windows::runtime::Result<Self>1072 fn try_from(value: &BackEasingFunction) -> ::windows::runtime::Result<Self> { 1073 ::windows::runtime::Interface::cast(value) 1074 } 1075 } 1076 #[cfg(feature = "Foundation")] 1077 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>1078 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 1079 ::windows::runtime::IntoParam::into_param(&self) 1080 } 1081 } 1082 #[cfg(feature = "Foundation")] 1083 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>1084 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 1085 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1086 } 1087 } 1088 impl ::std::convert::TryFrom<BackEasingFunction> for IAnimationObject { 1089 type Error = ::windows::runtime::Error; try_from(value: BackEasingFunction) -> ::windows::runtime::Result<Self>1090 fn try_from(value: BackEasingFunction) -> ::windows::runtime::Result<Self> { 1091 ::std::convert::TryFrom::try_from(&value) 1092 } 1093 } 1094 impl ::std::convert::TryFrom<&BackEasingFunction> for IAnimationObject { 1095 type Error = ::windows::runtime::Error; try_from(value: &BackEasingFunction) -> ::windows::runtime::Result<Self>1096 fn try_from(value: &BackEasingFunction) -> ::windows::runtime::Result<Self> { 1097 ::windows::runtime::Interface::cast(value) 1098 } 1099 } 1100 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>1101 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 1102 ::windows::runtime::IntoParam::into_param(&self) 1103 } 1104 } 1105 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>1106 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 1107 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1108 } 1109 } 1110 impl ::std::convert::From<BackEasingFunction> for CompositionEasingFunction { from(value: BackEasingFunction) -> Self1111 fn from(value: BackEasingFunction) -> Self { 1112 ::std::convert::Into::<CompositionEasingFunction>::into(&value) 1113 } 1114 } 1115 impl ::std::convert::From<&BackEasingFunction> for CompositionEasingFunction { from(value: &BackEasingFunction) -> Self1116 fn from(value: &BackEasingFunction) -> Self { 1117 ::windows::runtime::Interface::cast(value).unwrap() 1118 } 1119 } 1120 impl<'a> ::windows::runtime::IntoParam<'a, CompositionEasingFunction> for BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction>1121 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction> { 1122 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionEasingFunction>::into(self)) 1123 } 1124 } 1125 impl<'a> ::windows::runtime::IntoParam<'a, CompositionEasingFunction> for &BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction>1126 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction> { 1127 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionEasingFunction>::into(::std::clone::Clone::clone(self))) 1128 } 1129 } 1130 impl ::std::convert::From<BackEasingFunction> for CompositionObject { from(value: BackEasingFunction) -> Self1131 fn from(value: BackEasingFunction) -> Self { 1132 ::std::convert::Into::<CompositionObject>::into(&value) 1133 } 1134 } 1135 impl ::std::convert::From<&BackEasingFunction> for CompositionObject { from(value: &BackEasingFunction) -> Self1136 fn from(value: &BackEasingFunction) -> Self { 1137 ::windows::runtime::Interface::cast(value).unwrap() 1138 } 1139 } 1140 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>1141 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 1142 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 1143 } 1144 } 1145 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &BackEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>1146 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 1147 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 1148 } 1149 } 1150 unsafe impl ::std::marker::Send for BackEasingFunction {} 1151 unsafe impl ::std::marker::Sync for BackEasingFunction {} 1152 #[repr(transparent)] 1153 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1154 pub struct BooleanKeyFrameAnimation(::windows::runtime::IInspectable); 1155 impl BooleanKeyFrameAnimation { InsertKeyFrame(&self, normalizedprogresskey: f32, value: bool) -> ::windows::runtime::Result<()>1156 pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: bool) -> ::windows::runtime::Result<()> { 1157 let this = self; 1158 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), normalizedprogresskey, value).ok() } 1159 } 1160 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>1161 pub fn Close(&self) -> ::windows::runtime::Result<()> { 1162 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 1163 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 1164 } ClearAllParameters(&self) -> ::windows::runtime::Result<()>1165 pub fn ClearAllParameters(&self) -> ::windows::runtime::Result<()> { 1166 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1167 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 1168 } ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()>1169 pub fn ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()> { 1170 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1171 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), key.into_param().abi()).ok() } 1172 } SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1173 pub fn SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1174 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1175 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1176 } 1177 #[cfg(feature = "Foundation_Numerics")] SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1178 pub fn SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1179 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1180 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1181 } 1182 #[cfg(feature = "Foundation_Numerics")] SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1183 pub fn SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1184 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1185 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1186 } 1187 #[cfg(feature = "Foundation_Numerics")] SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1188 pub fn SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1189 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1190 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1191 } SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()>1192 pub fn SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()> { 1193 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1194 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), key.into_param().abi(), compositionobject.into_param().abi()).ok() } 1195 } SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()>1196 pub fn SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()> { 1197 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1198 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 1199 } 1200 #[cfg(feature = "Foundation_Numerics")] SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1201 pub fn SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1202 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1203 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1204 } 1205 #[cfg(feature = "Foundation_Numerics")] SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1206 pub fn SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1207 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1208 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1209 } 1210 #[cfg(feature = "Foundation_Numerics")] SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1211 pub fn SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1212 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1213 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1214 } Compositor(&self) -> ::windows::runtime::Result<Compositor>1215 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 1216 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1217 unsafe { 1218 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1219 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 1220 } 1221 } 1222 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>1223 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 1224 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1225 unsafe { 1226 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1227 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 1228 } 1229 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>1230 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 1231 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1232 unsafe { 1233 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1234 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 1235 } 1236 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>1237 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 1238 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1239 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 1240 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>1241 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 1242 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1243 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 1244 } 1245 #[cfg(feature = "Foundation")] DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>1246 pub fn DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 1247 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1248 unsafe { 1249 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 1250 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 1251 } 1252 } 1253 #[cfg(feature = "Foundation")] SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>1254 pub fn SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1255 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1256 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1257 } 1258 #[cfg(feature = "Foundation")] Duration(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>1259 pub fn Duration(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 1260 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1261 unsafe { 1262 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 1263 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 1264 } 1265 } 1266 #[cfg(feature = "Foundation")] SetDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>1267 pub fn SetDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1268 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1269 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1270 } IterationBehavior(&self) -> ::windows::runtime::Result<AnimationIterationBehavior>1271 pub fn IterationBehavior(&self) -> ::windows::runtime::Result<AnimationIterationBehavior> { 1272 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1273 unsafe { 1274 let mut result__: AnimationIterationBehavior = ::std::mem::zeroed(); 1275 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationIterationBehavior>(result__) 1276 } 1277 } SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows::runtime::Result<()>1278 pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows::runtime::Result<()> { 1279 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1280 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 1281 } IterationCount(&self) -> ::windows::runtime::Result<i32>1282 pub fn IterationCount(&self) -> ::windows::runtime::Result<i32> { 1283 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1284 unsafe { 1285 let mut result__: i32 = ::std::mem::zeroed(); 1286 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 1287 } 1288 } SetIterationCount(&self, value: i32) -> ::windows::runtime::Result<()>1289 pub fn SetIterationCount(&self, value: i32) -> ::windows::runtime::Result<()> { 1290 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1291 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 1292 } KeyFrameCount(&self) -> ::windows::runtime::Result<i32>1293 pub fn KeyFrameCount(&self) -> ::windows::runtime::Result<i32> { 1294 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1295 unsafe { 1296 let mut result__: i32 = ::std::mem::zeroed(); 1297 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 1298 } 1299 } StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior>1300 pub fn StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior> { 1301 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1302 unsafe { 1303 let mut result__: AnimationStopBehavior = ::std::mem::zeroed(); 1304 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationStopBehavior>(result__) 1305 } 1306 } SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()>1307 pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()> { 1308 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1309 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value).ok() } 1310 } InsertExpressionKeyFrame<'a, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, normalizedprogresskey: f32, value: Param1) -> ::windows::runtime::Result<()>1311 pub fn InsertExpressionKeyFrame<'a, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, normalizedprogresskey: f32, value: Param1) -> ::windows::runtime::Result<()> { 1312 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1313 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), normalizedprogresskey, value.into_param().abi()).ok() } 1314 } InsertExpressionKeyFrameWithEasingFunction<'a, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param2: ::windows::runtime::IntoParam<'a, CompositionEasingFunction>>(&self, normalizedprogresskey: f32, value: Param1, easingfunction: Param2) -> ::windows::runtime::Result<()>1315 pub fn InsertExpressionKeyFrameWithEasingFunction<'a, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param2: ::windows::runtime::IntoParam<'a, CompositionEasingFunction>>(&self, normalizedprogresskey: f32, value: Param1, easingfunction: Param2) -> ::windows::runtime::Result<()> { 1316 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 1317 unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), normalizedprogresskey, value.into_param().abi(), easingfunction.into_param().abi()).ok() } 1318 } SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()>1319 pub fn SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()> { 1320 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 1321 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 1322 } Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1323 pub fn Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1324 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 1325 unsafe { 1326 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1327 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1328 } 1329 } SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>1330 pub fn SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1331 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 1332 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1333 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1334 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1335 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1336 unsafe { 1337 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1338 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1339 } 1340 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>1341 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1342 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1343 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1344 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>1345 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 1346 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1347 unsafe { 1348 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1349 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 1350 } 1351 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>1352 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1353 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1354 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1355 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>1356 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1357 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1358 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1359 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>1360 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1361 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1362 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1363 } Direction(&self) -> ::windows::runtime::Result<AnimationDirection>1364 pub fn Direction(&self) -> ::windows::runtime::Result<AnimationDirection> { 1365 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation2>(self)?; 1366 unsafe { 1367 let mut result__: AnimationDirection = ::std::mem::zeroed(); 1368 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationDirection>(result__) 1369 } 1370 } SetDirection(&self, value: AnimationDirection) -> ::windows::runtime::Result<()>1371 pub fn SetDirection(&self, value: AnimationDirection) -> ::windows::runtime::Result<()> { 1372 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation2>(self)?; 1373 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1374 } DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior>1375 pub fn DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior> { 1376 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation3>(self)?; 1377 unsafe { 1378 let mut result__: AnimationDelayBehavior = ::std::mem::zeroed(); 1379 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationDelayBehavior>(result__) 1380 } 1381 } SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows::runtime::Result<()>1382 pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows::runtime::Result<()> { 1383 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation3>(self)?; 1384 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1385 } 1386 #[cfg(feature = "Foundation_Collections")] InitialValueExpressions(&self) -> ::windows::runtime::Result<InitialValueExpressionCollection>1387 pub fn InitialValueExpressions(&self) -> ::windows::runtime::Result<InitialValueExpressionCollection> { 1388 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation3>(self)?; 1389 unsafe { 1390 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1391 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<InitialValueExpressionCollection>(result__) 1392 } 1393 } 1394 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>1395 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 1396 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 1397 unsafe { 1398 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1399 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 1400 } 1401 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>1402 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 1403 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 1404 unsafe { 1405 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1406 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 1407 } 1408 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>1409 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 1410 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 1411 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 1412 } SetExpressionReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, IAnimationObject>>(&self, parametername: Param0, source: Param1) -> ::windows::runtime::Result<()>1413 pub fn SetExpressionReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, IAnimationObject>>(&self, parametername: Param0, source: Param1) -> ::windows::runtime::Result<()> { 1414 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation4>(self)?; 1415 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), parametername.into_param().abi(), source.into_param().abi()).ok() } 1416 } 1417 } 1418 unsafe impl ::windows::runtime::RuntimeType for BooleanKeyFrameAnimation { 1419 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.BooleanKeyFrameAnimation;{95e23a08-d1f4-4972-9770-3efe68d82e14})"); 1420 } 1421 unsafe impl ::windows::runtime::Interface for BooleanKeyFrameAnimation { 1422 type Vtable = IBooleanKeyFrameAnimation_abi; 1423 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2514631176, 53748, 18802, [151, 112, 62, 254, 104, 216, 46, 20]); 1424 } 1425 impl ::windows::runtime::RuntimeName for BooleanKeyFrameAnimation { 1426 const NAME: &'static str = "Windows.UI.Composition.BooleanKeyFrameAnimation"; 1427 } 1428 impl ::std::convert::From<BooleanKeyFrameAnimation> for ::windows::runtime::IUnknown { from(value: BooleanKeyFrameAnimation) -> Self1429 fn from(value: BooleanKeyFrameAnimation) -> Self { 1430 unsafe { ::std::mem::transmute(value) } 1431 } 1432 } 1433 impl ::std::convert::From<&BooleanKeyFrameAnimation> for ::windows::runtime::IUnknown { from(value: &BooleanKeyFrameAnimation) -> Self1434 fn from(value: &BooleanKeyFrameAnimation) -> Self { 1435 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1436 } 1437 } 1438 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1439 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1440 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1441 } 1442 } 1443 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1444 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1445 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1446 } 1447 } 1448 impl ::std::convert::From<BooleanKeyFrameAnimation> for ::windows::runtime::IInspectable { from(value: BooleanKeyFrameAnimation) -> Self1449 fn from(value: BooleanKeyFrameAnimation) -> Self { 1450 value.0 1451 } 1452 } 1453 impl ::std::convert::From<&BooleanKeyFrameAnimation> for ::windows::runtime::IInspectable { from(value: &BooleanKeyFrameAnimation) -> Self1454 fn from(value: &BooleanKeyFrameAnimation) -> Self { 1455 value.0.clone() 1456 } 1457 } 1458 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1459 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1460 ::windows::runtime::Param::Owned(self.0) 1461 } 1462 } 1463 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1464 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1465 ::windows::runtime::Param::Borrowed(&self.0) 1466 } 1467 } 1468 #[cfg(feature = "Foundation")] 1469 impl ::std::convert::TryFrom<BooleanKeyFrameAnimation> for super::super::Foundation::IClosable { 1470 type Error = ::windows::runtime::Error; try_from(value: BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self>1471 fn try_from(value: BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self> { 1472 ::std::convert::TryFrom::try_from(&value) 1473 } 1474 } 1475 #[cfg(feature = "Foundation")] 1476 impl ::std::convert::TryFrom<&BooleanKeyFrameAnimation> for super::super::Foundation::IClosable { 1477 type Error = ::windows::runtime::Error; try_from(value: &BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self>1478 fn try_from(value: &BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self> { 1479 ::windows::runtime::Interface::cast(value) 1480 } 1481 } 1482 #[cfg(feature = "Foundation")] 1483 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>1484 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 1485 ::windows::runtime::IntoParam::into_param(&self) 1486 } 1487 } 1488 #[cfg(feature = "Foundation")] 1489 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>1490 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 1491 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1492 } 1493 } 1494 impl ::std::convert::TryFrom<BooleanKeyFrameAnimation> for ICompositionAnimationBase { 1495 type Error = ::windows::runtime::Error; try_from(value: BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self>1496 fn try_from(value: BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self> { 1497 ::std::convert::TryFrom::try_from(&value) 1498 } 1499 } 1500 impl ::std::convert::TryFrom<&BooleanKeyFrameAnimation> for ICompositionAnimationBase { 1501 type Error = ::windows::runtime::Error; try_from(value: &BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self>1502 fn try_from(value: &BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self> { 1503 ::windows::runtime::Interface::cast(value) 1504 } 1505 } 1506 impl<'a> ::windows::runtime::IntoParam<'a, ICompositionAnimationBase> for BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase>1507 fn into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase> { 1508 ::windows::runtime::IntoParam::into_param(&self) 1509 } 1510 } 1511 impl<'a> ::windows::runtime::IntoParam<'a, ICompositionAnimationBase> for &BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase>1512 fn into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase> { 1513 ::std::convert::TryInto::<ICompositionAnimationBase>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1514 } 1515 } 1516 impl ::std::convert::TryFrom<BooleanKeyFrameAnimation> for IAnimationObject { 1517 type Error = ::windows::runtime::Error; try_from(value: BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self>1518 fn try_from(value: BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self> { 1519 ::std::convert::TryFrom::try_from(&value) 1520 } 1521 } 1522 impl ::std::convert::TryFrom<&BooleanKeyFrameAnimation> for IAnimationObject { 1523 type Error = ::windows::runtime::Error; try_from(value: &BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self>1524 fn try_from(value: &BooleanKeyFrameAnimation) -> ::windows::runtime::Result<Self> { 1525 ::windows::runtime::Interface::cast(value) 1526 } 1527 } 1528 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>1529 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 1530 ::windows::runtime::IntoParam::into_param(&self) 1531 } 1532 } 1533 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>1534 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 1535 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1536 } 1537 } 1538 impl ::std::convert::From<BooleanKeyFrameAnimation> for KeyFrameAnimation { from(value: BooleanKeyFrameAnimation) -> Self1539 fn from(value: BooleanKeyFrameAnimation) -> Self { 1540 ::std::convert::Into::<KeyFrameAnimation>::into(&value) 1541 } 1542 } 1543 impl ::std::convert::From<&BooleanKeyFrameAnimation> for KeyFrameAnimation { from(value: &BooleanKeyFrameAnimation) -> Self1544 fn from(value: &BooleanKeyFrameAnimation) -> Self { 1545 ::windows::runtime::Interface::cast(value).unwrap() 1546 } 1547 } 1548 impl<'a> ::windows::runtime::IntoParam<'a, KeyFrameAnimation> for BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, KeyFrameAnimation>1549 fn into_param(self) -> ::windows::runtime::Param<'a, KeyFrameAnimation> { 1550 ::windows::runtime::Param::Owned(::std::convert::Into::<KeyFrameAnimation>::into(self)) 1551 } 1552 } 1553 impl<'a> ::windows::runtime::IntoParam<'a, KeyFrameAnimation> for &BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, KeyFrameAnimation>1554 fn into_param(self) -> ::windows::runtime::Param<'a, KeyFrameAnimation> { 1555 ::windows::runtime::Param::Owned(::std::convert::Into::<KeyFrameAnimation>::into(::std::clone::Clone::clone(self))) 1556 } 1557 } 1558 impl ::std::convert::From<BooleanKeyFrameAnimation> for CompositionAnimation { from(value: BooleanKeyFrameAnimation) -> Self1559 fn from(value: BooleanKeyFrameAnimation) -> Self { 1560 ::std::convert::Into::<CompositionAnimation>::into(&value) 1561 } 1562 } 1563 impl ::std::convert::From<&BooleanKeyFrameAnimation> for CompositionAnimation { from(value: &BooleanKeyFrameAnimation) -> Self1564 fn from(value: &BooleanKeyFrameAnimation) -> Self { 1565 ::windows::runtime::Interface::cast(value).unwrap() 1566 } 1567 } 1568 impl<'a> ::windows::runtime::IntoParam<'a, CompositionAnimation> for BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation>1569 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation> { 1570 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionAnimation>::into(self)) 1571 } 1572 } 1573 impl<'a> ::windows::runtime::IntoParam<'a, CompositionAnimation> for &BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation>1574 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation> { 1575 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionAnimation>::into(::std::clone::Clone::clone(self))) 1576 } 1577 } 1578 impl ::std::convert::From<BooleanKeyFrameAnimation> for CompositionObject { from(value: BooleanKeyFrameAnimation) -> Self1579 fn from(value: BooleanKeyFrameAnimation) -> Self { 1580 ::std::convert::Into::<CompositionObject>::into(&value) 1581 } 1582 } 1583 impl ::std::convert::From<&BooleanKeyFrameAnimation> for CompositionObject { from(value: &BooleanKeyFrameAnimation) -> Self1584 fn from(value: &BooleanKeyFrameAnimation) -> Self { 1585 ::windows::runtime::Interface::cast(value).unwrap() 1586 } 1587 } 1588 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>1589 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 1590 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 1591 } 1592 } 1593 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &BooleanKeyFrameAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>1594 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 1595 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 1596 } 1597 } 1598 unsafe impl ::std::marker::Send for BooleanKeyFrameAnimation {} 1599 unsafe impl ::std::marker::Sync for BooleanKeyFrameAnimation {} 1600 #[repr(transparent)] 1601 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1602 pub struct BounceEasingFunction(::windows::runtime::IInspectable); 1603 impl BounceEasingFunction { Mode(&self) -> ::windows::runtime::Result<CompositionEasingFunctionMode>1604 pub fn Mode(&self) -> ::windows::runtime::Result<CompositionEasingFunctionMode> { 1605 let this = self; 1606 unsafe { 1607 let mut result__: CompositionEasingFunctionMode = ::std::mem::zeroed(); 1608 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionEasingFunctionMode>(result__) 1609 } 1610 } Bounces(&self) -> ::windows::runtime::Result<i32>1611 pub fn Bounces(&self) -> ::windows::runtime::Result<i32> { 1612 let this = self; 1613 unsafe { 1614 let mut result__: i32 = ::std::mem::zeroed(); 1615 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 1616 } 1617 } Bounciness(&self) -> ::windows::runtime::Result<f32>1618 pub fn Bounciness(&self) -> ::windows::runtime::Result<f32> { 1619 let this = self; 1620 unsafe { 1621 let mut result__: f32 = ::std::mem::zeroed(); 1622 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 1623 } 1624 } 1625 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>1626 pub fn Close(&self) -> ::windows::runtime::Result<()> { 1627 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 1628 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 1629 } Compositor(&self) -> ::windows::runtime::Result<Compositor>1630 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 1631 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1632 unsafe { 1633 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1634 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 1635 } 1636 } 1637 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>1638 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 1639 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1640 unsafe { 1641 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1642 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 1643 } 1644 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>1645 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 1646 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1647 unsafe { 1648 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1649 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 1650 } 1651 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>1652 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 1653 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1654 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 1655 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>1656 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 1657 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1658 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 1659 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1660 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1661 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1662 unsafe { 1663 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1664 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1665 } 1666 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>1667 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1668 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1669 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1670 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>1671 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 1672 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1673 unsafe { 1674 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1675 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 1676 } 1677 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>1678 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1679 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1680 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1681 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>1682 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1683 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1684 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1685 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>1686 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1687 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1688 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1689 } 1690 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>1691 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 1692 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 1693 unsafe { 1694 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1695 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 1696 } 1697 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>1698 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 1699 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 1700 unsafe { 1701 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1702 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 1703 } 1704 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>1705 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 1706 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 1707 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 1708 } 1709 } 1710 unsafe impl ::windows::runtime::RuntimeType for BounceEasingFunction { 1711 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.BounceEasingFunction;{e7fdb44b-aad5-5174-9421-eef8b75a6a43})"); 1712 } 1713 unsafe impl ::windows::runtime::Interface for BounceEasingFunction { 1714 type Vtable = IBounceEasingFunction_abi; 1715 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3892163659, 43733, 20852, [148, 33, 238, 248, 183, 90, 106, 67]); 1716 } 1717 impl ::windows::runtime::RuntimeName for BounceEasingFunction { 1718 const NAME: &'static str = "Windows.UI.Composition.BounceEasingFunction"; 1719 } 1720 impl ::std::convert::From<BounceEasingFunction> for ::windows::runtime::IUnknown { from(value: BounceEasingFunction) -> Self1721 fn from(value: BounceEasingFunction) -> Self { 1722 unsafe { ::std::mem::transmute(value) } 1723 } 1724 } 1725 impl ::std::convert::From<&BounceEasingFunction> for ::windows::runtime::IUnknown { from(value: &BounceEasingFunction) -> Self1726 fn from(value: &BounceEasingFunction) -> Self { 1727 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1728 } 1729 } 1730 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1731 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1732 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1733 } 1734 } 1735 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1736 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1737 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1738 } 1739 } 1740 impl ::std::convert::From<BounceEasingFunction> for ::windows::runtime::IInspectable { from(value: BounceEasingFunction) -> Self1741 fn from(value: BounceEasingFunction) -> Self { 1742 value.0 1743 } 1744 } 1745 impl ::std::convert::From<&BounceEasingFunction> for ::windows::runtime::IInspectable { from(value: &BounceEasingFunction) -> Self1746 fn from(value: &BounceEasingFunction) -> Self { 1747 value.0.clone() 1748 } 1749 } 1750 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1751 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1752 ::windows::runtime::Param::Owned(self.0) 1753 } 1754 } 1755 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1756 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1757 ::windows::runtime::Param::Borrowed(&self.0) 1758 } 1759 } 1760 #[cfg(feature = "Foundation")] 1761 impl ::std::convert::TryFrom<BounceEasingFunction> for super::super::Foundation::IClosable { 1762 type Error = ::windows::runtime::Error; try_from(value: BounceEasingFunction) -> ::windows::runtime::Result<Self>1763 fn try_from(value: BounceEasingFunction) -> ::windows::runtime::Result<Self> { 1764 ::std::convert::TryFrom::try_from(&value) 1765 } 1766 } 1767 #[cfg(feature = "Foundation")] 1768 impl ::std::convert::TryFrom<&BounceEasingFunction> for super::super::Foundation::IClosable { 1769 type Error = ::windows::runtime::Error; try_from(value: &BounceEasingFunction) -> ::windows::runtime::Result<Self>1770 fn try_from(value: &BounceEasingFunction) -> ::windows::runtime::Result<Self> { 1771 ::windows::runtime::Interface::cast(value) 1772 } 1773 } 1774 #[cfg(feature = "Foundation")] 1775 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>1776 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 1777 ::windows::runtime::IntoParam::into_param(&self) 1778 } 1779 } 1780 #[cfg(feature = "Foundation")] 1781 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>1782 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 1783 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1784 } 1785 } 1786 impl ::std::convert::TryFrom<BounceEasingFunction> for IAnimationObject { 1787 type Error = ::windows::runtime::Error; try_from(value: BounceEasingFunction) -> ::windows::runtime::Result<Self>1788 fn try_from(value: BounceEasingFunction) -> ::windows::runtime::Result<Self> { 1789 ::std::convert::TryFrom::try_from(&value) 1790 } 1791 } 1792 impl ::std::convert::TryFrom<&BounceEasingFunction> for IAnimationObject { 1793 type Error = ::windows::runtime::Error; try_from(value: &BounceEasingFunction) -> ::windows::runtime::Result<Self>1794 fn try_from(value: &BounceEasingFunction) -> ::windows::runtime::Result<Self> { 1795 ::windows::runtime::Interface::cast(value) 1796 } 1797 } 1798 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>1799 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 1800 ::windows::runtime::IntoParam::into_param(&self) 1801 } 1802 } 1803 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>1804 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 1805 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1806 } 1807 } 1808 impl ::std::convert::From<BounceEasingFunction> for CompositionEasingFunction { from(value: BounceEasingFunction) -> Self1809 fn from(value: BounceEasingFunction) -> Self { 1810 ::std::convert::Into::<CompositionEasingFunction>::into(&value) 1811 } 1812 } 1813 impl ::std::convert::From<&BounceEasingFunction> for CompositionEasingFunction { from(value: &BounceEasingFunction) -> Self1814 fn from(value: &BounceEasingFunction) -> Self { 1815 ::windows::runtime::Interface::cast(value).unwrap() 1816 } 1817 } 1818 impl<'a> ::windows::runtime::IntoParam<'a, CompositionEasingFunction> for BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction>1819 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction> { 1820 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionEasingFunction>::into(self)) 1821 } 1822 } 1823 impl<'a> ::windows::runtime::IntoParam<'a, CompositionEasingFunction> for &BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction>1824 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction> { 1825 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionEasingFunction>::into(::std::clone::Clone::clone(self))) 1826 } 1827 } 1828 impl ::std::convert::From<BounceEasingFunction> for CompositionObject { from(value: BounceEasingFunction) -> Self1829 fn from(value: BounceEasingFunction) -> Self { 1830 ::std::convert::Into::<CompositionObject>::into(&value) 1831 } 1832 } 1833 impl ::std::convert::From<&BounceEasingFunction> for CompositionObject { from(value: &BounceEasingFunction) -> Self1834 fn from(value: &BounceEasingFunction) -> Self { 1835 ::windows::runtime::Interface::cast(value).unwrap() 1836 } 1837 } 1838 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>1839 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 1840 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 1841 } 1842 } 1843 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &BounceEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>1844 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 1845 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 1846 } 1847 } 1848 unsafe impl ::std::marker::Send for BounceEasingFunction {} 1849 unsafe impl ::std::marker::Sync for BounceEasingFunction {} 1850 #[repr(transparent)] 1851 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1852 pub struct BounceScalarNaturalMotionAnimation(::windows::runtime::IInspectable); 1853 impl BounceScalarNaturalMotionAnimation { Acceleration(&self) -> ::windows::runtime::Result<f32>1854 pub fn Acceleration(&self) -> ::windows::runtime::Result<f32> { 1855 let this = self; 1856 unsafe { 1857 let mut result__: f32 = ::std::mem::zeroed(); 1858 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 1859 } 1860 } SetAcceleration(&self, value: f32) -> ::windows::runtime::Result<()>1861 pub fn SetAcceleration(&self, value: f32) -> ::windows::runtime::Result<()> { 1862 let this = self; 1863 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1864 } Restitution(&self) -> ::windows::runtime::Result<f32>1865 pub fn Restitution(&self) -> ::windows::runtime::Result<f32> { 1866 let this = self; 1867 unsafe { 1868 let mut result__: f32 = ::std::mem::zeroed(); 1869 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 1870 } 1871 } SetRestitution(&self, value: f32) -> ::windows::runtime::Result<()>1872 pub fn SetRestitution(&self, value: f32) -> ::windows::runtime::Result<()> { 1873 let this = self; 1874 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 1875 } 1876 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>1877 pub fn Close(&self) -> ::windows::runtime::Result<()> { 1878 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 1879 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 1880 } ClearAllParameters(&self) -> ::windows::runtime::Result<()>1881 pub fn ClearAllParameters(&self) -> ::windows::runtime::Result<()> { 1882 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1883 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 1884 } ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()>1885 pub fn ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()> { 1886 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1887 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), key.into_param().abi()).ok() } 1888 } SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1889 pub fn SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1890 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1891 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1892 } 1893 #[cfg(feature = "Foundation_Numerics")] SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1894 pub fn SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1895 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1896 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1897 } 1898 #[cfg(feature = "Foundation_Numerics")] SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1899 pub fn SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1900 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1901 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1902 } 1903 #[cfg(feature = "Foundation_Numerics")] SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1904 pub fn SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1905 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1906 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1907 } SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()>1908 pub fn SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()> { 1909 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1910 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), key.into_param().abi(), compositionobject.into_param().abi()).ok() } 1911 } SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()>1912 pub fn SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()> { 1913 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1914 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 1915 } 1916 #[cfg(feature = "Foundation_Numerics")] SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1917 pub fn SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1918 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1919 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1920 } 1921 #[cfg(feature = "Foundation_Numerics")] SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1922 pub fn SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1923 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1924 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1925 } 1926 #[cfg(feature = "Foundation_Numerics")] SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>1927 pub fn SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1928 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 1929 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 1930 } Compositor(&self) -> ::windows::runtime::Result<Compositor>1931 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 1932 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1933 unsafe { 1934 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1935 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 1936 } 1937 } 1938 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>1939 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 1940 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1941 unsafe { 1942 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1943 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 1944 } 1945 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>1946 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 1947 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1948 unsafe { 1949 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1950 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 1951 } 1952 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>1953 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 1954 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1955 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 1956 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>1957 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 1958 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 1959 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 1960 } SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()>1961 pub fn SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()> { 1962 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 1963 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 1964 } Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1965 pub fn Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1966 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 1967 unsafe { 1968 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1969 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1970 } 1971 } SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>1972 pub fn SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1973 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 1974 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1975 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1976 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1977 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1978 unsafe { 1979 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1980 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1981 } 1982 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>1983 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1984 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1985 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1986 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>1987 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 1988 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1989 unsafe { 1990 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1991 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 1992 } 1993 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>1994 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1995 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 1996 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1997 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>1998 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1999 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2000 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2001 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>2002 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2003 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2004 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2005 } 2006 #[cfg(feature = "Foundation_Collections")] InitialValueExpressions(&self) -> ::windows::runtime::Result<InitialValueExpressionCollection>2007 pub fn InitialValueExpressions(&self) -> ::windows::runtime::Result<InitialValueExpressionCollection> { 2008 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation3>(self)?; 2009 unsafe { 2010 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2011 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<InitialValueExpressionCollection>(result__) 2012 } 2013 } 2014 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>2015 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 2016 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 2017 unsafe { 2018 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2019 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 2020 } 2021 } DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior>2022 pub fn DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior> { 2023 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2024 unsafe { 2025 let mut result__: AnimationDelayBehavior = ::std::mem::zeroed(); 2026 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationDelayBehavior>(result__) 2027 } 2028 } SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows::runtime::Result<()>2029 pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows::runtime::Result<()> { 2030 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2031 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 2032 } 2033 #[cfg(feature = "Foundation")] DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>2034 pub fn DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 2035 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2036 unsafe { 2037 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 2038 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 2039 } 2040 } 2041 #[cfg(feature = "Foundation")] SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>2042 pub fn SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2043 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2044 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2045 } StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior>2046 pub fn StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior> { 2047 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2048 unsafe { 2049 let mut result__: AnimationStopBehavior = ::std::mem::zeroed(); 2050 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationStopBehavior>(result__) 2051 } 2052 } SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()>2053 pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()> { 2054 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2055 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 2056 } 2057 #[cfg(feature = "Foundation")] FinalValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<f32>>2058 pub fn FinalValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<f32>> { 2059 let this = &::windows::runtime::Interface::cast::<IScalarNaturalMotionAnimation>(self)?; 2060 unsafe { 2061 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2062 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<f32>>(result__) 2063 } 2064 } 2065 #[cfg(feature = "Foundation")] SetFinalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<f32>>>(&self, value: Param0) -> ::windows::runtime::Result<()>2066 pub fn SetFinalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<f32>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2067 let this = &::windows::runtime::Interface::cast::<IScalarNaturalMotionAnimation>(self)?; 2068 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2069 } 2070 #[cfg(feature = "Foundation")] InitialValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<f32>>2071 pub fn InitialValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<f32>> { 2072 let this = &::windows::runtime::Interface::cast::<IScalarNaturalMotionAnimation>(self)?; 2073 unsafe { 2074 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2075 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<f32>>(result__) 2076 } 2077 } 2078 #[cfg(feature = "Foundation")] SetInitialValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<f32>>>(&self, value: Param0) -> ::windows::runtime::Result<()>2079 pub fn SetInitialValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<f32>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2080 let this = &::windows::runtime::Interface::cast::<IScalarNaturalMotionAnimation>(self)?; 2081 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2082 } InitialVelocity(&self) -> ::windows::runtime::Result<f32>2083 pub fn InitialVelocity(&self) -> ::windows::runtime::Result<f32> { 2084 let this = &::windows::runtime::Interface::cast::<IScalarNaturalMotionAnimation>(self)?; 2085 unsafe { 2086 let mut result__: f32 = ::std::mem::zeroed(); 2087 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 2088 } 2089 } SetInitialVelocity(&self, value: f32) -> ::windows::runtime::Result<()>2090 pub fn SetInitialVelocity(&self, value: f32) -> ::windows::runtime::Result<()> { 2091 let this = &::windows::runtime::Interface::cast::<IScalarNaturalMotionAnimation>(self)?; 2092 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 2093 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>2094 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 2095 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 2096 unsafe { 2097 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2098 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 2099 } 2100 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>2101 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 2102 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 2103 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 2104 } SetExpressionReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, IAnimationObject>>(&self, parametername: Param0, source: Param1) -> ::windows::runtime::Result<()>2105 pub fn SetExpressionReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, IAnimationObject>>(&self, parametername: Param0, source: Param1) -> ::windows::runtime::Result<()> { 2106 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation4>(self)?; 2107 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), parametername.into_param().abi(), source.into_param().abi()).ok() } 2108 } 2109 } 2110 unsafe impl ::windows::runtime::RuntimeType for BounceScalarNaturalMotionAnimation { 2111 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.BounceScalarNaturalMotionAnimation;{baa30dcc-a633-4618-9b06-7f7c72c87cff})"); 2112 } 2113 unsafe impl ::windows::runtime::Interface for BounceScalarNaturalMotionAnimation { 2114 type Vtable = IBounceScalarNaturalMotionAnimation_abi; 2115 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3131248076, 42547, 17944, [155, 6, 127, 124, 114, 200, 124, 255]); 2116 } 2117 impl ::windows::runtime::RuntimeName for BounceScalarNaturalMotionAnimation { 2118 const NAME: &'static str = "Windows.UI.Composition.BounceScalarNaturalMotionAnimation"; 2119 } 2120 impl ::std::convert::From<BounceScalarNaturalMotionAnimation> for ::windows::runtime::IUnknown { from(value: BounceScalarNaturalMotionAnimation) -> Self2121 fn from(value: BounceScalarNaturalMotionAnimation) -> Self { 2122 unsafe { ::std::mem::transmute(value) } 2123 } 2124 } 2125 impl ::std::convert::From<&BounceScalarNaturalMotionAnimation> for ::windows::runtime::IUnknown { from(value: &BounceScalarNaturalMotionAnimation) -> Self2126 fn from(value: &BounceScalarNaturalMotionAnimation) -> Self { 2127 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2128 } 2129 } 2130 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2131 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2132 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2133 } 2134 } 2135 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2136 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2137 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2138 } 2139 } 2140 impl ::std::convert::From<BounceScalarNaturalMotionAnimation> for ::windows::runtime::IInspectable { from(value: BounceScalarNaturalMotionAnimation) -> Self2141 fn from(value: BounceScalarNaturalMotionAnimation) -> Self { 2142 value.0 2143 } 2144 } 2145 impl ::std::convert::From<&BounceScalarNaturalMotionAnimation> for ::windows::runtime::IInspectable { from(value: &BounceScalarNaturalMotionAnimation) -> Self2146 fn from(value: &BounceScalarNaturalMotionAnimation) -> Self { 2147 value.0.clone() 2148 } 2149 } 2150 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2151 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2152 ::windows::runtime::Param::Owned(self.0) 2153 } 2154 } 2155 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2156 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2157 ::windows::runtime::Param::Borrowed(&self.0) 2158 } 2159 } 2160 #[cfg(feature = "Foundation")] 2161 impl ::std::convert::TryFrom<BounceScalarNaturalMotionAnimation> for super::super::Foundation::IClosable { 2162 type Error = ::windows::runtime::Error; try_from(value: BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self>2163 fn try_from(value: BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2164 ::std::convert::TryFrom::try_from(&value) 2165 } 2166 } 2167 #[cfg(feature = "Foundation")] 2168 impl ::std::convert::TryFrom<&BounceScalarNaturalMotionAnimation> for super::super::Foundation::IClosable { 2169 type Error = ::windows::runtime::Error; try_from(value: &BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self>2170 fn try_from(value: &BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2171 ::windows::runtime::Interface::cast(value) 2172 } 2173 } 2174 #[cfg(feature = "Foundation")] 2175 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>2176 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 2177 ::windows::runtime::IntoParam::into_param(&self) 2178 } 2179 } 2180 #[cfg(feature = "Foundation")] 2181 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>2182 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 2183 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2184 } 2185 } 2186 impl ::std::convert::TryFrom<BounceScalarNaturalMotionAnimation> for ICompositionAnimationBase { 2187 type Error = ::windows::runtime::Error; try_from(value: BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self>2188 fn try_from(value: BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2189 ::std::convert::TryFrom::try_from(&value) 2190 } 2191 } 2192 impl ::std::convert::TryFrom<&BounceScalarNaturalMotionAnimation> for ICompositionAnimationBase { 2193 type Error = ::windows::runtime::Error; try_from(value: &BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self>2194 fn try_from(value: &BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2195 ::windows::runtime::Interface::cast(value) 2196 } 2197 } 2198 impl<'a> ::windows::runtime::IntoParam<'a, ICompositionAnimationBase> for BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase>2199 fn into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase> { 2200 ::windows::runtime::IntoParam::into_param(&self) 2201 } 2202 } 2203 impl<'a> ::windows::runtime::IntoParam<'a, ICompositionAnimationBase> for &BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase>2204 fn into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase> { 2205 ::std::convert::TryInto::<ICompositionAnimationBase>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2206 } 2207 } 2208 impl ::std::convert::TryFrom<BounceScalarNaturalMotionAnimation> for IAnimationObject { 2209 type Error = ::windows::runtime::Error; try_from(value: BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self>2210 fn try_from(value: BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2211 ::std::convert::TryFrom::try_from(&value) 2212 } 2213 } 2214 impl ::std::convert::TryFrom<&BounceScalarNaturalMotionAnimation> for IAnimationObject { 2215 type Error = ::windows::runtime::Error; try_from(value: &BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self>2216 fn try_from(value: &BounceScalarNaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2217 ::windows::runtime::Interface::cast(value) 2218 } 2219 } 2220 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>2221 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 2222 ::windows::runtime::IntoParam::into_param(&self) 2223 } 2224 } 2225 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>2226 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 2227 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2228 } 2229 } 2230 impl ::std::convert::From<BounceScalarNaturalMotionAnimation> for ScalarNaturalMotionAnimation { from(value: BounceScalarNaturalMotionAnimation) -> Self2231 fn from(value: BounceScalarNaturalMotionAnimation) -> Self { 2232 ::std::convert::Into::<ScalarNaturalMotionAnimation>::into(&value) 2233 } 2234 } 2235 impl ::std::convert::From<&BounceScalarNaturalMotionAnimation> for ScalarNaturalMotionAnimation { from(value: &BounceScalarNaturalMotionAnimation) -> Self2236 fn from(value: &BounceScalarNaturalMotionAnimation) -> Self { 2237 ::windows::runtime::Interface::cast(value).unwrap() 2238 } 2239 } 2240 impl<'a> ::windows::runtime::IntoParam<'a, ScalarNaturalMotionAnimation> for BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ScalarNaturalMotionAnimation>2241 fn into_param(self) -> ::windows::runtime::Param<'a, ScalarNaturalMotionAnimation> { 2242 ::windows::runtime::Param::Owned(::std::convert::Into::<ScalarNaturalMotionAnimation>::into(self)) 2243 } 2244 } 2245 impl<'a> ::windows::runtime::IntoParam<'a, ScalarNaturalMotionAnimation> for &BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ScalarNaturalMotionAnimation>2246 fn into_param(self) -> ::windows::runtime::Param<'a, ScalarNaturalMotionAnimation> { 2247 ::windows::runtime::Param::Owned(::std::convert::Into::<ScalarNaturalMotionAnimation>::into(::std::clone::Clone::clone(self))) 2248 } 2249 } 2250 impl ::std::convert::From<BounceScalarNaturalMotionAnimation> for NaturalMotionAnimation { from(value: BounceScalarNaturalMotionAnimation) -> Self2251 fn from(value: BounceScalarNaturalMotionAnimation) -> Self { 2252 ::std::convert::Into::<NaturalMotionAnimation>::into(&value) 2253 } 2254 } 2255 impl ::std::convert::From<&BounceScalarNaturalMotionAnimation> for NaturalMotionAnimation { from(value: &BounceScalarNaturalMotionAnimation) -> Self2256 fn from(value: &BounceScalarNaturalMotionAnimation) -> Self { 2257 ::windows::runtime::Interface::cast(value).unwrap() 2258 } 2259 } 2260 impl<'a> ::windows::runtime::IntoParam<'a, NaturalMotionAnimation> for BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation>2261 fn into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation> { 2262 ::windows::runtime::Param::Owned(::std::convert::Into::<NaturalMotionAnimation>::into(self)) 2263 } 2264 } 2265 impl<'a> ::windows::runtime::IntoParam<'a, NaturalMotionAnimation> for &BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation>2266 fn into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation> { 2267 ::windows::runtime::Param::Owned(::std::convert::Into::<NaturalMotionAnimation>::into(::std::clone::Clone::clone(self))) 2268 } 2269 } 2270 impl ::std::convert::From<BounceScalarNaturalMotionAnimation> for CompositionAnimation { from(value: BounceScalarNaturalMotionAnimation) -> Self2271 fn from(value: BounceScalarNaturalMotionAnimation) -> Self { 2272 ::std::convert::Into::<CompositionAnimation>::into(&value) 2273 } 2274 } 2275 impl ::std::convert::From<&BounceScalarNaturalMotionAnimation> for CompositionAnimation { from(value: &BounceScalarNaturalMotionAnimation) -> Self2276 fn from(value: &BounceScalarNaturalMotionAnimation) -> Self { 2277 ::windows::runtime::Interface::cast(value).unwrap() 2278 } 2279 } 2280 impl<'a> ::windows::runtime::IntoParam<'a, CompositionAnimation> for BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation>2281 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation> { 2282 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionAnimation>::into(self)) 2283 } 2284 } 2285 impl<'a> ::windows::runtime::IntoParam<'a, CompositionAnimation> for &BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation>2286 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation> { 2287 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionAnimation>::into(::std::clone::Clone::clone(self))) 2288 } 2289 } 2290 impl ::std::convert::From<BounceScalarNaturalMotionAnimation> for CompositionObject { from(value: BounceScalarNaturalMotionAnimation) -> Self2291 fn from(value: BounceScalarNaturalMotionAnimation) -> Self { 2292 ::std::convert::Into::<CompositionObject>::into(&value) 2293 } 2294 } 2295 impl ::std::convert::From<&BounceScalarNaturalMotionAnimation> for CompositionObject { from(value: &BounceScalarNaturalMotionAnimation) -> Self2296 fn from(value: &BounceScalarNaturalMotionAnimation) -> Self { 2297 ::windows::runtime::Interface::cast(value).unwrap() 2298 } 2299 } 2300 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>2301 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 2302 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 2303 } 2304 } 2305 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &BounceScalarNaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>2306 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 2307 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 2308 } 2309 } 2310 unsafe impl ::std::marker::Send for BounceScalarNaturalMotionAnimation {} 2311 unsafe impl ::std::marker::Sync for BounceScalarNaturalMotionAnimation {} 2312 #[repr(transparent)] 2313 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2314 pub struct BounceVector2NaturalMotionAnimation(::windows::runtime::IInspectable); 2315 impl BounceVector2NaturalMotionAnimation { Acceleration(&self) -> ::windows::runtime::Result<f32>2316 pub fn Acceleration(&self) -> ::windows::runtime::Result<f32> { 2317 let this = self; 2318 unsafe { 2319 let mut result__: f32 = ::std::mem::zeroed(); 2320 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 2321 } 2322 } SetAcceleration(&self, value: f32) -> ::windows::runtime::Result<()>2323 pub fn SetAcceleration(&self, value: f32) -> ::windows::runtime::Result<()> { 2324 let this = self; 2325 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 2326 } Restitution(&self) -> ::windows::runtime::Result<f32>2327 pub fn Restitution(&self) -> ::windows::runtime::Result<f32> { 2328 let this = self; 2329 unsafe { 2330 let mut result__: f32 = ::std::mem::zeroed(); 2331 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 2332 } 2333 } SetRestitution(&self, value: f32) -> ::windows::runtime::Result<()>2334 pub fn SetRestitution(&self, value: f32) -> ::windows::runtime::Result<()> { 2335 let this = self; 2336 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 2337 } 2338 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>2339 pub fn Close(&self) -> ::windows::runtime::Result<()> { 2340 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 2341 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 2342 } ClearAllParameters(&self) -> ::windows::runtime::Result<()>2343 pub fn ClearAllParameters(&self) -> ::windows::runtime::Result<()> { 2344 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2345 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 2346 } ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()>2347 pub fn ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()> { 2348 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2349 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), key.into_param().abi()).ok() } 2350 } SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2351 pub fn SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2352 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2353 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2354 } 2355 #[cfg(feature = "Foundation_Numerics")] SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2356 pub fn SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2357 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2358 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2359 } 2360 #[cfg(feature = "Foundation_Numerics")] SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2361 pub fn SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2362 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2363 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2364 } 2365 #[cfg(feature = "Foundation_Numerics")] SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2366 pub fn SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2367 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2368 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2369 } SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()>2370 pub fn SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()> { 2371 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2372 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), key.into_param().abi(), compositionobject.into_param().abi()).ok() } 2373 } SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()>2374 pub fn SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()> { 2375 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2376 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 2377 } 2378 #[cfg(feature = "Foundation_Numerics")] SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2379 pub fn SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2380 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2381 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2382 } 2383 #[cfg(feature = "Foundation_Numerics")] SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2384 pub fn SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2385 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2386 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2387 } 2388 #[cfg(feature = "Foundation_Numerics")] SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2389 pub fn SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2390 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2391 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2392 } Compositor(&self) -> ::windows::runtime::Result<Compositor>2393 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 2394 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2395 unsafe { 2396 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2397 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 2398 } 2399 } 2400 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>2401 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 2402 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2403 unsafe { 2404 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2405 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 2406 } 2407 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>2408 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 2409 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2410 unsafe { 2411 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2412 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 2413 } 2414 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>2415 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 2416 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2417 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 2418 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>2419 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 2420 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2421 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 2422 } SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()>2423 pub fn SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()> { 2424 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 2425 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 2426 } Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2427 pub fn Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2428 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 2429 unsafe { 2430 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2431 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2432 } 2433 } SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>2434 pub fn SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2435 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 2436 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2437 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2438 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2439 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2440 unsafe { 2441 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2442 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2443 } 2444 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>2445 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2446 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2447 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2448 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>2449 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 2450 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2451 unsafe { 2452 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2453 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 2454 } 2455 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>2456 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2457 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2458 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2459 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>2460 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2461 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2462 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2463 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>2464 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2465 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2466 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2467 } 2468 #[cfg(feature = "Foundation_Collections")] InitialValueExpressions(&self) -> ::windows::runtime::Result<InitialValueExpressionCollection>2469 pub fn InitialValueExpressions(&self) -> ::windows::runtime::Result<InitialValueExpressionCollection> { 2470 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation3>(self)?; 2471 unsafe { 2472 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2473 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<InitialValueExpressionCollection>(result__) 2474 } 2475 } 2476 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>2477 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 2478 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 2479 unsafe { 2480 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2481 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 2482 } 2483 } DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior>2484 pub fn DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior> { 2485 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2486 unsafe { 2487 let mut result__: AnimationDelayBehavior = ::std::mem::zeroed(); 2488 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationDelayBehavior>(result__) 2489 } 2490 } SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows::runtime::Result<()>2491 pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows::runtime::Result<()> { 2492 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2493 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 2494 } 2495 #[cfg(feature = "Foundation")] DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>2496 pub fn DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 2497 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2498 unsafe { 2499 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 2500 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 2501 } 2502 } 2503 #[cfg(feature = "Foundation")] SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>2504 pub fn SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2505 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2506 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2507 } StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior>2508 pub fn StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior> { 2509 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2510 unsafe { 2511 let mut result__: AnimationStopBehavior = ::std::mem::zeroed(); 2512 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationStopBehavior>(result__) 2513 } 2514 } SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()>2515 pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()> { 2516 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2517 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 2518 } 2519 #[cfg(all(feature = "Foundation", feature = "Foundation_Numerics"))] FinalValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>>2520 pub fn FinalValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>> { 2521 let this = &::windows::runtime::Interface::cast::<IVector2NaturalMotionAnimation>(self)?; 2522 unsafe { 2523 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2524 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>>(result__) 2525 } 2526 } 2527 #[cfg(all(feature = "Foundation", feature = "Foundation_Numerics"))] SetFinalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>>>(&self, value: Param0) -> ::windows::runtime::Result<()>2528 pub fn SetFinalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2529 let this = &::windows::runtime::Interface::cast::<IVector2NaturalMotionAnimation>(self)?; 2530 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2531 } 2532 #[cfg(all(feature = "Foundation", feature = "Foundation_Numerics"))] InitialValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>>2533 pub fn InitialValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>> { 2534 let this = &::windows::runtime::Interface::cast::<IVector2NaturalMotionAnimation>(self)?; 2535 unsafe { 2536 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2537 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>>(result__) 2538 } 2539 } 2540 #[cfg(all(feature = "Foundation", feature = "Foundation_Numerics"))] SetInitialValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>>>(&self, value: Param0) -> ::windows::runtime::Result<()>2541 pub fn SetInitialValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector2>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2542 let this = &::windows::runtime::Interface::cast::<IVector2NaturalMotionAnimation>(self)?; 2543 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2544 } 2545 #[cfg(feature = "Foundation_Numerics")] InitialVelocity(&self) -> ::windows::runtime::Result<super::super::Foundation::Numerics::Vector2>2546 pub fn InitialVelocity(&self) -> ::windows::runtime::Result<super::super::Foundation::Numerics::Vector2> { 2547 let this = &::windows::runtime::Interface::cast::<IVector2NaturalMotionAnimation>(self)?; 2548 unsafe { 2549 let mut result__: super::super::Foundation::Numerics::Vector2 = ::std::mem::zeroed(); 2550 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Numerics::Vector2>(result__) 2551 } 2552 } 2553 #[cfg(feature = "Foundation_Numerics")] SetInitialVelocity<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, value: Param0) -> ::windows::runtime::Result<()>2554 pub fn SetInitialVelocity<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2555 let this = &::windows::runtime::Interface::cast::<IVector2NaturalMotionAnimation>(self)?; 2556 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2557 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>2558 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 2559 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 2560 unsafe { 2561 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2562 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 2563 } 2564 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>2565 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 2566 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 2567 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 2568 } SetExpressionReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, IAnimationObject>>(&self, parametername: Param0, source: Param1) -> ::windows::runtime::Result<()>2569 pub fn SetExpressionReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, IAnimationObject>>(&self, parametername: Param0, source: Param1) -> ::windows::runtime::Result<()> { 2570 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation4>(self)?; 2571 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), parametername.into_param().abi(), source.into_param().abi()).ok() } 2572 } 2573 } 2574 unsafe impl ::windows::runtime::RuntimeType for BounceVector2NaturalMotionAnimation { 2575 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.BounceVector2NaturalMotionAnimation;{da344196-2154-4b3c-88aa-47361204eccd})"); 2576 } 2577 unsafe impl ::windows::runtime::Interface for BounceVector2NaturalMotionAnimation { 2578 type Vtable = IBounceVector2NaturalMotionAnimation_abi; 2579 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3660857750, 8532, 19260, [136, 170, 71, 54, 18, 4, 236, 205]); 2580 } 2581 impl ::windows::runtime::RuntimeName for BounceVector2NaturalMotionAnimation { 2582 const NAME: &'static str = "Windows.UI.Composition.BounceVector2NaturalMotionAnimation"; 2583 } 2584 impl ::std::convert::From<BounceVector2NaturalMotionAnimation> for ::windows::runtime::IUnknown { from(value: BounceVector2NaturalMotionAnimation) -> Self2585 fn from(value: BounceVector2NaturalMotionAnimation) -> Self { 2586 unsafe { ::std::mem::transmute(value) } 2587 } 2588 } 2589 impl ::std::convert::From<&BounceVector2NaturalMotionAnimation> for ::windows::runtime::IUnknown { from(value: &BounceVector2NaturalMotionAnimation) -> Self2590 fn from(value: &BounceVector2NaturalMotionAnimation) -> Self { 2591 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2592 } 2593 } 2594 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2595 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2596 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2597 } 2598 } 2599 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2600 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2601 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2602 } 2603 } 2604 impl ::std::convert::From<BounceVector2NaturalMotionAnimation> for ::windows::runtime::IInspectable { from(value: BounceVector2NaturalMotionAnimation) -> Self2605 fn from(value: BounceVector2NaturalMotionAnimation) -> Self { 2606 value.0 2607 } 2608 } 2609 impl ::std::convert::From<&BounceVector2NaturalMotionAnimation> for ::windows::runtime::IInspectable { from(value: &BounceVector2NaturalMotionAnimation) -> Self2610 fn from(value: &BounceVector2NaturalMotionAnimation) -> Self { 2611 value.0.clone() 2612 } 2613 } 2614 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2615 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2616 ::windows::runtime::Param::Owned(self.0) 2617 } 2618 } 2619 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2620 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2621 ::windows::runtime::Param::Borrowed(&self.0) 2622 } 2623 } 2624 #[cfg(feature = "Foundation")] 2625 impl ::std::convert::TryFrom<BounceVector2NaturalMotionAnimation> for super::super::Foundation::IClosable { 2626 type Error = ::windows::runtime::Error; try_from(value: BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self>2627 fn try_from(value: BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2628 ::std::convert::TryFrom::try_from(&value) 2629 } 2630 } 2631 #[cfg(feature = "Foundation")] 2632 impl ::std::convert::TryFrom<&BounceVector2NaturalMotionAnimation> for super::super::Foundation::IClosable { 2633 type Error = ::windows::runtime::Error; try_from(value: &BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self>2634 fn try_from(value: &BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2635 ::windows::runtime::Interface::cast(value) 2636 } 2637 } 2638 #[cfg(feature = "Foundation")] 2639 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>2640 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 2641 ::windows::runtime::IntoParam::into_param(&self) 2642 } 2643 } 2644 #[cfg(feature = "Foundation")] 2645 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>2646 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 2647 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2648 } 2649 } 2650 impl ::std::convert::TryFrom<BounceVector2NaturalMotionAnimation> for ICompositionAnimationBase { 2651 type Error = ::windows::runtime::Error; try_from(value: BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self>2652 fn try_from(value: BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2653 ::std::convert::TryFrom::try_from(&value) 2654 } 2655 } 2656 impl ::std::convert::TryFrom<&BounceVector2NaturalMotionAnimation> for ICompositionAnimationBase { 2657 type Error = ::windows::runtime::Error; try_from(value: &BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self>2658 fn try_from(value: &BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2659 ::windows::runtime::Interface::cast(value) 2660 } 2661 } 2662 impl<'a> ::windows::runtime::IntoParam<'a, ICompositionAnimationBase> for BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase>2663 fn into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase> { 2664 ::windows::runtime::IntoParam::into_param(&self) 2665 } 2666 } 2667 impl<'a> ::windows::runtime::IntoParam<'a, ICompositionAnimationBase> for &BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase>2668 fn into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase> { 2669 ::std::convert::TryInto::<ICompositionAnimationBase>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2670 } 2671 } 2672 impl ::std::convert::TryFrom<BounceVector2NaturalMotionAnimation> for IAnimationObject { 2673 type Error = ::windows::runtime::Error; try_from(value: BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self>2674 fn try_from(value: BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2675 ::std::convert::TryFrom::try_from(&value) 2676 } 2677 } 2678 impl ::std::convert::TryFrom<&BounceVector2NaturalMotionAnimation> for IAnimationObject { 2679 type Error = ::windows::runtime::Error; try_from(value: &BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self>2680 fn try_from(value: &BounceVector2NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 2681 ::windows::runtime::Interface::cast(value) 2682 } 2683 } 2684 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>2685 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 2686 ::windows::runtime::IntoParam::into_param(&self) 2687 } 2688 } 2689 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>2690 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 2691 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2692 } 2693 } 2694 impl ::std::convert::From<BounceVector2NaturalMotionAnimation> for Vector2NaturalMotionAnimation { from(value: BounceVector2NaturalMotionAnimation) -> Self2695 fn from(value: BounceVector2NaturalMotionAnimation) -> Self { 2696 ::std::convert::Into::<Vector2NaturalMotionAnimation>::into(&value) 2697 } 2698 } 2699 impl ::std::convert::From<&BounceVector2NaturalMotionAnimation> for Vector2NaturalMotionAnimation { from(value: &BounceVector2NaturalMotionAnimation) -> Self2700 fn from(value: &BounceVector2NaturalMotionAnimation) -> Self { 2701 ::windows::runtime::Interface::cast(value).unwrap() 2702 } 2703 } 2704 impl<'a> ::windows::runtime::IntoParam<'a, Vector2NaturalMotionAnimation> for BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, Vector2NaturalMotionAnimation>2705 fn into_param(self) -> ::windows::runtime::Param<'a, Vector2NaturalMotionAnimation> { 2706 ::windows::runtime::Param::Owned(::std::convert::Into::<Vector2NaturalMotionAnimation>::into(self)) 2707 } 2708 } 2709 impl<'a> ::windows::runtime::IntoParam<'a, Vector2NaturalMotionAnimation> for &BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, Vector2NaturalMotionAnimation>2710 fn into_param(self) -> ::windows::runtime::Param<'a, Vector2NaturalMotionAnimation> { 2711 ::windows::runtime::Param::Owned(::std::convert::Into::<Vector2NaturalMotionAnimation>::into(::std::clone::Clone::clone(self))) 2712 } 2713 } 2714 impl ::std::convert::From<BounceVector2NaturalMotionAnimation> for NaturalMotionAnimation { from(value: BounceVector2NaturalMotionAnimation) -> Self2715 fn from(value: BounceVector2NaturalMotionAnimation) -> Self { 2716 ::std::convert::Into::<NaturalMotionAnimation>::into(&value) 2717 } 2718 } 2719 impl ::std::convert::From<&BounceVector2NaturalMotionAnimation> for NaturalMotionAnimation { from(value: &BounceVector2NaturalMotionAnimation) -> Self2720 fn from(value: &BounceVector2NaturalMotionAnimation) -> Self { 2721 ::windows::runtime::Interface::cast(value).unwrap() 2722 } 2723 } 2724 impl<'a> ::windows::runtime::IntoParam<'a, NaturalMotionAnimation> for BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation>2725 fn into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation> { 2726 ::windows::runtime::Param::Owned(::std::convert::Into::<NaturalMotionAnimation>::into(self)) 2727 } 2728 } 2729 impl<'a> ::windows::runtime::IntoParam<'a, NaturalMotionAnimation> for &BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation>2730 fn into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation> { 2731 ::windows::runtime::Param::Owned(::std::convert::Into::<NaturalMotionAnimation>::into(::std::clone::Clone::clone(self))) 2732 } 2733 } 2734 impl ::std::convert::From<BounceVector2NaturalMotionAnimation> for CompositionAnimation { from(value: BounceVector2NaturalMotionAnimation) -> Self2735 fn from(value: BounceVector2NaturalMotionAnimation) -> Self { 2736 ::std::convert::Into::<CompositionAnimation>::into(&value) 2737 } 2738 } 2739 impl ::std::convert::From<&BounceVector2NaturalMotionAnimation> for CompositionAnimation { from(value: &BounceVector2NaturalMotionAnimation) -> Self2740 fn from(value: &BounceVector2NaturalMotionAnimation) -> Self { 2741 ::windows::runtime::Interface::cast(value).unwrap() 2742 } 2743 } 2744 impl<'a> ::windows::runtime::IntoParam<'a, CompositionAnimation> for BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation>2745 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation> { 2746 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionAnimation>::into(self)) 2747 } 2748 } 2749 impl<'a> ::windows::runtime::IntoParam<'a, CompositionAnimation> for &BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation>2750 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation> { 2751 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionAnimation>::into(::std::clone::Clone::clone(self))) 2752 } 2753 } 2754 impl ::std::convert::From<BounceVector2NaturalMotionAnimation> for CompositionObject { from(value: BounceVector2NaturalMotionAnimation) -> Self2755 fn from(value: BounceVector2NaturalMotionAnimation) -> Self { 2756 ::std::convert::Into::<CompositionObject>::into(&value) 2757 } 2758 } 2759 impl ::std::convert::From<&BounceVector2NaturalMotionAnimation> for CompositionObject { from(value: &BounceVector2NaturalMotionAnimation) -> Self2760 fn from(value: &BounceVector2NaturalMotionAnimation) -> Self { 2761 ::windows::runtime::Interface::cast(value).unwrap() 2762 } 2763 } 2764 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>2765 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 2766 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 2767 } 2768 } 2769 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &BounceVector2NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>2770 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 2771 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 2772 } 2773 } 2774 unsafe impl ::std::marker::Send for BounceVector2NaturalMotionAnimation {} 2775 unsafe impl ::std::marker::Sync for BounceVector2NaturalMotionAnimation {} 2776 #[repr(transparent)] 2777 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2778 pub struct BounceVector3NaturalMotionAnimation(::windows::runtime::IInspectable); 2779 impl BounceVector3NaturalMotionAnimation { Acceleration(&self) -> ::windows::runtime::Result<f32>2780 pub fn Acceleration(&self) -> ::windows::runtime::Result<f32> { 2781 let this = self; 2782 unsafe { 2783 let mut result__: f32 = ::std::mem::zeroed(); 2784 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 2785 } 2786 } SetAcceleration(&self, value: f32) -> ::windows::runtime::Result<()>2787 pub fn SetAcceleration(&self, value: f32) -> ::windows::runtime::Result<()> { 2788 let this = self; 2789 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 2790 } Restitution(&self) -> ::windows::runtime::Result<f32>2791 pub fn Restitution(&self) -> ::windows::runtime::Result<f32> { 2792 let this = self; 2793 unsafe { 2794 let mut result__: f32 = ::std::mem::zeroed(); 2795 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f32>(result__) 2796 } 2797 } SetRestitution(&self, value: f32) -> ::windows::runtime::Result<()>2798 pub fn SetRestitution(&self, value: f32) -> ::windows::runtime::Result<()> { 2799 let this = self; 2800 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 2801 } 2802 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>2803 pub fn Close(&self) -> ::windows::runtime::Result<()> { 2804 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 2805 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 2806 } ClearAllParameters(&self) -> ::windows::runtime::Result<()>2807 pub fn ClearAllParameters(&self) -> ::windows::runtime::Result<()> { 2808 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2809 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 2810 } ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()>2811 pub fn ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()> { 2812 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2813 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), key.into_param().abi()).ok() } 2814 } SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2815 pub fn SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2816 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2817 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2818 } 2819 #[cfg(feature = "Foundation_Numerics")] SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2820 pub fn SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2821 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2822 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2823 } 2824 #[cfg(feature = "Foundation_Numerics")] SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2825 pub fn SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2826 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2827 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2828 } 2829 #[cfg(feature = "Foundation_Numerics")] SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2830 pub fn SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2831 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2832 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2833 } SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()>2834 pub fn SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()> { 2835 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2836 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), key.into_param().abi(), compositionobject.into_param().abi()).ok() } 2837 } SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()>2838 pub fn SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()> { 2839 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2840 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 2841 } 2842 #[cfg(feature = "Foundation_Numerics")] SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2843 pub fn SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2844 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2845 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2846 } 2847 #[cfg(feature = "Foundation_Numerics")] SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2848 pub fn SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2849 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2850 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2851 } 2852 #[cfg(feature = "Foundation_Numerics")] SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>2853 pub fn SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2854 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 2855 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 2856 } Compositor(&self) -> ::windows::runtime::Result<Compositor>2857 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 2858 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2859 unsafe { 2860 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2861 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 2862 } 2863 } 2864 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>2865 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 2866 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2867 unsafe { 2868 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2869 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 2870 } 2871 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>2872 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 2873 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2874 unsafe { 2875 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2876 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 2877 } 2878 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>2879 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 2880 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2881 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 2882 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>2883 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 2884 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 2885 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 2886 } SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()>2887 pub fn SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()> { 2888 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 2889 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 2890 } Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2891 pub fn Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2892 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 2893 unsafe { 2894 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2895 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2896 } 2897 } SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>2898 pub fn SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2899 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 2900 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2901 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2902 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2903 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2904 unsafe { 2905 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2906 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2907 } 2908 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>2909 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2910 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2911 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2912 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>2913 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 2914 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2915 unsafe { 2916 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2917 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 2918 } 2919 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>2920 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2921 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2922 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2923 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>2924 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2925 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2926 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2927 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>2928 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2929 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 2930 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2931 } 2932 #[cfg(feature = "Foundation_Collections")] InitialValueExpressions(&self) -> ::windows::runtime::Result<InitialValueExpressionCollection>2933 pub fn InitialValueExpressions(&self) -> ::windows::runtime::Result<InitialValueExpressionCollection> { 2934 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation3>(self)?; 2935 unsafe { 2936 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2937 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<InitialValueExpressionCollection>(result__) 2938 } 2939 } 2940 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>2941 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 2942 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 2943 unsafe { 2944 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2945 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 2946 } 2947 } DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior>2948 pub fn DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior> { 2949 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2950 unsafe { 2951 let mut result__: AnimationDelayBehavior = ::std::mem::zeroed(); 2952 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationDelayBehavior>(result__) 2953 } 2954 } SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows::runtime::Result<()>2955 pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows::runtime::Result<()> { 2956 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2957 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 2958 } 2959 #[cfg(feature = "Foundation")] DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>2960 pub fn DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 2961 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2962 unsafe { 2963 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 2964 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 2965 } 2966 } 2967 #[cfg(feature = "Foundation")] SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>2968 pub fn SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2969 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2970 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2971 } StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior>2972 pub fn StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior> { 2973 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2974 unsafe { 2975 let mut result__: AnimationStopBehavior = ::std::mem::zeroed(); 2976 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationStopBehavior>(result__) 2977 } 2978 } SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()>2979 pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()> { 2980 let this = &::windows::runtime::Interface::cast::<INaturalMotionAnimation>(self)?; 2981 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 2982 } 2983 #[cfg(all(feature = "Foundation", feature = "Foundation_Numerics"))] FinalValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>>2984 pub fn FinalValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>> { 2985 let this = &::windows::runtime::Interface::cast::<IVector3NaturalMotionAnimation>(self)?; 2986 unsafe { 2987 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2988 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>>(result__) 2989 } 2990 } 2991 #[cfg(all(feature = "Foundation", feature = "Foundation_Numerics"))] SetFinalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>>>(&self, value: Param0) -> ::windows::runtime::Result<()>2992 pub fn SetFinalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2993 let this = &::windows::runtime::Interface::cast::<IVector3NaturalMotionAnimation>(self)?; 2994 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2995 } 2996 #[cfg(all(feature = "Foundation", feature = "Foundation_Numerics"))] InitialValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>>2997 pub fn InitialValue(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>> { 2998 let this = &::windows::runtime::Interface::cast::<IVector3NaturalMotionAnimation>(self)?; 2999 unsafe { 3000 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3001 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>>(result__) 3002 } 3003 } 3004 #[cfg(all(feature = "Foundation", feature = "Foundation_Numerics"))] SetInitialValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>>>(&self, value: Param0) -> ::windows::runtime::Result<()>3005 pub fn SetInitialValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Numerics::Vector3>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3006 let this = &::windows::runtime::Interface::cast::<IVector3NaturalMotionAnimation>(self)?; 3007 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3008 } 3009 #[cfg(feature = "Foundation_Numerics")] InitialVelocity(&self) -> ::windows::runtime::Result<super::super::Foundation::Numerics::Vector3>3010 pub fn InitialVelocity(&self) -> ::windows::runtime::Result<super::super::Foundation::Numerics::Vector3> { 3011 let this = &::windows::runtime::Interface::cast::<IVector3NaturalMotionAnimation>(self)?; 3012 unsafe { 3013 let mut result__: super::super::Foundation::Numerics::Vector3 = ::std::mem::zeroed(); 3014 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Numerics::Vector3>(result__) 3015 } 3016 } 3017 #[cfg(feature = "Foundation_Numerics")] SetInitialVelocity<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::runtime::Result<()>3018 pub fn SetInitialVelocity<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3019 let this = &::windows::runtime::Interface::cast::<IVector3NaturalMotionAnimation>(self)?; 3020 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3021 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>3022 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 3023 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 3024 unsafe { 3025 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3026 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 3027 } 3028 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>3029 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 3030 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 3031 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 3032 } SetExpressionReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, IAnimationObject>>(&self, parametername: Param0, source: Param1) -> ::windows::runtime::Result<()>3033 pub fn SetExpressionReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, IAnimationObject>>(&self, parametername: Param0, source: Param1) -> ::windows::runtime::Result<()> { 3034 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation4>(self)?; 3035 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), parametername.into_param().abi(), source.into_param().abi()).ok() } 3036 } 3037 } 3038 unsafe impl ::windows::runtime::RuntimeType for BounceVector3NaturalMotionAnimation { 3039 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.BounceVector3NaturalMotionAnimation;{47dabc31-10d3-4518-86f1-09caf742d113})"); 3040 } 3041 unsafe impl ::windows::runtime::Interface for BounceVector3NaturalMotionAnimation { 3042 type Vtable = IBounceVector3NaturalMotionAnimation_abi; 3043 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1205517361, 4307, 17688, [134, 241, 9, 202, 247, 66, 209, 19]); 3044 } 3045 impl ::windows::runtime::RuntimeName for BounceVector3NaturalMotionAnimation { 3046 const NAME: &'static str = "Windows.UI.Composition.BounceVector3NaturalMotionAnimation"; 3047 } 3048 impl ::std::convert::From<BounceVector3NaturalMotionAnimation> for ::windows::runtime::IUnknown { from(value: BounceVector3NaturalMotionAnimation) -> Self3049 fn from(value: BounceVector3NaturalMotionAnimation) -> Self { 3050 unsafe { ::std::mem::transmute(value) } 3051 } 3052 } 3053 impl ::std::convert::From<&BounceVector3NaturalMotionAnimation> for ::windows::runtime::IUnknown { from(value: &BounceVector3NaturalMotionAnimation) -> Self3054 fn from(value: &BounceVector3NaturalMotionAnimation) -> Self { 3055 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3056 } 3057 } 3058 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3059 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3060 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3061 } 3062 } 3063 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3064 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3065 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3066 } 3067 } 3068 impl ::std::convert::From<BounceVector3NaturalMotionAnimation> for ::windows::runtime::IInspectable { from(value: BounceVector3NaturalMotionAnimation) -> Self3069 fn from(value: BounceVector3NaturalMotionAnimation) -> Self { 3070 value.0 3071 } 3072 } 3073 impl ::std::convert::From<&BounceVector3NaturalMotionAnimation> for ::windows::runtime::IInspectable { from(value: &BounceVector3NaturalMotionAnimation) -> Self3074 fn from(value: &BounceVector3NaturalMotionAnimation) -> Self { 3075 value.0.clone() 3076 } 3077 } 3078 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3079 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3080 ::windows::runtime::Param::Owned(self.0) 3081 } 3082 } 3083 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3084 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3085 ::windows::runtime::Param::Borrowed(&self.0) 3086 } 3087 } 3088 #[cfg(feature = "Foundation")] 3089 impl ::std::convert::TryFrom<BounceVector3NaturalMotionAnimation> for super::super::Foundation::IClosable { 3090 type Error = ::windows::runtime::Error; try_from(value: BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self>3091 fn try_from(value: BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 3092 ::std::convert::TryFrom::try_from(&value) 3093 } 3094 } 3095 #[cfg(feature = "Foundation")] 3096 impl ::std::convert::TryFrom<&BounceVector3NaturalMotionAnimation> for super::super::Foundation::IClosable { 3097 type Error = ::windows::runtime::Error; try_from(value: &BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self>3098 fn try_from(value: &BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 3099 ::windows::runtime::Interface::cast(value) 3100 } 3101 } 3102 #[cfg(feature = "Foundation")] 3103 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>3104 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 3105 ::windows::runtime::IntoParam::into_param(&self) 3106 } 3107 } 3108 #[cfg(feature = "Foundation")] 3109 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>3110 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 3111 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3112 } 3113 } 3114 impl ::std::convert::TryFrom<BounceVector3NaturalMotionAnimation> for ICompositionAnimationBase { 3115 type Error = ::windows::runtime::Error; try_from(value: BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self>3116 fn try_from(value: BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 3117 ::std::convert::TryFrom::try_from(&value) 3118 } 3119 } 3120 impl ::std::convert::TryFrom<&BounceVector3NaturalMotionAnimation> for ICompositionAnimationBase { 3121 type Error = ::windows::runtime::Error; try_from(value: &BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self>3122 fn try_from(value: &BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 3123 ::windows::runtime::Interface::cast(value) 3124 } 3125 } 3126 impl<'a> ::windows::runtime::IntoParam<'a, ICompositionAnimationBase> for BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase>3127 fn into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase> { 3128 ::windows::runtime::IntoParam::into_param(&self) 3129 } 3130 } 3131 impl<'a> ::windows::runtime::IntoParam<'a, ICompositionAnimationBase> for &BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase>3132 fn into_param(self) -> ::windows::runtime::Param<'a, ICompositionAnimationBase> { 3133 ::std::convert::TryInto::<ICompositionAnimationBase>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3134 } 3135 } 3136 impl ::std::convert::TryFrom<BounceVector3NaturalMotionAnimation> for IAnimationObject { 3137 type Error = ::windows::runtime::Error; try_from(value: BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self>3138 fn try_from(value: BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 3139 ::std::convert::TryFrom::try_from(&value) 3140 } 3141 } 3142 impl ::std::convert::TryFrom<&BounceVector3NaturalMotionAnimation> for IAnimationObject { 3143 type Error = ::windows::runtime::Error; try_from(value: &BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self>3144 fn try_from(value: &BounceVector3NaturalMotionAnimation) -> ::windows::runtime::Result<Self> { 3145 ::windows::runtime::Interface::cast(value) 3146 } 3147 } 3148 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>3149 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 3150 ::windows::runtime::IntoParam::into_param(&self) 3151 } 3152 } 3153 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>3154 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 3155 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3156 } 3157 } 3158 impl ::std::convert::From<BounceVector3NaturalMotionAnimation> for Vector3NaturalMotionAnimation { from(value: BounceVector3NaturalMotionAnimation) -> Self3159 fn from(value: BounceVector3NaturalMotionAnimation) -> Self { 3160 ::std::convert::Into::<Vector3NaturalMotionAnimation>::into(&value) 3161 } 3162 } 3163 impl ::std::convert::From<&BounceVector3NaturalMotionAnimation> for Vector3NaturalMotionAnimation { from(value: &BounceVector3NaturalMotionAnimation) -> Self3164 fn from(value: &BounceVector3NaturalMotionAnimation) -> Self { 3165 ::windows::runtime::Interface::cast(value).unwrap() 3166 } 3167 } 3168 impl<'a> ::windows::runtime::IntoParam<'a, Vector3NaturalMotionAnimation> for BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, Vector3NaturalMotionAnimation>3169 fn into_param(self) -> ::windows::runtime::Param<'a, Vector3NaturalMotionAnimation> { 3170 ::windows::runtime::Param::Owned(::std::convert::Into::<Vector3NaturalMotionAnimation>::into(self)) 3171 } 3172 } 3173 impl<'a> ::windows::runtime::IntoParam<'a, Vector3NaturalMotionAnimation> for &BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, Vector3NaturalMotionAnimation>3174 fn into_param(self) -> ::windows::runtime::Param<'a, Vector3NaturalMotionAnimation> { 3175 ::windows::runtime::Param::Owned(::std::convert::Into::<Vector3NaturalMotionAnimation>::into(::std::clone::Clone::clone(self))) 3176 } 3177 } 3178 impl ::std::convert::From<BounceVector3NaturalMotionAnimation> for NaturalMotionAnimation { from(value: BounceVector3NaturalMotionAnimation) -> Self3179 fn from(value: BounceVector3NaturalMotionAnimation) -> Self { 3180 ::std::convert::Into::<NaturalMotionAnimation>::into(&value) 3181 } 3182 } 3183 impl ::std::convert::From<&BounceVector3NaturalMotionAnimation> for NaturalMotionAnimation { from(value: &BounceVector3NaturalMotionAnimation) -> Self3184 fn from(value: &BounceVector3NaturalMotionAnimation) -> Self { 3185 ::windows::runtime::Interface::cast(value).unwrap() 3186 } 3187 } 3188 impl<'a> ::windows::runtime::IntoParam<'a, NaturalMotionAnimation> for BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation>3189 fn into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation> { 3190 ::windows::runtime::Param::Owned(::std::convert::Into::<NaturalMotionAnimation>::into(self)) 3191 } 3192 } 3193 impl<'a> ::windows::runtime::IntoParam<'a, NaturalMotionAnimation> for &BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation>3194 fn into_param(self) -> ::windows::runtime::Param<'a, NaturalMotionAnimation> { 3195 ::windows::runtime::Param::Owned(::std::convert::Into::<NaturalMotionAnimation>::into(::std::clone::Clone::clone(self))) 3196 } 3197 } 3198 impl ::std::convert::From<BounceVector3NaturalMotionAnimation> for CompositionAnimation { from(value: BounceVector3NaturalMotionAnimation) -> Self3199 fn from(value: BounceVector3NaturalMotionAnimation) -> Self { 3200 ::std::convert::Into::<CompositionAnimation>::into(&value) 3201 } 3202 } 3203 impl ::std::convert::From<&BounceVector3NaturalMotionAnimation> for CompositionAnimation { from(value: &BounceVector3NaturalMotionAnimation) -> Self3204 fn from(value: &BounceVector3NaturalMotionAnimation) -> Self { 3205 ::windows::runtime::Interface::cast(value).unwrap() 3206 } 3207 } 3208 impl<'a> ::windows::runtime::IntoParam<'a, CompositionAnimation> for BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation>3209 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation> { 3210 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionAnimation>::into(self)) 3211 } 3212 } 3213 impl<'a> ::windows::runtime::IntoParam<'a, CompositionAnimation> for &BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation>3214 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionAnimation> { 3215 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionAnimation>::into(::std::clone::Clone::clone(self))) 3216 } 3217 } 3218 impl ::std::convert::From<BounceVector3NaturalMotionAnimation> for CompositionObject { from(value: BounceVector3NaturalMotionAnimation) -> Self3219 fn from(value: BounceVector3NaturalMotionAnimation) -> Self { 3220 ::std::convert::Into::<CompositionObject>::into(&value) 3221 } 3222 } 3223 impl ::std::convert::From<&BounceVector3NaturalMotionAnimation> for CompositionObject { from(value: &BounceVector3NaturalMotionAnimation) -> Self3224 fn from(value: &BounceVector3NaturalMotionAnimation) -> Self { 3225 ::windows::runtime::Interface::cast(value).unwrap() 3226 } 3227 } 3228 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>3229 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 3230 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 3231 } 3232 } 3233 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &BounceVector3NaturalMotionAnimation { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>3234 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 3235 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 3236 } 3237 } 3238 unsafe impl ::std::marker::Send for BounceVector3NaturalMotionAnimation {} 3239 unsafe impl ::std::marker::Sync for BounceVector3NaturalMotionAnimation {} 3240 #[repr(transparent)] 3241 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3242 pub struct CircleEasingFunction(::windows::runtime::IInspectable); 3243 impl CircleEasingFunction { Mode(&self) -> ::windows::runtime::Result<CompositionEasingFunctionMode>3244 pub fn Mode(&self) -> ::windows::runtime::Result<CompositionEasingFunctionMode> { 3245 let this = self; 3246 unsafe { 3247 let mut result__: CompositionEasingFunctionMode = ::std::mem::zeroed(); 3248 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionEasingFunctionMode>(result__) 3249 } 3250 } 3251 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>3252 pub fn Close(&self) -> ::windows::runtime::Result<()> { 3253 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 3254 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 3255 } Compositor(&self) -> ::windows::runtime::Result<Compositor>3256 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 3257 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3258 unsafe { 3259 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3260 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 3261 } 3262 } 3263 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>3264 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 3265 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3266 unsafe { 3267 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3268 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 3269 } 3270 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>3271 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 3272 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3273 unsafe { 3274 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3275 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 3276 } 3277 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>3278 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 3279 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3280 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 3281 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>3282 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 3283 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3284 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 3285 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3286 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3287 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3288 unsafe { 3289 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3290 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3291 } 3292 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>3293 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3294 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3295 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3296 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>3297 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 3298 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3299 unsafe { 3300 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3301 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 3302 } 3303 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>3304 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3305 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3306 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3307 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>3308 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3309 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3310 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3311 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>3312 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3313 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3314 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3315 } 3316 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue>3317 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::System::DispatcherQueue> { 3318 let this = &::windows::runtime::Interface::cast::<ICompositionObject3>(self)?; 3319 unsafe { 3320 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3321 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::System::DispatcherQueue>(result__) 3322 } 3323 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController>3324 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<AnimationController> { 3325 let this = &::windows::runtime::Interface::cast::<ICompositionObject4>(self)?; 3326 unsafe { 3327 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3328 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<AnimationController>(result__) 3329 } 3330 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>3331 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 3332 let this = &::windows::runtime::Interface::cast::<IAnimationObject>(self)?; 3333 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 3334 } 3335 } 3336 unsafe impl ::windows::runtime::RuntimeType for CircleEasingFunction { 3337 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.CircleEasingFunction;{1e07222a-6f82-5a28-8748-2e92fc46ee2b})"); 3338 } 3339 unsafe impl ::windows::runtime::Interface for CircleEasingFunction { 3340 type Vtable = ICircleEasingFunction_abi; 3341 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(503783978, 28546, 23080, [135, 72, 46, 146, 252, 70, 238, 43]); 3342 } 3343 impl ::windows::runtime::RuntimeName for CircleEasingFunction { 3344 const NAME: &'static str = "Windows.UI.Composition.CircleEasingFunction"; 3345 } 3346 impl ::std::convert::From<CircleEasingFunction> for ::windows::runtime::IUnknown { from(value: CircleEasingFunction) -> Self3347 fn from(value: CircleEasingFunction) -> Self { 3348 unsafe { ::std::mem::transmute(value) } 3349 } 3350 } 3351 impl ::std::convert::From<&CircleEasingFunction> for ::windows::runtime::IUnknown { from(value: &CircleEasingFunction) -> Self3352 fn from(value: &CircleEasingFunction) -> Self { 3353 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3354 } 3355 } 3356 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3357 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3358 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3359 } 3360 } 3361 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3362 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3363 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3364 } 3365 } 3366 impl ::std::convert::From<CircleEasingFunction> for ::windows::runtime::IInspectable { from(value: CircleEasingFunction) -> Self3367 fn from(value: CircleEasingFunction) -> Self { 3368 value.0 3369 } 3370 } 3371 impl ::std::convert::From<&CircleEasingFunction> for ::windows::runtime::IInspectable { from(value: &CircleEasingFunction) -> Self3372 fn from(value: &CircleEasingFunction) -> Self { 3373 value.0.clone() 3374 } 3375 } 3376 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3377 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3378 ::windows::runtime::Param::Owned(self.0) 3379 } 3380 } 3381 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3382 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3383 ::windows::runtime::Param::Borrowed(&self.0) 3384 } 3385 } 3386 #[cfg(feature = "Foundation")] 3387 impl ::std::convert::TryFrom<CircleEasingFunction> for super::super::Foundation::IClosable { 3388 type Error = ::windows::runtime::Error; try_from(value: CircleEasingFunction) -> ::windows::runtime::Result<Self>3389 fn try_from(value: CircleEasingFunction) -> ::windows::runtime::Result<Self> { 3390 ::std::convert::TryFrom::try_from(&value) 3391 } 3392 } 3393 #[cfg(feature = "Foundation")] 3394 impl ::std::convert::TryFrom<&CircleEasingFunction> for super::super::Foundation::IClosable { 3395 type Error = ::windows::runtime::Error; try_from(value: &CircleEasingFunction) -> ::windows::runtime::Result<Self>3396 fn try_from(value: &CircleEasingFunction) -> ::windows::runtime::Result<Self> { 3397 ::windows::runtime::Interface::cast(value) 3398 } 3399 } 3400 #[cfg(feature = "Foundation")] 3401 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>3402 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 3403 ::windows::runtime::IntoParam::into_param(&self) 3404 } 3405 } 3406 #[cfg(feature = "Foundation")] 3407 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>3408 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 3409 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3410 } 3411 } 3412 impl ::std::convert::TryFrom<CircleEasingFunction> for IAnimationObject { 3413 type Error = ::windows::runtime::Error; try_from(value: CircleEasingFunction) -> ::windows::runtime::Result<Self>3414 fn try_from(value: CircleEasingFunction) -> ::windows::runtime::Result<Self> { 3415 ::std::convert::TryFrom::try_from(&value) 3416 } 3417 } 3418 impl ::std::convert::TryFrom<&CircleEasingFunction> for IAnimationObject { 3419 type Error = ::windows::runtime::Error; try_from(value: &CircleEasingFunction) -> ::windows::runtime::Result<Self>3420 fn try_from(value: &CircleEasingFunction) -> ::windows::runtime::Result<Self> { 3421 ::windows::runtime::Interface::cast(value) 3422 } 3423 } 3424 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>3425 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 3426 ::windows::runtime::IntoParam::into_param(&self) 3427 } 3428 } 3429 impl<'a> ::windows::runtime::IntoParam<'a, IAnimationObject> for &CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject>3430 fn into_param(self) -> ::windows::runtime::Param<'a, IAnimationObject> { 3431 ::std::convert::TryInto::<IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3432 } 3433 } 3434 impl ::std::convert::From<CircleEasingFunction> for CompositionEasingFunction { from(value: CircleEasingFunction) -> Self3435 fn from(value: CircleEasingFunction) -> Self { 3436 ::std::convert::Into::<CompositionEasingFunction>::into(&value) 3437 } 3438 } 3439 impl ::std::convert::From<&CircleEasingFunction> for CompositionEasingFunction { from(value: &CircleEasingFunction) -> Self3440 fn from(value: &CircleEasingFunction) -> Self { 3441 ::windows::runtime::Interface::cast(value).unwrap() 3442 } 3443 } 3444 impl<'a> ::windows::runtime::IntoParam<'a, CompositionEasingFunction> for CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction>3445 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction> { 3446 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionEasingFunction>::into(self)) 3447 } 3448 } 3449 impl<'a> ::windows::runtime::IntoParam<'a, CompositionEasingFunction> for &CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction>3450 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionEasingFunction> { 3451 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionEasingFunction>::into(::std::clone::Clone::clone(self))) 3452 } 3453 } 3454 impl ::std::convert::From<CircleEasingFunction> for CompositionObject { from(value: CircleEasingFunction) -> Self3455 fn from(value: CircleEasingFunction) -> Self { 3456 ::std::convert::Into::<CompositionObject>::into(&value) 3457 } 3458 } 3459 impl ::std::convert::From<&CircleEasingFunction> for CompositionObject { from(value: &CircleEasingFunction) -> Self3460 fn from(value: &CircleEasingFunction) -> Self { 3461 ::windows::runtime::Interface::cast(value).unwrap() 3462 } 3463 } 3464 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>3465 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 3466 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(self)) 3467 } 3468 } 3469 impl<'a> ::windows::runtime::IntoParam<'a, CompositionObject> for &CircleEasingFunction { into_param(self) -> ::windows::runtime::Param<'a, CompositionObject>3470 fn into_param(self) -> ::windows::runtime::Param<'a, CompositionObject> { 3471 ::windows::runtime::Param::Owned(::std::convert::Into::<CompositionObject>::into(::std::clone::Clone::clone(self))) 3472 } 3473 } 3474 unsafe impl ::std::marker::Send for CircleEasingFunction {} 3475 unsafe impl ::std::marker::Sync for CircleEasingFunction {} 3476 #[repr(transparent)] 3477 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3478 pub struct ColorKeyFrameAnimation(::windows::runtime::IInspectable); 3479 impl ColorKeyFrameAnimation { InterpolationColorSpace(&self) -> ::windows::runtime::Result<CompositionColorSpace>3480 pub fn InterpolationColorSpace(&self) -> ::windows::runtime::Result<CompositionColorSpace> { 3481 let this = self; 3482 unsafe { 3483 let mut result__: CompositionColorSpace = ::std::mem::zeroed(); 3484 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionColorSpace>(result__) 3485 } 3486 } SetInterpolationColorSpace(&self, value: CompositionColorSpace) -> ::windows::runtime::Result<()>3487 pub fn SetInterpolationColorSpace(&self, value: CompositionColorSpace) -> ::windows::runtime::Result<()> { 3488 let this = self; 3489 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 3490 } InsertKeyFrame<'a, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, normalizedprogresskey: f32, value: Param1) -> ::windows::runtime::Result<()>3491 pub fn InsertKeyFrame<'a, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, normalizedprogresskey: f32, value: Param1) -> ::windows::runtime::Result<()> { 3492 let this = self; 3493 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), normalizedprogresskey, value.into_param().abi()).ok() } 3494 } InsertKeyFrameWithEasingFunction<'a, Param1: ::windows::runtime::IntoParam<'a, super::Color>, Param2: ::windows::runtime::IntoParam<'a, CompositionEasingFunction>>(&self, normalizedprogresskey: f32, value: Param1, easingfunction: Param2) -> ::windows::runtime::Result<()>3495 pub fn InsertKeyFrameWithEasingFunction<'a, Param1: ::windows::runtime::IntoParam<'a, super::Color>, Param2: ::windows::runtime::IntoParam<'a, CompositionEasingFunction>>(&self, normalizedprogresskey: f32, value: Param1, easingfunction: Param2) -> ::windows::runtime::Result<()> { 3496 let this = self; 3497 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), normalizedprogresskey, value.into_param().abi(), easingfunction.into_param().abi()).ok() } 3498 } 3499 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>3500 pub fn Close(&self) -> ::windows::runtime::Result<()> { 3501 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 3502 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 3503 } ClearAllParameters(&self) -> ::windows::runtime::Result<()>3504 pub fn ClearAllParameters(&self) -> ::windows::runtime::Result<()> { 3505 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3506 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 3507 } ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()>3508 pub fn ClearParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()> { 3509 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3510 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), key.into_param().abi()).ok() } 3511 } SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>3512 pub fn SetColorParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::Color>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 3513 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3514 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 3515 } 3516 #[cfg(feature = "Foundation_Numerics")] SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>3517 pub fn SetMatrix3x2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix3x2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 3518 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3519 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 3520 } 3521 #[cfg(feature = "Foundation_Numerics")] SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>3522 pub fn SetMatrix4x4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Matrix4x4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 3523 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3524 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 3525 } 3526 #[cfg(feature = "Foundation_Numerics")] SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>3527 pub fn SetQuaternionParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 3528 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3529 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 3530 } SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()>3531 pub fn SetReferenceParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionObject>>(&self, key: Param0, compositionobject: Param1) -> ::windows::runtime::Result<()> { 3532 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3533 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), key.into_param().abi(), compositionobject.into_param().abi()).ok() } 3534 } SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()>3535 pub fn SetScalarParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: f32) -> ::windows::runtime::Result<()> { 3536 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3537 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 3538 } 3539 #[cfg(feature = "Foundation_Numerics")] SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>3540 pub fn SetVector2Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 3541 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3542 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 3543 } 3544 #[cfg(feature = "Foundation_Numerics")] SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>3545 pub fn SetVector3Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 3546 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3547 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 3548 } 3549 #[cfg(feature = "Foundation_Numerics")] SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()>3550 pub fn SetVector4Parameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector4>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<()> { 3551 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation>(self)?; 3552 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi()).ok() } 3553 } Compositor(&self) -> ::windows::runtime::Result<Compositor>3554 pub fn Compositor(&self) -> ::windows::runtime::Result<Compositor> { 3555 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3556 unsafe { 3557 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3558 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Compositor>(result__) 3559 } 3560 } 3561 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher>3562 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::Core::CoreDispatcher> { 3563 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3564 unsafe { 3565 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3566 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Core::CoreDispatcher>(result__) 3567 } 3568 } Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet>3569 pub fn Properties(&self) -> ::windows::runtime::Result<CompositionPropertySet> { 3570 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3571 unsafe { 3572 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3573 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CompositionPropertySet>(result__) 3574 } 3575 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>3576 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 3577 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3578 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 3579 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>3580 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 3581 let this = &::windows::runtime::Interface::cast::<ICompositionObject>(self)?; 3582 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 3583 } 3584 #[cfg(feature = "Foundation")] DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>3585 pub fn DelayTime(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 3586 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3587 unsafe { 3588 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 3589 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 3590 } 3591 } 3592 #[cfg(feature = "Foundation")] SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>3593 pub fn SetDelayTime<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3594 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3595 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3596 } 3597 #[cfg(feature = "Foundation")] Duration(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>3598 pub fn Duration(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 3599 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3600 unsafe { 3601 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 3602 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 3603 } 3604 } 3605 #[cfg(feature = "Foundation")] SetDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>3606 pub fn SetDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3607 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3608 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3609 } IterationBehavior(&self) -> ::windows::runtime::Result<AnimationIterationBehavior>3610 pub fn IterationBehavior(&self) -> ::windows::runtime::Result<AnimationIterationBehavior> { 3611 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3612 unsafe { 3613 let mut result__: AnimationIterationBehavior = ::std::mem::zeroed(); 3614 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationIterationBehavior>(result__) 3615 } 3616 } SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows::runtime::Result<()>3617 pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows::runtime::Result<()> { 3618 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3619 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 3620 } IterationCount(&self) -> ::windows::runtime::Result<i32>3621 pub fn IterationCount(&self) -> ::windows::runtime::Result<i32> { 3622 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3623 unsafe { 3624 let mut result__: i32 = ::std::mem::zeroed(); 3625 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 3626 } 3627 } SetIterationCount(&self, value: i32) -> ::windows::runtime::Result<()>3628 pub fn SetIterationCount(&self, value: i32) -> ::windows::runtime::Result<()> { 3629 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3630 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 3631 } KeyFrameCount(&self) -> ::windows::runtime::Result<i32>3632 pub fn KeyFrameCount(&self) -> ::windows::runtime::Result<i32> { 3633 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3634 unsafe { 3635 let mut result__: i32 = ::std::mem::zeroed(); 3636 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 3637 } 3638 } StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior>3639 pub fn StopBehavior(&self) -> ::windows::runtime::Result<AnimationStopBehavior> { 3640 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3641 unsafe { 3642 let mut result__: AnimationStopBehavior = ::std::mem::zeroed(); 3643 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationStopBehavior>(result__) 3644 } 3645 } SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()>3646 pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows::runtime::Result<()> { 3647 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3648 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value).ok() } 3649 } InsertExpressionKeyFrame<'a, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, normalizedprogresskey: f32, value: Param1) -> ::windows::runtime::Result<()>3650 pub fn InsertExpressionKeyFrame<'a, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, normalizedprogresskey: f32, value: Param1) -> ::windows::runtime::Result<()> { 3651 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3652 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), normalizedprogresskey, value.into_param().abi()).ok() } 3653 } InsertExpressionKeyFrameWithEasingFunction<'a, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param2: ::windows::runtime::IntoParam<'a, CompositionEasingFunction>>(&self, normalizedprogresskey: f32, value: Param1, easingfunction: Param2) -> ::windows::runtime::Result<()>3654 pub fn InsertExpressionKeyFrameWithEasingFunction<'a, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param2: ::windows::runtime::IntoParam<'a, CompositionEasingFunction>>(&self, normalizedprogresskey: f32, value: Param1, easingfunction: Param2) -> ::windows::runtime::Result<()> { 3655 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation>(self)?; 3656 unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), normalizedprogresskey, value.into_param().abi(), easingfunction.into_param().abi()).ok() } 3657 } SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()>3658 pub fn SetBooleanParameter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, value: bool) -> ::windows::runtime::Result<()> { 3659 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 3660 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), key.into_param().abi(), value).ok() } 3661 } Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3662 pub fn Target(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3663 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 3664 unsafe { 3665 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3666 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3667 } 3668 } SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>3669 pub fn SetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3670 let this = &::windows::runtime::Interface::cast::<ICompositionAnimation2>(self)?; 3671 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3672 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3673 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3674 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3675 unsafe { 3676 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3677 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3678 } 3679 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>3680 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3681 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3682 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3683 } ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection>3684 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<ImplicitAnimationCollection> { 3685 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3686 unsafe { 3687 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3688 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ImplicitAnimationCollection>(result__) 3689 } 3690 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>3691 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3692 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3693 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3694 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>3695 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3696 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3697 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3698 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>3699 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3700 let this = &::windows::runtime::Interface::cast::<ICompositionObject2>(self)?; 3701 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3702 } Direction(&self) -> ::windows::runtime::Result<AnimationDirection>3703 pub fn Direction(&self) -> ::windows::runtime::Result<AnimationDirection> { 3704 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation2>(self)?; 3705 unsafe { 3706 let mut result__: AnimationDirection = ::std::mem::zeroed(); 3707 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationDirection>(result__) 3708 } 3709 } SetDirection(&self, value: AnimationDirection) -> ::windows::runtime::Result<()>3710 pub fn SetDirection(&self, value: AnimationDirection) -> ::windows::runtime::Result<()> { 3711 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation2>(self)?; 3712 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 3713 } DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior>3714 pub fn DelayBehavior(&self) -> ::windows::runtime::Result<AnimationDelayBehavior> { 3715 let this = &::windows::runtime::Interface::cast::<IKeyFrameAnimation3>(self)?; 3716 unsafe { 3717 let mut result__: AnimationDelayBehavior = ::std::mem::zeroed(); 3718 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<AnimationDelayBehavior>(result__) 3719 } 3720 } SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows::runtime::Result<()>3721