1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 #[repr(transparent)] 3 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4 pub struct DesktopWindowTarget(::windows::runtime::IInspectable); 5 impl DesktopWindowTarget { IsTopmost(&self) -> ::windows::runtime::Result<bool>6 pub fn IsTopmost(&self) -> ::windows::runtime::Result<bool> { 7 let this = self; 8 unsafe { 9 let mut result__: bool = ::std::mem::zeroed(); 10 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 11 } 12 } 13 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>14 pub fn Close(&self) -> ::windows::runtime::Result<()> { 15 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::IClosable>(self)?; 16 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 17 } Compositor(&self) -> ::windows::runtime::Result<super::Compositor>18 pub fn Compositor(&self) -> ::windows::runtime::Result<super::Compositor> { 19 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject>(self)?; 20 unsafe { 21 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 22 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Compositor>(result__) 23 } 24 } 25 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>26 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 27 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject>(self)?; 28 unsafe { 29 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 30 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 31 } 32 } Properties(&self) -> ::windows::runtime::Result<super::CompositionPropertySet>33 pub fn Properties(&self) -> ::windows::runtime::Result<super::CompositionPropertySet> { 34 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject>(self)?; 35 unsafe { 36 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 37 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::CompositionPropertySet>(result__) 38 } 39 } StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()>40 pub fn StartAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::CompositionAnimation>>(&self, propertyname: Param0, animation: Param1) -> ::windows::runtime::Result<()> { 41 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject>(self)?; 42 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), animation.into_param().abi()).ok() } 43 } StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()>44 pub fn StopAnimation<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<()> { 45 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject>(self)?; 46 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), propertyname.into_param().abi()).ok() } 47 } Root(&self) -> ::windows::runtime::Result<super::Visual>48 pub fn Root(&self) -> ::windows::runtime::Result<super::Visual> { 49 let this = &::windows::runtime::Interface::cast::<super::ICompositionTarget>(self)?; 50 unsafe { 51 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 52 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Visual>(result__) 53 } 54 } SetRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::Visual>>(&self, value: Param0) -> ::windows::runtime::Result<()>55 pub fn SetRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::Visual>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 56 let this = &::windows::runtime::Interface::cast::<super::ICompositionTarget>(self)?; 57 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 58 } Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>59 pub fn Comment(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 60 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject2>(self)?; 61 unsafe { 62 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 63 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 64 } 65 } SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>66 pub fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 67 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject2>(self)?; 68 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 69 } ImplicitAnimations(&self) -> ::windows::runtime::Result<super::ImplicitAnimationCollection>70 pub fn ImplicitAnimations(&self) -> ::windows::runtime::Result<super::ImplicitAnimationCollection> { 71 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject2>(self)?; 72 unsafe { 73 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 74 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::ImplicitAnimationCollection>(result__) 75 } 76 } SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, super::ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>77 pub fn SetImplicitAnimations<'a, Param0: ::windows::runtime::IntoParam<'a, super::ImplicitAnimationCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 78 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject2>(self)?; 79 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 80 } StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, super::ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>81 pub fn StartAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, super::ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 82 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject2>(self)?; 83 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 84 } StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, super::ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()>85 pub fn StopAnimationGroup<'a, Param0: ::windows::runtime::IntoParam<'a, super::ICompositionAnimationBase>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 86 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject2>(self)?; 87 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 88 } 89 #[cfg(feature = "System")] DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::super::System::DispatcherQueue>90 pub fn DispatcherQueue(&self) -> ::windows::runtime::Result<super::super::super::System::DispatcherQueue> { 91 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject3>(self)?; 92 unsafe { 93 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 94 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::System::DispatcherQueue>(result__) 95 } 96 } TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<super::AnimationController>97 pub fn TryGetAnimationController<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, propertyname: Param0) -> ::windows::runtime::Result<super::AnimationController> { 98 let this = &::windows::runtime::Interface::cast::<super::ICompositionObject4>(self)?; 99 unsafe { 100 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 101 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), &mut result__).from_abi::<super::AnimationController>(result__) 102 } 103 } PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()>104 pub fn PopulatePropertyInfo<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::runtime::Result<()> { 105 let this = &::windows::runtime::Interface::cast::<super::IAnimationObject>(self)?; 106 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } 107 } 108 } 109 unsafe impl ::windows::runtime::RuntimeType for DesktopWindowTarget { 110 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.Desktop.DesktopWindowTarget;{6329d6ca-3366-490e-9db3-25312929ac51})"); 111 } 112 unsafe impl ::windows::runtime::Interface for DesktopWindowTarget { 113 type Vtable = IDesktopWindowTarget_abi; 114 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1663686346, 13158, 18702, [157, 179, 37, 49, 41, 41, 172, 81]); 115 } 116 impl ::windows::runtime::RuntimeName for DesktopWindowTarget { 117 const NAME: &'static str = "Windows.UI.Composition.Desktop.DesktopWindowTarget"; 118 } 119 impl ::std::convert::From<DesktopWindowTarget> for ::windows::runtime::IUnknown { from(value: DesktopWindowTarget) -> Self120 fn from(value: DesktopWindowTarget) -> Self { 121 unsafe { ::std::mem::transmute(value) } 122 } 123 } 124 impl ::std::convert::From<&DesktopWindowTarget> for ::windows::runtime::IUnknown { from(value: &DesktopWindowTarget) -> Self125 fn from(value: &DesktopWindowTarget) -> Self { 126 ::std::convert::From::from(::std::clone::Clone::clone(value)) 127 } 128 } 129 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>130 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 131 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 132 } 133 } 134 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>135 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 136 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 137 } 138 } 139 impl ::std::convert::From<DesktopWindowTarget> for ::windows::runtime::IInspectable { from(value: DesktopWindowTarget) -> Self140 fn from(value: DesktopWindowTarget) -> Self { 141 value.0 142 } 143 } 144 impl ::std::convert::From<&DesktopWindowTarget> for ::windows::runtime::IInspectable { from(value: &DesktopWindowTarget) -> Self145 fn from(value: &DesktopWindowTarget) -> Self { 146 value.0.clone() 147 } 148 } 149 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>150 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 151 ::windows::runtime::Param::Owned(self.0) 152 } 153 } 154 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>155 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 156 ::windows::runtime::Param::Borrowed(&self.0) 157 } 158 } 159 #[cfg(feature = "Foundation")] 160 impl ::std::convert::TryFrom<DesktopWindowTarget> for super::super::super::Foundation::IClosable { 161 type Error = ::windows::runtime::Error; try_from(value: DesktopWindowTarget) -> ::windows::runtime::Result<Self>162 fn try_from(value: DesktopWindowTarget) -> ::windows::runtime::Result<Self> { 163 ::std::convert::TryFrom::try_from(&value) 164 } 165 } 166 #[cfg(feature = "Foundation")] 167 impl ::std::convert::TryFrom<&DesktopWindowTarget> for super::super::super::Foundation::IClosable { 168 type Error = ::windows::runtime::Error; try_from(value: &DesktopWindowTarget) -> ::windows::runtime::Result<Self>169 fn try_from(value: &DesktopWindowTarget) -> ::windows::runtime::Result<Self> { 170 ::windows::runtime::Interface::cast(value) 171 } 172 } 173 #[cfg(feature = "Foundation")] 174 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::IClosable> for DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::IClosable>175 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::IClosable> { 176 ::windows::runtime::IntoParam::into_param(&self) 177 } 178 } 179 #[cfg(feature = "Foundation")] 180 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::IClosable> for &DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::IClosable>181 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::IClosable> { 182 ::std::convert::TryInto::<super::super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 183 } 184 } 185 impl ::std::convert::TryFrom<DesktopWindowTarget> for super::IAnimationObject { 186 type Error = ::windows::runtime::Error; try_from(value: DesktopWindowTarget) -> ::windows::runtime::Result<Self>187 fn try_from(value: DesktopWindowTarget) -> ::windows::runtime::Result<Self> { 188 ::std::convert::TryFrom::try_from(&value) 189 } 190 } 191 impl ::std::convert::TryFrom<&DesktopWindowTarget> for super::IAnimationObject { 192 type Error = ::windows::runtime::Error; try_from(value: &DesktopWindowTarget) -> ::windows::runtime::Result<Self>193 fn try_from(value: &DesktopWindowTarget) -> ::windows::runtime::Result<Self> { 194 ::windows::runtime::Interface::cast(value) 195 } 196 } 197 impl<'a> ::windows::runtime::IntoParam<'a, super::IAnimationObject> for DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, super::IAnimationObject>198 fn into_param(self) -> ::windows::runtime::Param<'a, super::IAnimationObject> { 199 ::windows::runtime::IntoParam::into_param(&self) 200 } 201 } 202 impl<'a> ::windows::runtime::IntoParam<'a, super::IAnimationObject> for &DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, super::IAnimationObject>203 fn into_param(self) -> ::windows::runtime::Param<'a, super::IAnimationObject> { 204 ::std::convert::TryInto::<super::IAnimationObject>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 205 } 206 } 207 impl ::std::convert::From<DesktopWindowTarget> for super::CompositionTarget { from(value: DesktopWindowTarget) -> Self208 fn from(value: DesktopWindowTarget) -> Self { 209 ::std::convert::Into::<super::CompositionTarget>::into(&value) 210 } 211 } 212 impl ::std::convert::From<&DesktopWindowTarget> for super::CompositionTarget { from(value: &DesktopWindowTarget) -> Self213 fn from(value: &DesktopWindowTarget) -> Self { 214 ::windows::runtime::Interface::cast(value).unwrap() 215 } 216 } 217 impl<'a> ::windows::runtime::IntoParam<'a, super::CompositionTarget> for DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, super::CompositionTarget>218 fn into_param(self) -> ::windows::runtime::Param<'a, super::CompositionTarget> { 219 ::windows::runtime::Param::Owned(::std::convert::Into::<super::CompositionTarget>::into(self)) 220 } 221 } 222 impl<'a> ::windows::runtime::IntoParam<'a, super::CompositionTarget> for &DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, super::CompositionTarget>223 fn into_param(self) -> ::windows::runtime::Param<'a, super::CompositionTarget> { 224 ::windows::runtime::Param::Owned(::std::convert::Into::<super::CompositionTarget>::into(::std::clone::Clone::clone(self))) 225 } 226 } 227 impl ::std::convert::From<DesktopWindowTarget> for super::CompositionObject { from(value: DesktopWindowTarget) -> Self228 fn from(value: DesktopWindowTarget) -> Self { 229 ::std::convert::Into::<super::CompositionObject>::into(&value) 230 } 231 } 232 impl ::std::convert::From<&DesktopWindowTarget> for super::CompositionObject { from(value: &DesktopWindowTarget) -> Self233 fn from(value: &DesktopWindowTarget) -> Self { 234 ::windows::runtime::Interface::cast(value).unwrap() 235 } 236 } 237 impl<'a> ::windows::runtime::IntoParam<'a, super::CompositionObject> for DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, super::CompositionObject>238 fn into_param(self) -> ::windows::runtime::Param<'a, super::CompositionObject> { 239 ::windows::runtime::Param::Owned(::std::convert::Into::<super::CompositionObject>::into(self)) 240 } 241 } 242 impl<'a> ::windows::runtime::IntoParam<'a, super::CompositionObject> for &DesktopWindowTarget { into_param(self) -> ::windows::runtime::Param<'a, super::CompositionObject>243 fn into_param(self) -> ::windows::runtime::Param<'a, super::CompositionObject> { 244 ::windows::runtime::Param::Owned(::std::convert::Into::<super::CompositionObject>::into(::std::clone::Clone::clone(self))) 245 } 246 } 247 unsafe impl ::std::marker::Send for DesktopWindowTarget {} 248 unsafe impl ::std::marker::Sync for DesktopWindowTarget {} 249 #[repr(transparent)] 250 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 251 #[doc(hidden)] 252 pub struct IDesktopWindowTarget(::windows::runtime::IInspectable); 253 unsafe impl ::windows::runtime::Interface for IDesktopWindowTarget { 254 type Vtable = IDesktopWindowTarget_abi; 255 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1663686346, 13158, 18702, [157, 179, 37, 49, 41, 41, 172, 81]); 256 } 257 #[repr(C)] 258 #[doc(hidden)] 259 pub struct IDesktopWindowTarget_abi( 260 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 261 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 262 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 263 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 264 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 265 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 266 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 267 ); 268