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 AccessKeyDisplayDismissedEventArgs(::windows::runtime::IInspectable); 5 impl AccessKeyDisplayDismissedEventArgs { new() -> ::windows::runtime::Result<Self>6 pub fn new() -> ::windows::runtime::Result<Self> { 7 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 8 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>9 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 10 static mut SHARED: ::windows::runtime::FactoryCache<AccessKeyDisplayDismissedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 11 unsafe { SHARED.call(callback) } 12 } 13 } 14 unsafe impl ::windows::runtime::RuntimeType for AccessKeyDisplayDismissedEventArgs { 15 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.AccessKeyDisplayDismissedEventArgs;{8a610dc6-d72d-4ca8-9f66-556f35b513da})"); 16 } 17 unsafe impl ::windows::runtime::Interface for AccessKeyDisplayDismissedEventArgs { 18 type Vtable = IAccessKeyDisplayDismissedEventArgs_abi; 19 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2321616326, 55085, 19624, [159, 102, 85, 111, 53, 181, 19, 218]); 20 } 21 impl ::windows::runtime::RuntimeName for AccessKeyDisplayDismissedEventArgs { 22 const NAME: &'static str = "Windows.UI.Xaml.Input.AccessKeyDisplayDismissedEventArgs"; 23 } 24 impl ::std::convert::From<AccessKeyDisplayDismissedEventArgs> for ::windows::runtime::IUnknown { from(value: AccessKeyDisplayDismissedEventArgs) -> Self25 fn from(value: AccessKeyDisplayDismissedEventArgs) -> Self { 26 unsafe { ::std::mem::transmute(value) } 27 } 28 } 29 impl ::std::convert::From<&AccessKeyDisplayDismissedEventArgs> for ::windows::runtime::IUnknown { from(value: &AccessKeyDisplayDismissedEventArgs) -> Self30 fn from(value: &AccessKeyDisplayDismissedEventArgs) -> Self { 31 ::std::convert::From::from(::std::clone::Clone::clone(value)) 32 } 33 } 34 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for AccessKeyDisplayDismissedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>35 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 36 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 37 } 38 } 39 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &AccessKeyDisplayDismissedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>40 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 41 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 42 } 43 } 44 impl ::std::convert::From<AccessKeyDisplayDismissedEventArgs> for ::windows::runtime::IInspectable { from(value: AccessKeyDisplayDismissedEventArgs) -> Self45 fn from(value: AccessKeyDisplayDismissedEventArgs) -> Self { 46 value.0 47 } 48 } 49 impl ::std::convert::From<&AccessKeyDisplayDismissedEventArgs> for ::windows::runtime::IInspectable { from(value: &AccessKeyDisplayDismissedEventArgs) -> Self50 fn from(value: &AccessKeyDisplayDismissedEventArgs) -> Self { 51 value.0.clone() 52 } 53 } 54 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for AccessKeyDisplayDismissedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>55 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 56 ::windows::runtime::Param::Owned(self.0) 57 } 58 } 59 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a AccessKeyDisplayDismissedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>60 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 61 ::windows::runtime::Param::Borrowed(&self.0) 62 } 63 } 64 unsafe impl ::std::marker::Send for AccessKeyDisplayDismissedEventArgs {} 65 unsafe impl ::std::marker::Sync for AccessKeyDisplayDismissedEventArgs {} 66 #[repr(transparent)] 67 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 68 pub struct AccessKeyDisplayRequestedEventArgs(::windows::runtime::IInspectable); 69 impl AccessKeyDisplayRequestedEventArgs { new() -> ::windows::runtime::Result<Self>70 pub fn new() -> ::windows::runtime::Result<Self> { 71 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 72 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>73 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 74 static mut SHARED: ::windows::runtime::FactoryCache<AccessKeyDisplayRequestedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 75 unsafe { SHARED.call(callback) } 76 } PressedKeys(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>77 pub fn PressedKeys(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 78 let this = self; 79 unsafe { 80 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 81 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 82 } 83 } 84 } 85 unsafe impl ::windows::runtime::RuntimeType for AccessKeyDisplayRequestedEventArgs { 86 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.AccessKeyDisplayRequestedEventArgs;{0c079e55-13fe-4d03-a61d-e12f06567286})"); 87 } 88 unsafe impl ::windows::runtime::Interface for AccessKeyDisplayRequestedEventArgs { 89 type Vtable = IAccessKeyDisplayRequestedEventArgs_abi; 90 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(201825877, 5118, 19715, [166, 29, 225, 47, 6, 86, 114, 134]); 91 } 92 impl ::windows::runtime::RuntimeName for AccessKeyDisplayRequestedEventArgs { 93 const NAME: &'static str = "Windows.UI.Xaml.Input.AccessKeyDisplayRequestedEventArgs"; 94 } 95 impl ::std::convert::From<AccessKeyDisplayRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: AccessKeyDisplayRequestedEventArgs) -> Self96 fn from(value: AccessKeyDisplayRequestedEventArgs) -> Self { 97 unsafe { ::std::mem::transmute(value) } 98 } 99 } 100 impl ::std::convert::From<&AccessKeyDisplayRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: &AccessKeyDisplayRequestedEventArgs) -> Self101 fn from(value: &AccessKeyDisplayRequestedEventArgs) -> Self { 102 ::std::convert::From::from(::std::clone::Clone::clone(value)) 103 } 104 } 105 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for AccessKeyDisplayRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>106 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 107 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 108 } 109 } 110 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &AccessKeyDisplayRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>111 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 112 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 113 } 114 } 115 impl ::std::convert::From<AccessKeyDisplayRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: AccessKeyDisplayRequestedEventArgs) -> Self116 fn from(value: AccessKeyDisplayRequestedEventArgs) -> Self { 117 value.0 118 } 119 } 120 impl ::std::convert::From<&AccessKeyDisplayRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: &AccessKeyDisplayRequestedEventArgs) -> Self121 fn from(value: &AccessKeyDisplayRequestedEventArgs) -> Self { 122 value.0.clone() 123 } 124 } 125 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for AccessKeyDisplayRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>126 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 127 ::windows::runtime::Param::Owned(self.0) 128 } 129 } 130 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a AccessKeyDisplayRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>131 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 132 ::windows::runtime::Param::Borrowed(&self.0) 133 } 134 } 135 unsafe impl ::std::marker::Send for AccessKeyDisplayRequestedEventArgs {} 136 unsafe impl ::std::marker::Sync for AccessKeyDisplayRequestedEventArgs {} 137 #[repr(transparent)] 138 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 139 pub struct AccessKeyInvokedEventArgs(::windows::runtime::IInspectable); 140 impl AccessKeyInvokedEventArgs { new() -> ::windows::runtime::Result<Self>141 pub fn new() -> ::windows::runtime::Result<Self> { 142 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 143 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>144 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 145 static mut SHARED: ::windows::runtime::FactoryCache<AccessKeyInvokedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 146 unsafe { SHARED.call(callback) } 147 } Handled(&self) -> ::windows::runtime::Result<bool>148 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 149 let this = self; 150 unsafe { 151 let mut result__: bool = ::std::mem::zeroed(); 152 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 153 } 154 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>155 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 156 let this = self; 157 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 158 } 159 } 160 unsafe impl ::windows::runtime::RuntimeType for AccessKeyInvokedEventArgs { 161 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.AccessKeyInvokedEventArgs;{cfe9cd97-c718-4091-b7dd-adf1c072b1e1})"); 162 } 163 unsafe impl ::windows::runtime::Interface for AccessKeyInvokedEventArgs { 164 type Vtable = IAccessKeyInvokedEventArgs_abi; 165 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3488206231, 50968, 16529, [183, 221, 173, 241, 192, 114, 177, 225]); 166 } 167 impl ::windows::runtime::RuntimeName for AccessKeyInvokedEventArgs { 168 const NAME: &'static str = "Windows.UI.Xaml.Input.AccessKeyInvokedEventArgs"; 169 } 170 impl ::std::convert::From<AccessKeyInvokedEventArgs> for ::windows::runtime::IUnknown { from(value: AccessKeyInvokedEventArgs) -> Self171 fn from(value: AccessKeyInvokedEventArgs) -> Self { 172 unsafe { ::std::mem::transmute(value) } 173 } 174 } 175 impl ::std::convert::From<&AccessKeyInvokedEventArgs> for ::windows::runtime::IUnknown { from(value: &AccessKeyInvokedEventArgs) -> Self176 fn from(value: &AccessKeyInvokedEventArgs) -> Self { 177 ::std::convert::From::from(::std::clone::Clone::clone(value)) 178 } 179 } 180 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for AccessKeyInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>181 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 182 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 183 } 184 } 185 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &AccessKeyInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>186 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 187 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 188 } 189 } 190 impl ::std::convert::From<AccessKeyInvokedEventArgs> for ::windows::runtime::IInspectable { from(value: AccessKeyInvokedEventArgs) -> Self191 fn from(value: AccessKeyInvokedEventArgs) -> Self { 192 value.0 193 } 194 } 195 impl ::std::convert::From<&AccessKeyInvokedEventArgs> for ::windows::runtime::IInspectable { from(value: &AccessKeyInvokedEventArgs) -> Self196 fn from(value: &AccessKeyInvokedEventArgs) -> Self { 197 value.0.clone() 198 } 199 } 200 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for AccessKeyInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>201 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 202 ::windows::runtime::Param::Owned(self.0) 203 } 204 } 205 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a AccessKeyInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>206 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 207 ::windows::runtime::Param::Borrowed(&self.0) 208 } 209 } 210 unsafe impl ::std::marker::Send for AccessKeyInvokedEventArgs {} 211 unsafe impl ::std::marker::Sync for AccessKeyInvokedEventArgs {} 212 #[repr(transparent)] 213 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 214 pub struct AccessKeyManager(::windows::runtime::IInspectable); 215 impl AccessKeyManager { IsDisplayModeEnabled() -> ::windows::runtime::Result<bool>216 pub fn IsDisplayModeEnabled() -> ::windows::runtime::Result<bool> { 217 Self::IAccessKeyManagerStatics(|this| unsafe { 218 let mut result__: bool = ::std::mem::zeroed(); 219 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 220 }) 221 } 222 #[cfg(feature = "Foundation")] IsDisplayModeEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<::windows::runtime::IInspectable, ::windows::runtime::IInspectable>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>223 pub fn IsDisplayModeEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<::windows::runtime::IInspectable, ::windows::runtime::IInspectable>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 224 Self::IAccessKeyManagerStatics(|this| unsafe { 225 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 226 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 227 }) 228 } 229 #[cfg(feature = "Foundation")] RemoveIsDisplayModeEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()>230 pub fn RemoveIsDisplayModeEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()> { 231 Self::IAccessKeyManagerStatics(|this| unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 232 } ExitDisplayMode() -> ::windows::runtime::Result<()>233 pub fn ExitDisplayMode() -> ::windows::runtime::Result<()> { 234 Self::IAccessKeyManagerStatics(|this| unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this)).ok() }) 235 } AreKeyTipsEnabled() -> ::windows::runtime::Result<bool>236 pub fn AreKeyTipsEnabled() -> ::windows::runtime::Result<bool> { 237 Self::IAccessKeyManagerStatics2(|this| unsafe { 238 let mut result__: bool = ::std::mem::zeroed(); 239 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 240 }) 241 } SetAreKeyTipsEnabled(value: bool) -> ::windows::runtime::Result<()>242 pub fn SetAreKeyTipsEnabled(value: bool) -> ::windows::runtime::Result<()> { 243 Self::IAccessKeyManagerStatics2(|this| unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() }) 244 } IAccessKeyManagerStatics<R, F: FnOnce(&IAccessKeyManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>245 pub fn IAccessKeyManagerStatics<R, F: FnOnce(&IAccessKeyManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 246 static mut SHARED: ::windows::runtime::FactoryCache<AccessKeyManager, IAccessKeyManagerStatics> = ::windows::runtime::FactoryCache::new(); 247 unsafe { SHARED.call(callback) } 248 } IAccessKeyManagerStatics2<R, F: FnOnce(&IAccessKeyManagerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>249 pub fn IAccessKeyManagerStatics2<R, F: FnOnce(&IAccessKeyManagerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 250 static mut SHARED: ::windows::runtime::FactoryCache<AccessKeyManager, IAccessKeyManagerStatics2> = ::windows::runtime::FactoryCache::new(); 251 unsafe { SHARED.call(callback) } 252 } 253 } 254 unsafe impl ::windows::runtime::RuntimeType for AccessKeyManager { 255 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.AccessKeyManager;{ecc973b0-2ee9-4b1c-98d7-6e0e816d334b})"); 256 } 257 unsafe impl ::windows::runtime::Interface for AccessKeyManager { 258 type Vtable = IAccessKeyManager_abi; 259 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3972625328, 12009, 19228, [152, 215, 110, 14, 129, 109, 51, 75]); 260 } 261 impl ::windows::runtime::RuntimeName for AccessKeyManager { 262 const NAME: &'static str = "Windows.UI.Xaml.Input.AccessKeyManager"; 263 } 264 impl ::std::convert::From<AccessKeyManager> for ::windows::runtime::IUnknown { from(value: AccessKeyManager) -> Self265 fn from(value: AccessKeyManager) -> Self { 266 unsafe { ::std::mem::transmute(value) } 267 } 268 } 269 impl ::std::convert::From<&AccessKeyManager> for ::windows::runtime::IUnknown { from(value: &AccessKeyManager) -> Self270 fn from(value: &AccessKeyManager) -> Self { 271 ::std::convert::From::from(::std::clone::Clone::clone(value)) 272 } 273 } 274 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for AccessKeyManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>275 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 276 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 277 } 278 } 279 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &AccessKeyManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>280 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 281 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 282 } 283 } 284 impl ::std::convert::From<AccessKeyManager> for ::windows::runtime::IInspectable { from(value: AccessKeyManager) -> Self285 fn from(value: AccessKeyManager) -> Self { 286 value.0 287 } 288 } 289 impl ::std::convert::From<&AccessKeyManager> for ::windows::runtime::IInspectable { from(value: &AccessKeyManager) -> Self290 fn from(value: &AccessKeyManager) -> Self { 291 value.0.clone() 292 } 293 } 294 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for AccessKeyManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>295 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 296 ::windows::runtime::Param::Owned(self.0) 297 } 298 } 299 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a AccessKeyManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>300 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 301 ::windows::runtime::Param::Borrowed(&self.0) 302 } 303 } 304 unsafe impl ::std::marker::Send for AccessKeyManager {} 305 unsafe impl ::std::marker::Sync for AccessKeyManager {} 306 #[repr(transparent)] 307 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 308 pub struct CanExecuteRequestedEventArgs(::windows::runtime::IInspectable); 309 impl CanExecuteRequestedEventArgs { Parameter(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>310 pub fn Parameter(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 311 let this = self; 312 unsafe { 313 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 314 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 315 } 316 } CanExecute(&self) -> ::windows::runtime::Result<bool>317 pub fn CanExecute(&self) -> ::windows::runtime::Result<bool> { 318 let this = self; 319 unsafe { 320 let mut result__: bool = ::std::mem::zeroed(); 321 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 322 } 323 } SetCanExecute(&self, value: bool) -> ::windows::runtime::Result<()>324 pub fn SetCanExecute(&self, value: bool) -> ::windows::runtime::Result<()> { 325 let this = self; 326 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 327 } 328 } 329 unsafe impl ::windows::runtime::RuntimeType for CanExecuteRequestedEventArgs { 330 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.CanExecuteRequestedEventArgs;{c8e75256-1950-505d-993b-75907ef96830})"); 331 } 332 unsafe impl ::windows::runtime::Interface for CanExecuteRequestedEventArgs { 333 type Vtable = ICanExecuteRequestedEventArgs_abi; 334 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3370603094, 6480, 20573, [153, 59, 117, 144, 126, 249, 104, 48]); 335 } 336 impl ::windows::runtime::RuntimeName for CanExecuteRequestedEventArgs { 337 const NAME: &'static str = "Windows.UI.Xaml.Input.CanExecuteRequestedEventArgs"; 338 } 339 impl ::std::convert::From<CanExecuteRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: CanExecuteRequestedEventArgs) -> Self340 fn from(value: CanExecuteRequestedEventArgs) -> Self { 341 unsafe { ::std::mem::transmute(value) } 342 } 343 } 344 impl ::std::convert::From<&CanExecuteRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: &CanExecuteRequestedEventArgs) -> Self345 fn from(value: &CanExecuteRequestedEventArgs) -> Self { 346 ::std::convert::From::from(::std::clone::Clone::clone(value)) 347 } 348 } 349 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CanExecuteRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>350 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 351 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 352 } 353 } 354 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CanExecuteRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>355 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 356 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 357 } 358 } 359 impl ::std::convert::From<CanExecuteRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: CanExecuteRequestedEventArgs) -> Self360 fn from(value: CanExecuteRequestedEventArgs) -> Self { 361 value.0 362 } 363 } 364 impl ::std::convert::From<&CanExecuteRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: &CanExecuteRequestedEventArgs) -> Self365 fn from(value: &CanExecuteRequestedEventArgs) -> Self { 366 value.0.clone() 367 } 368 } 369 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CanExecuteRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>370 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 371 ::windows::runtime::Param::Owned(self.0) 372 } 373 } 374 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CanExecuteRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>375 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 376 ::windows::runtime::Param::Borrowed(&self.0) 377 } 378 } 379 unsafe impl ::std::marker::Send for CanExecuteRequestedEventArgs {} 380 unsafe impl ::std::marker::Sync for CanExecuteRequestedEventArgs {} 381 #[repr(transparent)] 382 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 383 pub struct CharacterReceivedRoutedEventArgs(::windows::runtime::IInspectable); 384 impl CharacterReceivedRoutedEventArgs { Character(&self) -> ::windows::runtime::Result<u16>385 pub fn Character(&self) -> ::windows::runtime::Result<u16> { 386 let this = self; 387 unsafe { 388 let mut result__: u16 = ::std::mem::zeroed(); 389 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u16>(result__) 390 } 391 } 392 #[cfg(feature = "UI_Core")] KeyStatus(&self) -> ::windows::runtime::Result<super::super::Core::CorePhysicalKeyStatus>393 pub fn KeyStatus(&self) -> ::windows::runtime::Result<super::super::Core::CorePhysicalKeyStatus> { 394 let this = self; 395 unsafe { 396 let mut result__: super::super::Core::CorePhysicalKeyStatus = ::std::mem::zeroed(); 397 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CorePhysicalKeyStatus>(result__) 398 } 399 } Handled(&self) -> ::windows::runtime::Result<bool>400 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 401 let this = self; 402 unsafe { 403 let mut result__: bool = ::std::mem::zeroed(); 404 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 405 } 406 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>407 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 408 let this = self; 409 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 410 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>411 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 412 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 413 unsafe { 414 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 415 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 416 } 417 } 418 } 419 unsafe impl ::windows::runtime::RuntimeType for CharacterReceivedRoutedEventArgs { 420 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.CharacterReceivedRoutedEventArgs;{7849fd82-48e4-444d-9419-93ab8892c107})"); 421 } 422 unsafe impl ::windows::runtime::Interface for CharacterReceivedRoutedEventArgs { 423 type Vtable = ICharacterReceivedRoutedEventArgs_abi; 424 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2018114946, 18660, 17485, [148, 25, 147, 171, 136, 146, 193, 7]); 425 } 426 impl ::windows::runtime::RuntimeName for CharacterReceivedRoutedEventArgs { 427 const NAME: &'static str = "Windows.UI.Xaml.Input.CharacterReceivedRoutedEventArgs"; 428 } 429 impl ::std::convert::From<CharacterReceivedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: CharacterReceivedRoutedEventArgs) -> Self430 fn from(value: CharacterReceivedRoutedEventArgs) -> Self { 431 unsafe { ::std::mem::transmute(value) } 432 } 433 } 434 impl ::std::convert::From<&CharacterReceivedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &CharacterReceivedRoutedEventArgs) -> Self435 fn from(value: &CharacterReceivedRoutedEventArgs) -> Self { 436 ::std::convert::From::from(::std::clone::Clone::clone(value)) 437 } 438 } 439 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CharacterReceivedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>440 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 441 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 442 } 443 } 444 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CharacterReceivedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>445 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 446 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 447 } 448 } 449 impl ::std::convert::From<CharacterReceivedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: CharacterReceivedRoutedEventArgs) -> Self450 fn from(value: CharacterReceivedRoutedEventArgs) -> Self { 451 value.0 452 } 453 } 454 impl ::std::convert::From<&CharacterReceivedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &CharacterReceivedRoutedEventArgs) -> Self455 fn from(value: &CharacterReceivedRoutedEventArgs) -> Self { 456 value.0.clone() 457 } 458 } 459 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CharacterReceivedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>460 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 461 ::windows::runtime::Param::Owned(self.0) 462 } 463 } 464 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CharacterReceivedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>465 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 466 ::windows::runtime::Param::Borrowed(&self.0) 467 } 468 } 469 impl ::std::convert::From<CharacterReceivedRoutedEventArgs> for super::RoutedEventArgs { from(value: CharacterReceivedRoutedEventArgs) -> Self470 fn from(value: CharacterReceivedRoutedEventArgs) -> Self { 471 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 472 } 473 } 474 impl ::std::convert::From<&CharacterReceivedRoutedEventArgs> for super::RoutedEventArgs { from(value: &CharacterReceivedRoutedEventArgs) -> Self475 fn from(value: &CharacterReceivedRoutedEventArgs) -> Self { 476 ::windows::runtime::Interface::cast(value).unwrap() 477 } 478 } 479 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for CharacterReceivedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>480 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 481 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 482 } 483 } 484 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &CharacterReceivedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>485 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 486 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 487 } 488 } 489 unsafe impl ::std::marker::Send for CharacterReceivedRoutedEventArgs {} 490 unsafe impl ::std::marker::Sync for CharacterReceivedRoutedEventArgs {} 491 #[repr(transparent)] 492 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 493 pub struct ContextRequestedEventArgs(::windows::runtime::IInspectable); 494 impl ContextRequestedEventArgs { new() -> ::windows::runtime::Result<Self>495 pub fn new() -> ::windows::runtime::Result<Self> { 496 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 497 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>498 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 499 static mut SHARED: ::windows::runtime::FactoryCache<ContextRequestedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 500 unsafe { SHARED.call(callback) } 501 } Handled(&self) -> ::windows::runtime::Result<bool>502 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 503 let this = self; 504 unsafe { 505 let mut result__: bool = ::std::mem::zeroed(); 506 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 507 } 508 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>509 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 510 let this = self; 511 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 512 } 513 #[cfg(feature = "Foundation")] TryGetPosition<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0, point: &mut super::super::super::Foundation::Point) -> ::windows::runtime::Result<bool>514 pub fn TryGetPosition<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0, point: &mut super::super::super::Foundation::Point) -> ::windows::runtime::Result<bool> { 515 let this = self; 516 unsafe { 517 let mut result__: bool = ::std::mem::zeroed(); 518 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), relativeto.into_param().abi(), point, &mut result__).from_abi::<bool>(result__) 519 } 520 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>521 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 522 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 523 unsafe { 524 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 525 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 526 } 527 } 528 } 529 unsafe impl ::windows::runtime::RuntimeType for ContextRequestedEventArgs { 530 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.ContextRequestedEventArgs;{42618e0a-1cb6-46fb-8374-0aec68aa5e51})"); 531 } 532 unsafe impl ::windows::runtime::Interface for ContextRequestedEventArgs { 533 type Vtable = IContextRequestedEventArgs_abi; 534 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1113689610, 7350, 18171, [131, 116, 10, 236, 104, 170, 94, 81]); 535 } 536 impl ::windows::runtime::RuntimeName for ContextRequestedEventArgs { 537 const NAME: &'static str = "Windows.UI.Xaml.Input.ContextRequestedEventArgs"; 538 } 539 impl ::std::convert::From<ContextRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: ContextRequestedEventArgs) -> Self540 fn from(value: ContextRequestedEventArgs) -> Self { 541 unsafe { ::std::mem::transmute(value) } 542 } 543 } 544 impl ::std::convert::From<&ContextRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: &ContextRequestedEventArgs) -> Self545 fn from(value: &ContextRequestedEventArgs) -> Self { 546 ::std::convert::From::from(::std::clone::Clone::clone(value)) 547 } 548 } 549 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ContextRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>550 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 551 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 552 } 553 } 554 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ContextRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>555 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 556 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 557 } 558 } 559 impl ::std::convert::From<ContextRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: ContextRequestedEventArgs) -> Self560 fn from(value: ContextRequestedEventArgs) -> Self { 561 value.0 562 } 563 } 564 impl ::std::convert::From<&ContextRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: &ContextRequestedEventArgs) -> Self565 fn from(value: &ContextRequestedEventArgs) -> Self { 566 value.0.clone() 567 } 568 } 569 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ContextRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>570 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 571 ::windows::runtime::Param::Owned(self.0) 572 } 573 } 574 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ContextRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>575 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 576 ::windows::runtime::Param::Borrowed(&self.0) 577 } 578 } 579 impl ::std::convert::From<ContextRequestedEventArgs> for super::RoutedEventArgs { from(value: ContextRequestedEventArgs) -> Self580 fn from(value: ContextRequestedEventArgs) -> Self { 581 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 582 } 583 } 584 impl ::std::convert::From<&ContextRequestedEventArgs> for super::RoutedEventArgs { from(value: &ContextRequestedEventArgs) -> Self585 fn from(value: &ContextRequestedEventArgs) -> Self { 586 ::windows::runtime::Interface::cast(value).unwrap() 587 } 588 } 589 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for ContextRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>590 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 591 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 592 } 593 } 594 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &ContextRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>595 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 596 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 597 } 598 } 599 unsafe impl ::std::marker::Send for ContextRequestedEventArgs {} 600 unsafe impl ::std::marker::Sync for ContextRequestedEventArgs {} 601 #[repr(transparent)] 602 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 603 pub struct DoubleTappedEventHandler(::windows::runtime::IUnknown); 604 impl DoubleTappedEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<DoubleTappedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self605 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<DoubleTappedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 606 let com = DoubleTappedEventHandler_box::<F> { 607 vtable: &DoubleTappedEventHandler_box::<F>::VTABLE, 608 count: ::windows::runtime::RefCount::new(1), 609 invoke, 610 }; 611 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 612 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, DoubleTappedRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>613 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, DoubleTappedRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 614 let this = self; 615 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 616 } 617 } 618 unsafe impl ::windows::runtime::RuntimeType for DoubleTappedEventHandler { 619 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({3124d025-04a7-4d45-825e-8204a624dbf4})"); 620 } 621 unsafe impl ::windows::runtime::Interface for DoubleTappedEventHandler { 622 type Vtable = DoubleTappedEventHandler_abi; 623 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(824496165, 1191, 19781, [130, 94, 130, 4, 166, 36, 219, 244]); 624 } 625 #[repr(C)] 626 #[doc(hidden)] 627 pub struct DoubleTappedEventHandler_abi( 628 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 629 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 630 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 631 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 632 ); 633 #[repr(C)] 634 struct DoubleTappedEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<DoubleTappedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 635 vtable: *const DoubleTappedEventHandler_abi, 636 invoke: F, 637 count: ::windows::runtime::RefCount, 638 } 639 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<DoubleTappedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> DoubleTappedEventHandler_box<F> { 640 const VTABLE: DoubleTappedEventHandler_abi = DoubleTappedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT641 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 642 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 643 *interface = if iid == &<DoubleTappedEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 644 &mut (*this).vtable as *mut _ as _ 645 } else { 646 ::std::ptr::null_mut() 647 }; 648 if (*interface).is_null() { 649 ::windows::runtime::HRESULT(0x8000_4002) 650 } else { 651 (*this).count.add_ref(); 652 ::windows::runtime::HRESULT(0) 653 } 654 } AddRef(this: ::windows::runtime::RawPtr) -> u32655 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 656 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 657 (*this).count.add_ref() 658 } Release(this: ::windows::runtime::RawPtr) -> u32659 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 660 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 661 let remaining = (*this).count.release(); 662 if remaining == 0 { 663 Box::from_raw(this); 664 } 665 remaining 666 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT667 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 668 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 669 ((*this).invoke)( 670 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 671 &*(&e as *const <DoubleTappedRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <DoubleTappedRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 672 ) 673 .into() 674 } 675 } 676 #[repr(transparent)] 677 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 678 pub struct DoubleTappedRoutedEventArgs(::windows::runtime::IInspectable); 679 impl DoubleTappedRoutedEventArgs { new() -> ::windows::runtime::Result<Self>680 pub fn new() -> ::windows::runtime::Result<Self> { 681 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 682 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>683 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 684 static mut SHARED: ::windows::runtime::FactoryCache<DoubleTappedRoutedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 685 unsafe { SHARED.call(callback) } 686 } 687 #[cfg(feature = "Devices_Input")] PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType>688 pub fn PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType> { 689 let this = self; 690 unsafe { 691 let mut result__: super::super::super::Devices::Input::PointerDeviceType = ::std::mem::zeroed(); 692 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Devices::Input::PointerDeviceType>(result__) 693 } 694 } Handled(&self) -> ::windows::runtime::Result<bool>695 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 696 let this = self; 697 unsafe { 698 let mut result__: bool = ::std::mem::zeroed(); 699 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 700 } 701 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>702 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 703 let this = self; 704 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 705 } 706 #[cfg(feature = "Foundation")] GetPosition<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Point>707 pub fn GetPosition<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Point> { 708 let this = self; 709 unsafe { 710 let mut result__: super::super::super::Foundation::Point = ::std::mem::zeroed(); 711 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), relativeto.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::Point>(result__) 712 } 713 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>714 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 715 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 716 unsafe { 717 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 718 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 719 } 720 } 721 } 722 unsafe impl ::windows::runtime::RuntimeType for DoubleTappedRoutedEventArgs { 723 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.DoubleTappedRoutedEventArgs;{af404424-26df-44f4-8714-9359249b62d3})"); 724 } 725 unsafe impl ::windows::runtime::Interface for DoubleTappedRoutedEventArgs { 726 type Vtable = IDoubleTappedRoutedEventArgs_abi; 727 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2940224548, 9951, 17652, [135, 20, 147, 89, 36, 155, 98, 211]); 728 } 729 impl ::windows::runtime::RuntimeName for DoubleTappedRoutedEventArgs { 730 const NAME: &'static str = "Windows.UI.Xaml.Input.DoubleTappedRoutedEventArgs"; 731 } 732 impl ::std::convert::From<DoubleTappedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: DoubleTappedRoutedEventArgs) -> Self733 fn from(value: DoubleTappedRoutedEventArgs) -> Self { 734 unsafe { ::std::mem::transmute(value) } 735 } 736 } 737 impl ::std::convert::From<&DoubleTappedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &DoubleTappedRoutedEventArgs) -> Self738 fn from(value: &DoubleTappedRoutedEventArgs) -> Self { 739 ::std::convert::From::from(::std::clone::Clone::clone(value)) 740 } 741 } 742 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DoubleTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>743 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 744 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 745 } 746 } 747 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DoubleTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>748 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 749 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 750 } 751 } 752 impl ::std::convert::From<DoubleTappedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: DoubleTappedRoutedEventArgs) -> Self753 fn from(value: DoubleTappedRoutedEventArgs) -> Self { 754 value.0 755 } 756 } 757 impl ::std::convert::From<&DoubleTappedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &DoubleTappedRoutedEventArgs) -> Self758 fn from(value: &DoubleTappedRoutedEventArgs) -> Self { 759 value.0.clone() 760 } 761 } 762 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DoubleTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>763 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 764 ::windows::runtime::Param::Owned(self.0) 765 } 766 } 767 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DoubleTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>768 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 769 ::windows::runtime::Param::Borrowed(&self.0) 770 } 771 } 772 impl ::std::convert::From<DoubleTappedRoutedEventArgs> for super::RoutedEventArgs { from(value: DoubleTappedRoutedEventArgs) -> Self773 fn from(value: DoubleTappedRoutedEventArgs) -> Self { 774 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 775 } 776 } 777 impl ::std::convert::From<&DoubleTappedRoutedEventArgs> for super::RoutedEventArgs { from(value: &DoubleTappedRoutedEventArgs) -> Self778 fn from(value: &DoubleTappedRoutedEventArgs) -> Self { 779 ::windows::runtime::Interface::cast(value).unwrap() 780 } 781 } 782 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for DoubleTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>783 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 784 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 785 } 786 } 787 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &DoubleTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>788 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 789 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 790 } 791 } 792 unsafe impl ::std::marker::Send for DoubleTappedRoutedEventArgs {} 793 unsafe impl ::std::marker::Sync for DoubleTappedRoutedEventArgs {} 794 #[repr(transparent)] 795 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 796 pub struct ExecuteRequestedEventArgs(::windows::runtime::IInspectable); 797 impl ExecuteRequestedEventArgs { Parameter(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>798 pub fn Parameter(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 799 let this = self; 800 unsafe { 801 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 802 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 803 } 804 } 805 } 806 unsafe impl ::windows::runtime::RuntimeType for ExecuteRequestedEventArgs { 807 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.ExecuteRequestedEventArgs;{e07fa734-a0b6-5755-9e87-24f54cca9372})"); 808 } 809 unsafe impl ::windows::runtime::Interface for ExecuteRequestedEventArgs { 810 type Vtable = IExecuteRequestedEventArgs_abi; 811 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3766462260, 41142, 22357, [158, 135, 36, 245, 76, 202, 147, 114]); 812 } 813 impl ::windows::runtime::RuntimeName for ExecuteRequestedEventArgs { 814 const NAME: &'static str = "Windows.UI.Xaml.Input.ExecuteRequestedEventArgs"; 815 } 816 impl ::std::convert::From<ExecuteRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: ExecuteRequestedEventArgs) -> Self817 fn from(value: ExecuteRequestedEventArgs) -> Self { 818 unsafe { ::std::mem::transmute(value) } 819 } 820 } 821 impl ::std::convert::From<&ExecuteRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: &ExecuteRequestedEventArgs) -> Self822 fn from(value: &ExecuteRequestedEventArgs) -> Self { 823 ::std::convert::From::from(::std::clone::Clone::clone(value)) 824 } 825 } 826 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ExecuteRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>827 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 828 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 829 } 830 } 831 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ExecuteRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>832 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 833 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 834 } 835 } 836 impl ::std::convert::From<ExecuteRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: ExecuteRequestedEventArgs) -> Self837 fn from(value: ExecuteRequestedEventArgs) -> Self { 838 value.0 839 } 840 } 841 impl ::std::convert::From<&ExecuteRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: &ExecuteRequestedEventArgs) -> Self842 fn from(value: &ExecuteRequestedEventArgs) -> Self { 843 value.0.clone() 844 } 845 } 846 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ExecuteRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>847 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 848 ::windows::runtime::Param::Owned(self.0) 849 } 850 } 851 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ExecuteRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>852 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 853 ::windows::runtime::Param::Borrowed(&self.0) 854 } 855 } 856 unsafe impl ::std::marker::Send for ExecuteRequestedEventArgs {} 857 unsafe impl ::std::marker::Sync for ExecuteRequestedEventArgs {} 858 #[repr(transparent)] 859 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 860 pub struct FindNextElementOptions(::windows::runtime::IInspectable); 861 impl FindNextElementOptions { new() -> ::windows::runtime::Result<Self>862 pub fn new() -> ::windows::runtime::Result<Self> { 863 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 864 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>865 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 866 static mut SHARED: ::windows::runtime::FactoryCache<FindNextElementOptions, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 867 unsafe { SHARED.call(callback) } 868 } SearchRoot(&self) -> ::windows::runtime::Result<super::DependencyObject>869 pub fn SearchRoot(&self) -> ::windows::runtime::Result<super::DependencyObject> { 870 let this = self; 871 unsafe { 872 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 873 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 874 } 875 } SetSearchRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>876 pub fn SetSearchRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 877 let this = self; 878 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 879 } 880 #[cfg(feature = "Foundation")] ExclusionRect(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Rect>881 pub fn ExclusionRect(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Rect> { 882 let this = self; 883 unsafe { 884 let mut result__: super::super::super::Foundation::Rect = ::std::mem::zeroed(); 885 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Rect>(result__) 886 } 887 } 888 #[cfg(feature = "Foundation")] SetExclusionRect<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Rect>>(&self, value: Param0) -> ::windows::runtime::Result<()>889 pub fn SetExclusionRect<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Rect>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 890 let this = self; 891 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 892 } 893 #[cfg(feature = "Foundation")] HintRect(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Rect>894 pub fn HintRect(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Rect> { 895 let this = self; 896 unsafe { 897 let mut result__: super::super::super::Foundation::Rect = ::std::mem::zeroed(); 898 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Rect>(result__) 899 } 900 } 901 #[cfg(feature = "Foundation")] SetHintRect<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Rect>>(&self, value: Param0) -> ::windows::runtime::Result<()>902 pub fn SetHintRect<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Rect>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 903 let this = self; 904 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 905 } XYFocusNavigationStrategyOverride(&self) -> ::windows::runtime::Result<XYFocusNavigationStrategyOverride>906 pub fn XYFocusNavigationStrategyOverride(&self) -> ::windows::runtime::Result<XYFocusNavigationStrategyOverride> { 907 let this = self; 908 unsafe { 909 let mut result__: XYFocusNavigationStrategyOverride = ::std::mem::zeroed(); 910 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<XYFocusNavigationStrategyOverride>(result__) 911 } 912 } SetXYFocusNavigationStrategyOverride(&self, value: XYFocusNavigationStrategyOverride) -> ::windows::runtime::Result<()>913 pub fn SetXYFocusNavigationStrategyOverride(&self, value: XYFocusNavigationStrategyOverride) -> ::windows::runtime::Result<()> { 914 let this = self; 915 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 916 } 917 } 918 unsafe impl ::windows::runtime::RuntimeType for FindNextElementOptions { 919 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.FindNextElementOptions;{d88ae22b-46c2-41fc-897e-b5961977b89d})"); 920 } 921 unsafe impl ::windows::runtime::Interface for FindNextElementOptions { 922 type Vtable = IFindNextElementOptions_abi; 923 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3632980523, 18114, 16892, [137, 126, 181, 150, 25, 119, 184, 157]); 924 } 925 impl ::windows::runtime::RuntimeName for FindNextElementOptions { 926 const NAME: &'static str = "Windows.UI.Xaml.Input.FindNextElementOptions"; 927 } 928 impl ::std::convert::From<FindNextElementOptions> for ::windows::runtime::IUnknown { from(value: FindNextElementOptions) -> Self929 fn from(value: FindNextElementOptions) -> Self { 930 unsafe { ::std::mem::transmute(value) } 931 } 932 } 933 impl ::std::convert::From<&FindNextElementOptions> for ::windows::runtime::IUnknown { from(value: &FindNextElementOptions) -> Self934 fn from(value: &FindNextElementOptions) -> Self { 935 ::std::convert::From::from(::std::clone::Clone::clone(value)) 936 } 937 } 938 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for FindNextElementOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>939 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 940 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 941 } 942 } 943 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &FindNextElementOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>944 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 945 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 946 } 947 } 948 impl ::std::convert::From<FindNextElementOptions> for ::windows::runtime::IInspectable { from(value: FindNextElementOptions) -> Self949 fn from(value: FindNextElementOptions) -> Self { 950 value.0 951 } 952 } 953 impl ::std::convert::From<&FindNextElementOptions> for ::windows::runtime::IInspectable { from(value: &FindNextElementOptions) -> Self954 fn from(value: &FindNextElementOptions) -> Self { 955 value.0.clone() 956 } 957 } 958 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for FindNextElementOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>959 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 960 ::windows::runtime::Param::Owned(self.0) 961 } 962 } 963 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a FindNextElementOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>964 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 965 ::windows::runtime::Param::Borrowed(&self.0) 966 } 967 } 968 unsafe impl ::std::marker::Send for FindNextElementOptions {} 969 unsafe impl ::std::marker::Sync for FindNextElementOptions {} 970 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 971 #[repr(transparent)] 972 pub struct FocusInputDeviceKind(pub i32); 973 impl FocusInputDeviceKind { 974 pub const None: FocusInputDeviceKind = FocusInputDeviceKind(0i32); 975 pub const Mouse: FocusInputDeviceKind = FocusInputDeviceKind(1i32); 976 pub const Touch: FocusInputDeviceKind = FocusInputDeviceKind(2i32); 977 pub const Pen: FocusInputDeviceKind = FocusInputDeviceKind(3i32); 978 pub const Keyboard: FocusInputDeviceKind = FocusInputDeviceKind(4i32); 979 pub const GameController: FocusInputDeviceKind = FocusInputDeviceKind(5i32); 980 } 981 impl ::std::convert::From<i32> for FocusInputDeviceKind { from(value: i32) -> Self982 fn from(value: i32) -> Self { 983 Self(value) 984 } 985 } 986 unsafe impl ::windows::runtime::Abi for FocusInputDeviceKind { 987 type Abi = Self; 988 type DefaultType = Self; 989 } 990 unsafe impl ::windows::runtime::RuntimeType for FocusInputDeviceKind { 991 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Input.FocusInputDeviceKind;i4)"); 992 } 993 #[repr(transparent)] 994 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 995 pub struct FocusManager(::windows::runtime::IInspectable); 996 impl FocusManager { GetFocusedElement() -> ::windows::runtime::Result<::windows::runtime::IInspectable>997 pub fn GetFocusedElement() -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 998 Self::IFocusManagerStatics(|this| unsafe { 999 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1000 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1001 }) 1002 } TryMoveFocus(focusnavigationdirection: FocusNavigationDirection) -> ::windows::runtime::Result<bool>1003 pub fn TryMoveFocus(focusnavigationdirection: FocusNavigationDirection) -> ::windows::runtime::Result<bool> { 1004 Self::IFocusManagerStatics2(|this| unsafe { 1005 let mut result__: bool = ::std::mem::zeroed(); 1006 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), focusnavigationdirection, &mut result__).from_abi::<bool>(result__) 1007 }) 1008 } FindNextFocusableElement(focusnavigationdirection: FocusNavigationDirection) -> ::windows::runtime::Result<super::UIElement>1009 pub fn FindNextFocusableElement(focusnavigationdirection: FocusNavigationDirection) -> ::windows::runtime::Result<super::UIElement> { 1010 Self::IFocusManagerStatics3(|this| unsafe { 1011 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1012 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), focusnavigationdirection, &mut result__).from_abi::<super::UIElement>(result__) 1013 }) 1014 } 1015 #[cfg(feature = "Foundation")] FindNextFocusableElementWithHint<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Rect>>(focusnavigationdirection: FocusNavigationDirection, hintrect: Param1) -> ::windows::runtime::Result<super::UIElement>1016 pub fn FindNextFocusableElementWithHint<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Rect>>(focusnavigationdirection: FocusNavigationDirection, hintrect: Param1) -> ::windows::runtime::Result<super::UIElement> { 1017 Self::IFocusManagerStatics3(|this| unsafe { 1018 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1019 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), focusnavigationdirection, hintrect.into_param().abi(), &mut result__).from_abi::<super::UIElement>(result__) 1020 }) 1021 } TryMoveFocusWithOptions<'a, Param1: ::windows::runtime::IntoParam<'a, FindNextElementOptions>>(focusnavigationdirection: FocusNavigationDirection, focusnavigationoptions: Param1) -> ::windows::runtime::Result<bool>1022 pub fn TryMoveFocusWithOptions<'a, Param1: ::windows::runtime::IntoParam<'a, FindNextElementOptions>>(focusnavigationdirection: FocusNavigationDirection, focusnavigationoptions: Param1) -> ::windows::runtime::Result<bool> { 1023 Self::IFocusManagerStatics4(|this| unsafe { 1024 let mut result__: bool = ::std::mem::zeroed(); 1025 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), focusnavigationdirection, focusnavigationoptions.into_param().abi(), &mut result__).from_abi::<bool>(result__) 1026 }) 1027 } FindNextElement(focusnavigationdirection: FocusNavigationDirection) -> ::windows::runtime::Result<super::DependencyObject>1028 pub fn FindNextElement(focusnavigationdirection: FocusNavigationDirection) -> ::windows::runtime::Result<super::DependencyObject> { 1029 Self::IFocusManagerStatics4(|this| unsafe { 1030 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1031 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), focusnavigationdirection, &mut result__).from_abi::<super::DependencyObject>(result__) 1032 }) 1033 } FindFirstFocusableElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(searchscope: Param0) -> ::windows::runtime::Result<super::DependencyObject>1034 pub fn FindFirstFocusableElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(searchscope: Param0) -> ::windows::runtime::Result<super::DependencyObject> { 1035 Self::IFocusManagerStatics4(|this| unsafe { 1036 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1037 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), searchscope.into_param().abi(), &mut result__).from_abi::<super::DependencyObject>(result__) 1038 }) 1039 } FindLastFocusableElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(searchscope: Param0) -> ::windows::runtime::Result<super::DependencyObject>1040 pub fn FindLastFocusableElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(searchscope: Param0) -> ::windows::runtime::Result<super::DependencyObject> { 1041 Self::IFocusManagerStatics4(|this| unsafe { 1042 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1043 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), searchscope.into_param().abi(), &mut result__).from_abi::<super::DependencyObject>(result__) 1044 }) 1045 } FindNextElementWithOptions<'a, Param1: ::windows::runtime::IntoParam<'a, FindNextElementOptions>>(focusnavigationdirection: FocusNavigationDirection, focusnavigationoptions: Param1) -> ::windows::runtime::Result<super::DependencyObject>1046 pub fn FindNextElementWithOptions<'a, Param1: ::windows::runtime::IntoParam<'a, FindNextElementOptions>>(focusnavigationdirection: FocusNavigationDirection, focusnavigationoptions: Param1) -> ::windows::runtime::Result<super::DependencyObject> { 1047 Self::IFocusManagerStatics4(|this| unsafe { 1048 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1049 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), focusnavigationdirection, focusnavigationoptions.into_param().abi(), &mut result__).from_abi::<super::DependencyObject>(result__) 1050 }) 1051 } 1052 #[cfg(feature = "Foundation")] TryFocusAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(element: Param0, value: super::FocusState) -> ::windows::runtime::Result<super::super::super::Foundation::IAsyncOperation<FocusMovementResult>>1053 pub fn TryFocusAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(element: Param0, value: super::FocusState) -> ::windows::runtime::Result<super::super::super::Foundation::IAsyncOperation<FocusMovementResult>> { 1054 Self::IFocusManagerStatics5(|this| unsafe { 1055 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1056 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), element.into_param().abi(), value, &mut result__).from_abi::<super::super::super::Foundation::IAsyncOperation<FocusMovementResult>>(result__) 1057 }) 1058 } 1059 #[cfg(feature = "Foundation")] TryMoveFocusAsync(focusnavigationdirection: FocusNavigationDirection) -> ::windows::runtime::Result<super::super::super::Foundation::IAsyncOperation<FocusMovementResult>>1060 pub fn TryMoveFocusAsync(focusnavigationdirection: FocusNavigationDirection) -> ::windows::runtime::Result<super::super::super::Foundation::IAsyncOperation<FocusMovementResult>> { 1061 Self::IFocusManagerStatics5(|this| unsafe { 1062 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1063 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), focusnavigationdirection, &mut result__).from_abi::<super::super::super::Foundation::IAsyncOperation<FocusMovementResult>>(result__) 1064 }) 1065 } 1066 #[cfg(feature = "Foundation")] TryMoveFocusWithOptionsAsync<'a, Param1: ::windows::runtime::IntoParam<'a, FindNextElementOptions>>(focusnavigationdirection: FocusNavigationDirection, focusnavigationoptions: Param1) -> ::windows::runtime::Result<super::super::super::Foundation::IAsyncOperation<FocusMovementResult>>1067 pub fn TryMoveFocusWithOptionsAsync<'a, Param1: ::windows::runtime::IntoParam<'a, FindNextElementOptions>>(focusnavigationdirection: FocusNavigationDirection, focusnavigationoptions: Param1) -> ::windows::runtime::Result<super::super::super::Foundation::IAsyncOperation<FocusMovementResult>> { 1068 Self::IFocusManagerStatics5(|this| unsafe { 1069 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1070 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), focusnavigationdirection, focusnavigationoptions.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::IAsyncOperation<FocusMovementResult>>(result__) 1071 }) 1072 } 1073 #[cfg(feature = "Foundation")] GotFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<FocusManagerGotFocusEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1074 pub fn GotFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<FocusManagerGotFocusEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1075 Self::IFocusManagerStatics6(|this| unsafe { 1076 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1077 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1078 }) 1079 } 1080 #[cfg(feature = "Foundation")] RemoveGotFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()>1081 pub fn RemoveGotFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()> { 1082 Self::IFocusManagerStatics6(|this| unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 1083 } 1084 #[cfg(feature = "Foundation")] LostFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<FocusManagerLostFocusEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1085 pub fn LostFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<FocusManagerLostFocusEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1086 Self::IFocusManagerStatics6(|this| unsafe { 1087 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1088 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1089 }) 1090 } 1091 #[cfg(feature = "Foundation")] RemoveLostFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()>1092 pub fn RemoveLostFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()> { 1093 Self::IFocusManagerStatics6(|this| unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 1094 } 1095 #[cfg(feature = "Foundation")] GettingFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<GettingFocusEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1096 pub fn GettingFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<GettingFocusEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1097 Self::IFocusManagerStatics6(|this| unsafe { 1098 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1099 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1100 }) 1101 } 1102 #[cfg(feature = "Foundation")] RemoveGettingFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()>1103 pub fn RemoveGettingFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()> { 1104 Self::IFocusManagerStatics6(|this| unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 1105 } 1106 #[cfg(feature = "Foundation")] LosingFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<LosingFocusEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1107 pub fn LosingFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<LosingFocusEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1108 Self::IFocusManagerStatics6(|this| unsafe { 1109 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1110 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1111 }) 1112 } 1113 #[cfg(feature = "Foundation")] RemoveLosingFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()>1114 pub fn RemoveLosingFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()> { 1115 Self::IFocusManagerStatics6(|this| unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 1116 } GetFocusedElement2<'a, Param0: ::windows::runtime::IntoParam<'a, super::XamlRoot>>(xamlroot: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1117 pub fn GetFocusedElement2<'a, Param0: ::windows::runtime::IntoParam<'a, super::XamlRoot>>(xamlroot: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1118 Self::IFocusManagerStatics7(|this| unsafe { 1119 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1120 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), xamlroot.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1121 }) 1122 } IFocusManagerStatics<R, F: FnOnce(&IFocusManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1123 pub fn IFocusManagerStatics<R, F: FnOnce(&IFocusManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1124 static mut SHARED: ::windows::runtime::FactoryCache<FocusManager, IFocusManagerStatics> = ::windows::runtime::FactoryCache::new(); 1125 unsafe { SHARED.call(callback) } 1126 } IFocusManagerStatics2<R, F: FnOnce(&IFocusManagerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1127 pub fn IFocusManagerStatics2<R, F: FnOnce(&IFocusManagerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1128 static mut SHARED: ::windows::runtime::FactoryCache<FocusManager, IFocusManagerStatics2> = ::windows::runtime::FactoryCache::new(); 1129 unsafe { SHARED.call(callback) } 1130 } IFocusManagerStatics3<R, F: FnOnce(&IFocusManagerStatics3) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1131 pub fn IFocusManagerStatics3<R, F: FnOnce(&IFocusManagerStatics3) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1132 static mut SHARED: ::windows::runtime::FactoryCache<FocusManager, IFocusManagerStatics3> = ::windows::runtime::FactoryCache::new(); 1133 unsafe { SHARED.call(callback) } 1134 } IFocusManagerStatics4<R, F: FnOnce(&IFocusManagerStatics4) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1135 pub fn IFocusManagerStatics4<R, F: FnOnce(&IFocusManagerStatics4) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1136 static mut SHARED: ::windows::runtime::FactoryCache<FocusManager, IFocusManagerStatics4> = ::windows::runtime::FactoryCache::new(); 1137 unsafe { SHARED.call(callback) } 1138 } IFocusManagerStatics5<R, F: FnOnce(&IFocusManagerStatics5) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1139 pub fn IFocusManagerStatics5<R, F: FnOnce(&IFocusManagerStatics5) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1140 static mut SHARED: ::windows::runtime::FactoryCache<FocusManager, IFocusManagerStatics5> = ::windows::runtime::FactoryCache::new(); 1141 unsafe { SHARED.call(callback) } 1142 } IFocusManagerStatics6<R, F: FnOnce(&IFocusManagerStatics6) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1143 pub fn IFocusManagerStatics6<R, F: FnOnce(&IFocusManagerStatics6) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1144 static mut SHARED: ::windows::runtime::FactoryCache<FocusManager, IFocusManagerStatics6> = ::windows::runtime::FactoryCache::new(); 1145 unsafe { SHARED.call(callback) } 1146 } IFocusManagerStatics7<R, F: FnOnce(&IFocusManagerStatics7) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1147 pub fn IFocusManagerStatics7<R, F: FnOnce(&IFocusManagerStatics7) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1148 static mut SHARED: ::windows::runtime::FactoryCache<FocusManager, IFocusManagerStatics7> = ::windows::runtime::FactoryCache::new(); 1149 unsafe { SHARED.call(callback) } 1150 } 1151 } 1152 unsafe impl ::windows::runtime::RuntimeType for FocusManager { 1153 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.FocusManager;{c843f50b-3b83-4da1-9d6f-557c1169f341})"); 1154 } 1155 unsafe impl ::windows::runtime::Interface for FocusManager { 1156 type Vtable = IFocusManager_abi; 1157 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3359896843, 15235, 19873, [157, 111, 85, 124, 17, 105, 243, 65]); 1158 } 1159 impl ::windows::runtime::RuntimeName for FocusManager { 1160 const NAME: &'static str = "Windows.UI.Xaml.Input.FocusManager"; 1161 } 1162 impl ::std::convert::From<FocusManager> for ::windows::runtime::IUnknown { from(value: FocusManager) -> Self1163 fn from(value: FocusManager) -> Self { 1164 unsafe { ::std::mem::transmute(value) } 1165 } 1166 } 1167 impl ::std::convert::From<&FocusManager> for ::windows::runtime::IUnknown { from(value: &FocusManager) -> Self1168 fn from(value: &FocusManager) -> Self { 1169 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1170 } 1171 } 1172 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for FocusManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1173 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1174 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1175 } 1176 } 1177 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &FocusManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1178 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1179 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1180 } 1181 } 1182 impl ::std::convert::From<FocusManager> for ::windows::runtime::IInspectable { from(value: FocusManager) -> Self1183 fn from(value: FocusManager) -> Self { 1184 value.0 1185 } 1186 } 1187 impl ::std::convert::From<&FocusManager> for ::windows::runtime::IInspectable { from(value: &FocusManager) -> Self1188 fn from(value: &FocusManager) -> Self { 1189 value.0.clone() 1190 } 1191 } 1192 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for FocusManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1193 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1194 ::windows::runtime::Param::Owned(self.0) 1195 } 1196 } 1197 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a FocusManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1198 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1199 ::windows::runtime::Param::Borrowed(&self.0) 1200 } 1201 } 1202 unsafe impl ::std::marker::Send for FocusManager {} 1203 unsafe impl ::std::marker::Sync for FocusManager {} 1204 #[repr(transparent)] 1205 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1206 pub struct FocusManagerGotFocusEventArgs(::windows::runtime::IInspectable); 1207 impl FocusManagerGotFocusEventArgs { NewFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject>1208 pub fn NewFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject> { 1209 let this = self; 1210 unsafe { 1211 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1212 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 1213 } 1214 } CorrelationId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>1215 pub fn CorrelationId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 1216 let this = self; 1217 unsafe { 1218 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 1219 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 1220 } 1221 } 1222 } 1223 unsafe impl ::windows::runtime::RuntimeType for FocusManagerGotFocusEventArgs { 1224 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.FocusManagerGotFocusEventArgs;{97aa5d83-535b-507a-868e-62b706f06b61})"); 1225 } 1226 unsafe impl ::windows::runtime::Interface for FocusManagerGotFocusEventArgs { 1227 type Vtable = IFocusManagerGotFocusEventArgs_abi; 1228 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2544524675, 21339, 20602, [134, 142, 98, 183, 6, 240, 107, 97]); 1229 } 1230 impl ::windows::runtime::RuntimeName for FocusManagerGotFocusEventArgs { 1231 const NAME: &'static str = "Windows.UI.Xaml.Input.FocusManagerGotFocusEventArgs"; 1232 } 1233 impl ::std::convert::From<FocusManagerGotFocusEventArgs> for ::windows::runtime::IUnknown { from(value: FocusManagerGotFocusEventArgs) -> Self1234 fn from(value: FocusManagerGotFocusEventArgs) -> Self { 1235 unsafe { ::std::mem::transmute(value) } 1236 } 1237 } 1238 impl ::std::convert::From<&FocusManagerGotFocusEventArgs> for ::windows::runtime::IUnknown { from(value: &FocusManagerGotFocusEventArgs) -> Self1239 fn from(value: &FocusManagerGotFocusEventArgs) -> Self { 1240 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1241 } 1242 } 1243 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for FocusManagerGotFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1244 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1245 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1246 } 1247 } 1248 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &FocusManagerGotFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1249 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1250 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1251 } 1252 } 1253 impl ::std::convert::From<FocusManagerGotFocusEventArgs> for ::windows::runtime::IInspectable { from(value: FocusManagerGotFocusEventArgs) -> Self1254 fn from(value: FocusManagerGotFocusEventArgs) -> Self { 1255 value.0 1256 } 1257 } 1258 impl ::std::convert::From<&FocusManagerGotFocusEventArgs> for ::windows::runtime::IInspectable { from(value: &FocusManagerGotFocusEventArgs) -> Self1259 fn from(value: &FocusManagerGotFocusEventArgs) -> Self { 1260 value.0.clone() 1261 } 1262 } 1263 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for FocusManagerGotFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1264 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1265 ::windows::runtime::Param::Owned(self.0) 1266 } 1267 } 1268 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a FocusManagerGotFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1269 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1270 ::windows::runtime::Param::Borrowed(&self.0) 1271 } 1272 } 1273 unsafe impl ::std::marker::Send for FocusManagerGotFocusEventArgs {} 1274 unsafe impl ::std::marker::Sync for FocusManagerGotFocusEventArgs {} 1275 #[repr(transparent)] 1276 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1277 pub struct FocusManagerLostFocusEventArgs(::windows::runtime::IInspectable); 1278 impl FocusManagerLostFocusEventArgs { OldFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject>1279 pub fn OldFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject> { 1280 let this = self; 1281 unsafe { 1282 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1283 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 1284 } 1285 } CorrelationId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>1286 pub fn CorrelationId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 1287 let this = self; 1288 unsafe { 1289 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 1290 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 1291 } 1292 } 1293 } 1294 unsafe impl ::windows::runtime::RuntimeType for FocusManagerLostFocusEventArgs { 1295 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.FocusManagerLostFocusEventArgs;{3e157e7a-9578-5cd3-aaa8-051b3d391978})"); 1296 } 1297 unsafe impl ::windows::runtime::Interface for FocusManagerLostFocusEventArgs { 1298 type Vtable = IFocusManagerLostFocusEventArgs_abi; 1299 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1041596026, 38264, 23763, [170, 168, 5, 27, 61, 57, 25, 120]); 1300 } 1301 impl ::windows::runtime::RuntimeName for FocusManagerLostFocusEventArgs { 1302 const NAME: &'static str = "Windows.UI.Xaml.Input.FocusManagerLostFocusEventArgs"; 1303 } 1304 impl ::std::convert::From<FocusManagerLostFocusEventArgs> for ::windows::runtime::IUnknown { from(value: FocusManagerLostFocusEventArgs) -> Self1305 fn from(value: FocusManagerLostFocusEventArgs) -> Self { 1306 unsafe { ::std::mem::transmute(value) } 1307 } 1308 } 1309 impl ::std::convert::From<&FocusManagerLostFocusEventArgs> for ::windows::runtime::IUnknown { from(value: &FocusManagerLostFocusEventArgs) -> Self1310 fn from(value: &FocusManagerLostFocusEventArgs) -> Self { 1311 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1312 } 1313 } 1314 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for FocusManagerLostFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1315 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1316 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1317 } 1318 } 1319 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &FocusManagerLostFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1320 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1321 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1322 } 1323 } 1324 impl ::std::convert::From<FocusManagerLostFocusEventArgs> for ::windows::runtime::IInspectable { from(value: FocusManagerLostFocusEventArgs) -> Self1325 fn from(value: FocusManagerLostFocusEventArgs) -> Self { 1326 value.0 1327 } 1328 } 1329 impl ::std::convert::From<&FocusManagerLostFocusEventArgs> for ::windows::runtime::IInspectable { from(value: &FocusManagerLostFocusEventArgs) -> Self1330 fn from(value: &FocusManagerLostFocusEventArgs) -> Self { 1331 value.0.clone() 1332 } 1333 } 1334 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for FocusManagerLostFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1335 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1336 ::windows::runtime::Param::Owned(self.0) 1337 } 1338 } 1339 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a FocusManagerLostFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1340 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1341 ::windows::runtime::Param::Borrowed(&self.0) 1342 } 1343 } 1344 unsafe impl ::std::marker::Send for FocusManagerLostFocusEventArgs {} 1345 unsafe impl ::std::marker::Sync for FocusManagerLostFocusEventArgs {} 1346 #[repr(transparent)] 1347 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1348 pub struct FocusMovementResult(::windows::runtime::IInspectable); 1349 impl FocusMovementResult { Succeeded(&self) -> ::windows::runtime::Result<bool>1350 pub fn Succeeded(&self) -> ::windows::runtime::Result<bool> { 1351 let this = self; 1352 unsafe { 1353 let mut result__: bool = ::std::mem::zeroed(); 1354 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1355 } 1356 } 1357 } 1358 unsafe impl ::windows::runtime::RuntimeType for FocusMovementResult { 1359 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.FocusMovementResult;{06dfead3-c2ae-44bb-bfab-9c73de8407a4})"); 1360 } 1361 unsafe impl ::windows::runtime::Interface for FocusMovementResult { 1362 type Vtable = IFocusMovementResult_abi; 1363 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(115337939, 49838, 17595, [191, 171, 156, 115, 222, 132, 7, 164]); 1364 } 1365 impl ::windows::runtime::RuntimeName for FocusMovementResult { 1366 const NAME: &'static str = "Windows.UI.Xaml.Input.FocusMovementResult"; 1367 } 1368 impl ::std::convert::From<FocusMovementResult> for ::windows::runtime::IUnknown { from(value: FocusMovementResult) -> Self1369 fn from(value: FocusMovementResult) -> Self { 1370 unsafe { ::std::mem::transmute(value) } 1371 } 1372 } 1373 impl ::std::convert::From<&FocusMovementResult> for ::windows::runtime::IUnknown { from(value: &FocusMovementResult) -> Self1374 fn from(value: &FocusMovementResult) -> Self { 1375 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1376 } 1377 } 1378 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for FocusMovementResult { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1379 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1380 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1381 } 1382 } 1383 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &FocusMovementResult { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1384 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1385 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1386 } 1387 } 1388 impl ::std::convert::From<FocusMovementResult> for ::windows::runtime::IInspectable { from(value: FocusMovementResult) -> Self1389 fn from(value: FocusMovementResult) -> Self { 1390 value.0 1391 } 1392 } 1393 impl ::std::convert::From<&FocusMovementResult> for ::windows::runtime::IInspectable { from(value: &FocusMovementResult) -> Self1394 fn from(value: &FocusMovementResult) -> Self { 1395 value.0.clone() 1396 } 1397 } 1398 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for FocusMovementResult { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1399 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1400 ::windows::runtime::Param::Owned(self.0) 1401 } 1402 } 1403 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a FocusMovementResult { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1404 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1405 ::windows::runtime::Param::Borrowed(&self.0) 1406 } 1407 } 1408 unsafe impl ::std::marker::Send for FocusMovementResult {} 1409 unsafe impl ::std::marker::Sync for FocusMovementResult {} 1410 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1411 #[repr(transparent)] 1412 pub struct FocusNavigationDirection(pub i32); 1413 impl FocusNavigationDirection { 1414 pub const Next: FocusNavigationDirection = FocusNavigationDirection(0i32); 1415 pub const Previous: FocusNavigationDirection = FocusNavigationDirection(1i32); 1416 pub const Up: FocusNavigationDirection = FocusNavigationDirection(2i32); 1417 pub const Down: FocusNavigationDirection = FocusNavigationDirection(3i32); 1418 pub const Left: FocusNavigationDirection = FocusNavigationDirection(4i32); 1419 pub const Right: FocusNavigationDirection = FocusNavigationDirection(5i32); 1420 pub const None: FocusNavigationDirection = FocusNavigationDirection(6i32); 1421 } 1422 impl ::std::convert::From<i32> for FocusNavigationDirection { from(value: i32) -> Self1423 fn from(value: i32) -> Self { 1424 Self(value) 1425 } 1426 } 1427 unsafe impl ::windows::runtime::Abi for FocusNavigationDirection { 1428 type Abi = Self; 1429 type DefaultType = Self; 1430 } 1431 unsafe impl ::windows::runtime::RuntimeType for FocusNavigationDirection { 1432 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Input.FocusNavigationDirection;i4)"); 1433 } 1434 #[repr(transparent)] 1435 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1436 pub struct GettingFocusEventArgs(::windows::runtime::IInspectable); 1437 impl GettingFocusEventArgs { OldFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject>1438 pub fn OldFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject> { 1439 let this = self; 1440 unsafe { 1441 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1442 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 1443 } 1444 } NewFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject>1445 pub fn NewFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject> { 1446 let this = self; 1447 unsafe { 1448 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1449 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 1450 } 1451 } SetNewFocusedElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>1452 pub fn SetNewFocusedElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1453 let this = self; 1454 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1455 } FocusState(&self) -> ::windows::runtime::Result<super::FocusState>1456 pub fn FocusState(&self) -> ::windows::runtime::Result<super::FocusState> { 1457 let this = self; 1458 unsafe { 1459 let mut result__: super::FocusState = ::std::mem::zeroed(); 1460 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::FocusState>(result__) 1461 } 1462 } Direction(&self) -> ::windows::runtime::Result<FocusNavigationDirection>1463 pub fn Direction(&self) -> ::windows::runtime::Result<FocusNavigationDirection> { 1464 let this = self; 1465 unsafe { 1466 let mut result__: FocusNavigationDirection = ::std::mem::zeroed(); 1467 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<FocusNavigationDirection>(result__) 1468 } 1469 } Handled(&self) -> ::windows::runtime::Result<bool>1470 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 1471 let this = self; 1472 unsafe { 1473 let mut result__: bool = ::std::mem::zeroed(); 1474 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1475 } 1476 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>1477 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 1478 let this = self; 1479 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value).ok() } 1480 } InputDevice(&self) -> ::windows::runtime::Result<FocusInputDeviceKind>1481 pub fn InputDevice(&self) -> ::windows::runtime::Result<FocusInputDeviceKind> { 1482 let this = self; 1483 unsafe { 1484 let mut result__: FocusInputDeviceKind = ::std::mem::zeroed(); 1485 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<FocusInputDeviceKind>(result__) 1486 } 1487 } Cancel(&self) -> ::windows::runtime::Result<bool>1488 pub fn Cancel(&self) -> ::windows::runtime::Result<bool> { 1489 let this = self; 1490 unsafe { 1491 let mut result__: bool = ::std::mem::zeroed(); 1492 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1493 } 1494 } SetCancel(&self, value: bool) -> ::windows::runtime::Result<()>1495 pub fn SetCancel(&self, value: bool) -> ::windows::runtime::Result<()> { 1496 let this = self; 1497 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value).ok() } 1498 } TryCancel(&self) -> ::windows::runtime::Result<bool>1499 pub fn TryCancel(&self) -> ::windows::runtime::Result<bool> { 1500 let this = &::windows::runtime::Interface::cast::<IGettingFocusEventArgs2>(self)?; 1501 unsafe { 1502 let mut result__: bool = ::std::mem::zeroed(); 1503 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1504 } 1505 } TrySetNewFocusedElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, element: Param0) -> ::windows::runtime::Result<bool>1506 pub fn TrySetNewFocusedElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, element: Param0) -> ::windows::runtime::Result<bool> { 1507 let this = &::windows::runtime::Interface::cast::<IGettingFocusEventArgs2>(self)?; 1508 unsafe { 1509 let mut result__: bool = ::std::mem::zeroed(); 1510 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::<bool>(result__) 1511 } 1512 } CorrelationId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>1513 pub fn CorrelationId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 1514 let this = &::windows::runtime::Interface::cast::<IGettingFocusEventArgs3>(self)?; 1515 unsafe { 1516 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 1517 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 1518 } 1519 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1520 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1521 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 1522 unsafe { 1523 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1524 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1525 } 1526 } 1527 } 1528 unsafe impl ::windows::runtime::RuntimeType for GettingFocusEventArgs { 1529 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.GettingFocusEventArgs;{fa05b9ce-c67c-4be8-8fd4-c44d67877e0d})"); 1530 } 1531 unsafe impl ::windows::runtime::Interface for GettingFocusEventArgs { 1532 type Vtable = IGettingFocusEventArgs_abi; 1533 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4194679246, 50812, 19432, [143, 212, 196, 77, 103, 135, 126, 13]); 1534 } 1535 impl ::windows::runtime::RuntimeName for GettingFocusEventArgs { 1536 const NAME: &'static str = "Windows.UI.Xaml.Input.GettingFocusEventArgs"; 1537 } 1538 impl ::std::convert::From<GettingFocusEventArgs> for ::windows::runtime::IUnknown { from(value: GettingFocusEventArgs) -> Self1539 fn from(value: GettingFocusEventArgs) -> Self { 1540 unsafe { ::std::mem::transmute(value) } 1541 } 1542 } 1543 impl ::std::convert::From<&GettingFocusEventArgs> for ::windows::runtime::IUnknown { from(value: &GettingFocusEventArgs) -> Self1544 fn from(value: &GettingFocusEventArgs) -> Self { 1545 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1546 } 1547 } 1548 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for GettingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1549 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1550 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1551 } 1552 } 1553 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &GettingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1554 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1555 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1556 } 1557 } 1558 impl ::std::convert::From<GettingFocusEventArgs> for ::windows::runtime::IInspectable { from(value: GettingFocusEventArgs) -> Self1559 fn from(value: GettingFocusEventArgs) -> Self { 1560 value.0 1561 } 1562 } 1563 impl ::std::convert::From<&GettingFocusEventArgs> for ::windows::runtime::IInspectable { from(value: &GettingFocusEventArgs) -> Self1564 fn from(value: &GettingFocusEventArgs) -> Self { 1565 value.0.clone() 1566 } 1567 } 1568 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for GettingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1569 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1570 ::windows::runtime::Param::Owned(self.0) 1571 } 1572 } 1573 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a GettingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1574 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1575 ::windows::runtime::Param::Borrowed(&self.0) 1576 } 1577 } 1578 impl ::std::convert::From<GettingFocusEventArgs> for super::RoutedEventArgs { from(value: GettingFocusEventArgs) -> Self1579 fn from(value: GettingFocusEventArgs) -> Self { 1580 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 1581 } 1582 } 1583 impl ::std::convert::From<&GettingFocusEventArgs> for super::RoutedEventArgs { from(value: &GettingFocusEventArgs) -> Self1584 fn from(value: &GettingFocusEventArgs) -> Self { 1585 ::windows::runtime::Interface::cast(value).unwrap() 1586 } 1587 } 1588 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for GettingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>1589 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 1590 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 1591 } 1592 } 1593 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &GettingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>1594 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 1595 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 1596 } 1597 } 1598 unsafe impl ::std::marker::Send for GettingFocusEventArgs {} 1599 unsafe impl ::std::marker::Sync for GettingFocusEventArgs {} 1600 #[repr(transparent)] 1601 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1602 pub struct HoldingEventHandler(::windows::runtime::IUnknown); 1603 impl HoldingEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<HoldingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self1604 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<HoldingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 1605 let com = HoldingEventHandler_box::<F> { 1606 vtable: &HoldingEventHandler_box::<F>::VTABLE, 1607 count: ::windows::runtime::RefCount::new(1), 1608 invoke, 1609 }; 1610 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 1611 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, HoldingRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>1612 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, HoldingRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 1613 let this = self; 1614 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 1615 } 1616 } 1617 unsafe impl ::windows::runtime::RuntimeType for HoldingEventHandler { 1618 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({ecae8ccd-8e5e-4fbe-9846-30a6370afcdf})"); 1619 } 1620 unsafe impl ::windows::runtime::Interface for HoldingEventHandler { 1621 type Vtable = HoldingEventHandler_abi; 1622 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3970862285, 36446, 20414, [152, 70, 48, 166, 55, 10, 252, 223]); 1623 } 1624 #[repr(C)] 1625 #[doc(hidden)] 1626 pub struct HoldingEventHandler_abi( 1627 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1628 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1629 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1630 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1631 ); 1632 #[repr(C)] 1633 struct HoldingEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<HoldingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 1634 vtable: *const HoldingEventHandler_abi, 1635 invoke: F, 1636 count: ::windows::runtime::RefCount, 1637 } 1638 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<HoldingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> HoldingEventHandler_box<F> { 1639 const VTABLE: HoldingEventHandler_abi = HoldingEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT1640 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 1641 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 1642 *interface = if iid == &<HoldingEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 1643 &mut (*this).vtable as *mut _ as _ 1644 } else { 1645 ::std::ptr::null_mut() 1646 }; 1647 if (*interface).is_null() { 1648 ::windows::runtime::HRESULT(0x8000_4002) 1649 } else { 1650 (*this).count.add_ref(); 1651 ::windows::runtime::HRESULT(0) 1652 } 1653 } AddRef(this: ::windows::runtime::RawPtr) -> u321654 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 1655 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 1656 (*this).count.add_ref() 1657 } Release(this: ::windows::runtime::RawPtr) -> u321658 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 1659 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 1660 let remaining = (*this).count.release(); 1661 if remaining == 0 { 1662 Box::from_raw(this); 1663 } 1664 remaining 1665 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT1666 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 1667 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 1668 ((*this).invoke)( 1669 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 1670 &*(&e as *const <HoldingRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <HoldingRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 1671 ) 1672 .into() 1673 } 1674 } 1675 #[repr(transparent)] 1676 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1677 pub struct HoldingRoutedEventArgs(::windows::runtime::IInspectable); 1678 impl HoldingRoutedEventArgs { new() -> ::windows::runtime::Result<Self>1679 pub fn new() -> ::windows::runtime::Result<Self> { 1680 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 1681 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1682 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1683 static mut SHARED: ::windows::runtime::FactoryCache<HoldingRoutedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 1684 unsafe { SHARED.call(callback) } 1685 } 1686 #[cfg(feature = "Devices_Input")] PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType>1687 pub fn PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType> { 1688 let this = self; 1689 unsafe { 1690 let mut result__: super::super::super::Devices::Input::PointerDeviceType = ::std::mem::zeroed(); 1691 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Devices::Input::PointerDeviceType>(result__) 1692 } 1693 } 1694 #[cfg(feature = "UI_Input")] HoldingState(&self) -> ::windows::runtime::Result<super::super::Input::HoldingState>1695 pub fn HoldingState(&self) -> ::windows::runtime::Result<super::super::Input::HoldingState> { 1696 let this = self; 1697 unsafe { 1698 let mut result__: super::super::Input::HoldingState = ::std::mem::zeroed(); 1699 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::HoldingState>(result__) 1700 } 1701 } Handled(&self) -> ::windows::runtime::Result<bool>1702 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 1703 let this = self; 1704 unsafe { 1705 let mut result__: bool = ::std::mem::zeroed(); 1706 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1707 } 1708 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>1709 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 1710 let this = self; 1711 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 1712 } 1713 #[cfg(feature = "Foundation")] GetPosition<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Point>1714 pub fn GetPosition<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Point> { 1715 let this = self; 1716 unsafe { 1717 let mut result__: super::super::super::Foundation::Point = ::std::mem::zeroed(); 1718 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), relativeto.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::Point>(result__) 1719 } 1720 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1721 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1722 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 1723 unsafe { 1724 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1725 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1726 } 1727 } 1728 } 1729 unsafe impl ::windows::runtime::RuntimeType for HoldingRoutedEventArgs { 1730 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.HoldingRoutedEventArgs;{c246ff23-d80d-44de-8db9-0d815e269ac0})"); 1731 } 1732 unsafe impl ::windows::runtime::Interface for HoldingRoutedEventArgs { 1733 type Vtable = IHoldingRoutedEventArgs_abi; 1734 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3259432739, 55309, 17630, [141, 185, 13, 129, 94, 38, 154, 192]); 1735 } 1736 impl ::windows::runtime::RuntimeName for HoldingRoutedEventArgs { 1737 const NAME: &'static str = "Windows.UI.Xaml.Input.HoldingRoutedEventArgs"; 1738 } 1739 impl ::std::convert::From<HoldingRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: HoldingRoutedEventArgs) -> Self1740 fn from(value: HoldingRoutedEventArgs) -> Self { 1741 unsafe { ::std::mem::transmute(value) } 1742 } 1743 } 1744 impl ::std::convert::From<&HoldingRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &HoldingRoutedEventArgs) -> Self1745 fn from(value: &HoldingRoutedEventArgs) -> Self { 1746 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1747 } 1748 } 1749 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for HoldingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1750 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1751 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1752 } 1753 } 1754 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &HoldingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1755 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1756 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1757 } 1758 } 1759 impl ::std::convert::From<HoldingRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: HoldingRoutedEventArgs) -> Self1760 fn from(value: HoldingRoutedEventArgs) -> Self { 1761 value.0 1762 } 1763 } 1764 impl ::std::convert::From<&HoldingRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &HoldingRoutedEventArgs) -> Self1765 fn from(value: &HoldingRoutedEventArgs) -> Self { 1766 value.0.clone() 1767 } 1768 } 1769 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for HoldingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1770 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1771 ::windows::runtime::Param::Owned(self.0) 1772 } 1773 } 1774 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a HoldingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1775 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1776 ::windows::runtime::Param::Borrowed(&self.0) 1777 } 1778 } 1779 impl ::std::convert::From<HoldingRoutedEventArgs> for super::RoutedEventArgs { from(value: HoldingRoutedEventArgs) -> Self1780 fn from(value: HoldingRoutedEventArgs) -> Self { 1781 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 1782 } 1783 } 1784 impl ::std::convert::From<&HoldingRoutedEventArgs> for super::RoutedEventArgs { from(value: &HoldingRoutedEventArgs) -> Self1785 fn from(value: &HoldingRoutedEventArgs) -> Self { 1786 ::windows::runtime::Interface::cast(value).unwrap() 1787 } 1788 } 1789 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for HoldingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>1790 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 1791 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 1792 } 1793 } 1794 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &HoldingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>1795 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 1796 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 1797 } 1798 } 1799 unsafe impl ::std::marker::Send for HoldingRoutedEventArgs {} 1800 unsafe impl ::std::marker::Sync for HoldingRoutedEventArgs {} 1801 #[repr(transparent)] 1802 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1803 #[doc(hidden)] 1804 pub struct IAccessKeyDisplayDismissedEventArgs(::windows::runtime::IInspectable); 1805 unsafe impl ::windows::runtime::Interface for IAccessKeyDisplayDismissedEventArgs { 1806 type Vtable = IAccessKeyDisplayDismissedEventArgs_abi; 1807 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2321616326, 55085, 19624, [159, 102, 85, 111, 53, 181, 19, 218]); 1808 } 1809 #[repr(C)] 1810 #[doc(hidden)] 1811 pub struct IAccessKeyDisplayDismissedEventArgs_abi( 1812 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1813 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1814 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1815 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1816 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1817 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1818 ); 1819 #[repr(transparent)] 1820 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1821 #[doc(hidden)] 1822 pub struct IAccessKeyDisplayRequestedEventArgs(::windows::runtime::IInspectable); 1823 unsafe impl ::windows::runtime::Interface for IAccessKeyDisplayRequestedEventArgs { 1824 type Vtable = IAccessKeyDisplayRequestedEventArgs_abi; 1825 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(201825877, 5118, 19715, [166, 29, 225, 47, 6, 86, 114, 134]); 1826 } 1827 #[repr(C)] 1828 #[doc(hidden)] 1829 pub struct IAccessKeyDisplayRequestedEventArgs_abi( 1830 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1831 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1832 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1833 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1834 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1835 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1836 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 1837 ); 1838 #[repr(transparent)] 1839 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1840 #[doc(hidden)] 1841 pub struct IAccessKeyInvokedEventArgs(::windows::runtime::IInspectable); 1842 unsafe impl ::windows::runtime::Interface for IAccessKeyInvokedEventArgs { 1843 type Vtable = IAccessKeyInvokedEventArgs_abi; 1844 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3488206231, 50968, 16529, [183, 221, 173, 241, 192, 114, 177, 225]); 1845 } 1846 #[repr(C)] 1847 #[doc(hidden)] 1848 pub struct IAccessKeyInvokedEventArgs_abi( 1849 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1850 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1851 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1852 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1853 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1854 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1855 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1856 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 1857 ); 1858 #[repr(transparent)] 1859 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1860 #[doc(hidden)] 1861 pub struct IAccessKeyManager(::windows::runtime::IInspectable); 1862 unsafe impl ::windows::runtime::Interface for IAccessKeyManager { 1863 type Vtable = IAccessKeyManager_abi; 1864 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3972625328, 12009, 19228, [152, 215, 110, 14, 129, 109, 51, 75]); 1865 } 1866 #[repr(C)] 1867 #[doc(hidden)] 1868 pub struct IAccessKeyManager_abi( 1869 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1870 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1871 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1872 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1873 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1874 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1875 ); 1876 #[repr(transparent)] 1877 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1878 #[doc(hidden)] 1879 pub struct IAccessKeyManagerStatics(::windows::runtime::IInspectable); 1880 unsafe impl ::windows::runtime::Interface for IAccessKeyManagerStatics { 1881 type Vtable = IAccessKeyManagerStatics_abi; 1882 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1285615590, 55752, 20156, [180, 199, 48, 209, 131, 138, 129, 241]); 1883 } 1884 #[repr(C)] 1885 #[doc(hidden)] 1886 pub struct IAccessKeyManagerStatics_abi( 1887 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1888 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1889 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1890 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1891 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1892 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1893 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1894 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 1895 #[cfg(not(feature = "Foundation"))] usize, 1896 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 1897 #[cfg(not(feature = "Foundation"))] usize, 1898 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1899 ); 1900 #[repr(transparent)] 1901 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1902 #[doc(hidden)] 1903 pub struct IAccessKeyManagerStatics2(::windows::runtime::IInspectable); 1904 unsafe impl ::windows::runtime::Interface for IAccessKeyManagerStatics2 { 1905 type Vtable = IAccessKeyManagerStatics2_abi; 1906 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2519446932, 10931, 18373, [149, 75, 112, 146, 243, 85, 247, 151]); 1907 } 1908 #[repr(C)] 1909 #[doc(hidden)] 1910 pub struct IAccessKeyManagerStatics2_abi( 1911 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1912 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1913 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1914 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1915 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1916 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1917 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1918 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 1919 ); 1920 #[repr(transparent)] 1921 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1922 #[doc(hidden)] 1923 pub struct ICanExecuteRequestedEventArgs(::windows::runtime::IInspectable); 1924 unsafe impl ::windows::runtime::Interface for ICanExecuteRequestedEventArgs { 1925 type Vtable = ICanExecuteRequestedEventArgs_abi; 1926 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3370603094, 6480, 20573, [153, 59, 117, 144, 126, 249, 104, 48]); 1927 } 1928 #[repr(C)] 1929 #[doc(hidden)] 1930 pub struct ICanExecuteRequestedEventArgs_abi( 1931 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1932 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1933 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1934 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1935 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1936 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1937 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1938 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1939 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 1940 ); 1941 #[repr(transparent)] 1942 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1943 #[doc(hidden)] 1944 pub struct ICharacterReceivedRoutedEventArgs(::windows::runtime::IInspectable); 1945 unsafe impl ::windows::runtime::Interface for ICharacterReceivedRoutedEventArgs { 1946 type Vtable = ICharacterReceivedRoutedEventArgs_abi; 1947 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2018114946, 18660, 17485, [148, 25, 147, 171, 136, 146, 193, 7]); 1948 } 1949 #[repr(C)] 1950 #[doc(hidden)] 1951 pub struct ICharacterReceivedRoutedEventArgs_abi( 1952 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1953 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1954 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1955 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 1956 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1957 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 1958 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u16) -> ::windows::runtime::HRESULT, 1959 #[cfg(feature = "UI_Core")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Core::CorePhysicalKeyStatus) -> ::windows::runtime::HRESULT, 1960 #[cfg(not(feature = "UI_Core"))] usize, 1961 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 1962 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 1963 ); 1964 #[repr(transparent)] 1965 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1966 pub struct ICommand(::windows::runtime::IInspectable); 1967 unsafe impl ::windows::runtime::Interface for ICommand { 1968 type Vtable = ICommand_abi; 1969 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3853464898, 51815, 16513, [153, 91, 112, 157, 209, 55, 146, 223]); 1970 } 1971 impl ICommand { 1972 #[cfg(feature = "Foundation")] CanExecuteChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1973 pub fn CanExecuteChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1974 let this = self; 1975 unsafe { 1976 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1977 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1978 } 1979 } 1980 #[cfg(feature = "Foundation")] RemoveCanExecuteChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1981 pub fn RemoveCanExecuteChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1982 let this = self; 1983 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1984 } CanExecute<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, parameter: Param0) -> ::windows::runtime::Result<bool>1985 pub fn CanExecute<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, parameter: Param0) -> ::windows::runtime::Result<bool> { 1986 let this = self; 1987 unsafe { 1988 let mut result__: bool = ::std::mem::zeroed(); 1989 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), parameter.into_param().abi(), &mut result__).from_abi::<bool>(result__) 1990 } 1991 } Execute<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, parameter: Param0) -> ::windows::runtime::Result<()>1992 pub fn Execute<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, parameter: Param0) -> ::windows::runtime::Result<()> { 1993 let this = self; 1994 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), parameter.into_param().abi()).ok() } 1995 } 1996 } 1997 unsafe impl ::windows::runtime::RuntimeType for ICommand { 1998 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"{e5af3542-ca67-4081-995b-709dd13792df}"); 1999 } 2000 impl ::std::convert::From<ICommand> for ::windows::runtime::IUnknown { from(value: ICommand) -> Self2001 fn from(value: ICommand) -> Self { 2002 unsafe { ::std::mem::transmute(value) } 2003 } 2004 } 2005 impl ::std::convert::From<&ICommand> for ::windows::runtime::IUnknown { from(value: &ICommand) -> Self2006 fn from(value: &ICommand) -> Self { 2007 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2008 } 2009 } 2010 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ICommand { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2011 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2012 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2013 } 2014 } 2015 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ICommand { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2016 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2017 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2018 } 2019 } 2020 impl ::std::convert::From<ICommand> for ::windows::runtime::IInspectable { from(value: ICommand) -> Self2021 fn from(value: ICommand) -> Self { 2022 value.0 2023 } 2024 } 2025 impl ::std::convert::From<&ICommand> for ::windows::runtime::IInspectable { from(value: &ICommand) -> Self2026 fn from(value: &ICommand) -> Self { 2027 value.0.clone() 2028 } 2029 } 2030 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ICommand { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2031 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2032 ::windows::runtime::Param::Owned(self.0) 2033 } 2034 } 2035 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ICommand { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2036 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2037 ::windows::runtime::Param::Borrowed(&self.0) 2038 } 2039 } 2040 #[repr(C)] 2041 #[doc(hidden)] 2042 pub struct ICommand_abi( 2043 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2044 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2045 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2046 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2047 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2048 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2049 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2050 #[cfg(not(feature = "Foundation"))] usize, 2051 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2052 #[cfg(not(feature = "Foundation"))] usize, 2053 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, parameter: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2054 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, parameter: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2055 ); 2056 #[repr(transparent)] 2057 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2058 #[doc(hidden)] 2059 pub struct IContextRequestedEventArgs(::windows::runtime::IInspectable); 2060 unsafe impl ::windows::runtime::Interface for IContextRequestedEventArgs { 2061 type Vtable = IContextRequestedEventArgs_abi; 2062 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1113689610, 7350, 18171, [131, 116, 10, 236, 104, 170, 94, 81]); 2063 } 2064 #[repr(C)] 2065 #[doc(hidden)] 2066 pub struct IContextRequestedEventArgs_abi( 2067 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2068 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2069 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2070 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2071 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2072 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2073 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2074 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2075 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, relativeto: ::windows::runtime::RawPtr, point: *mut super::super::super::Foundation::Point, result__: *mut bool) -> ::windows::runtime::HRESULT, 2076 #[cfg(not(feature = "Foundation"))] usize, 2077 ); 2078 #[repr(transparent)] 2079 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2080 #[doc(hidden)] 2081 pub struct IDoubleTappedRoutedEventArgs(::windows::runtime::IInspectable); 2082 unsafe impl ::windows::runtime::Interface for IDoubleTappedRoutedEventArgs { 2083 type Vtable = IDoubleTappedRoutedEventArgs_abi; 2084 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2940224548, 9951, 17652, [135, 20, 147, 89, 36, 155, 98, 211]); 2085 } 2086 #[repr(C)] 2087 #[doc(hidden)] 2088 pub struct IDoubleTappedRoutedEventArgs_abi( 2089 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2090 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2091 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2092 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2093 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2094 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2095 #[cfg(feature = "Devices_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Devices::Input::PointerDeviceType) -> ::windows::runtime::HRESULT, 2096 #[cfg(not(feature = "Devices_Input"))] usize, 2097 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2098 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2099 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, relativeto: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Point) -> ::windows::runtime::HRESULT, 2100 #[cfg(not(feature = "Foundation"))] usize, 2101 ); 2102 #[repr(transparent)] 2103 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2104 #[doc(hidden)] 2105 pub struct IExecuteRequestedEventArgs(::windows::runtime::IInspectable); 2106 unsafe impl ::windows::runtime::Interface for IExecuteRequestedEventArgs { 2107 type Vtable = IExecuteRequestedEventArgs_abi; 2108 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3766462260, 41142, 22357, [158, 135, 36, 245, 76, 202, 147, 114]); 2109 } 2110 #[repr(C)] 2111 #[doc(hidden)] 2112 pub struct IExecuteRequestedEventArgs_abi( 2113 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2114 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2115 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2116 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2117 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2118 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2119 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2120 ); 2121 #[repr(transparent)] 2122 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2123 #[doc(hidden)] 2124 pub struct IFindNextElementOptions(::windows::runtime::IInspectable); 2125 unsafe impl ::windows::runtime::Interface for IFindNextElementOptions { 2126 type Vtable = IFindNextElementOptions_abi; 2127 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3632980523, 18114, 16892, [137, 126, 181, 150, 25, 119, 184, 157]); 2128 } 2129 #[repr(C)] 2130 #[doc(hidden)] 2131 pub struct IFindNextElementOptions_abi( 2132 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2133 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2134 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2135 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2136 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2137 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2138 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2139 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2140 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Rect) -> ::windows::runtime::HRESULT, 2141 #[cfg(not(feature = "Foundation"))] usize, 2142 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: super::super::super::Foundation::Rect) -> ::windows::runtime::HRESULT, 2143 #[cfg(not(feature = "Foundation"))] usize, 2144 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Rect) -> ::windows::runtime::HRESULT, 2145 #[cfg(not(feature = "Foundation"))] usize, 2146 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: super::super::super::Foundation::Rect) -> ::windows::runtime::HRESULT, 2147 #[cfg(not(feature = "Foundation"))] usize, 2148 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut XYFocusNavigationStrategyOverride) -> ::windows::runtime::HRESULT, 2149 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: XYFocusNavigationStrategyOverride) -> ::windows::runtime::HRESULT, 2150 ); 2151 #[repr(transparent)] 2152 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2153 #[doc(hidden)] 2154 pub struct IFocusManager(::windows::runtime::IInspectable); 2155 unsafe impl ::windows::runtime::Interface for IFocusManager { 2156 type Vtable = IFocusManager_abi; 2157 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3359896843, 15235, 19873, [157, 111, 85, 124, 17, 105, 243, 65]); 2158 } 2159 #[repr(C)] 2160 #[doc(hidden)] 2161 pub struct IFocusManager_abi( 2162 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2163 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2164 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2165 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2166 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2167 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2168 ); 2169 #[repr(transparent)] 2170 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2171 #[doc(hidden)] 2172 pub struct IFocusManagerGotFocusEventArgs(::windows::runtime::IInspectable); 2173 unsafe impl ::windows::runtime::Interface for IFocusManagerGotFocusEventArgs { 2174 type Vtable = IFocusManagerGotFocusEventArgs_abi; 2175 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2544524675, 21339, 20602, [134, 142, 98, 183, 6, 240, 107, 97]); 2176 } 2177 #[repr(C)] 2178 #[doc(hidden)] 2179 pub struct IFocusManagerGotFocusEventArgs_abi( 2180 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2181 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2182 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2183 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2184 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2185 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2186 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2187 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2188 ); 2189 #[repr(transparent)] 2190 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2191 #[doc(hidden)] 2192 pub struct IFocusManagerLostFocusEventArgs(::windows::runtime::IInspectable); 2193 unsafe impl ::windows::runtime::Interface for IFocusManagerLostFocusEventArgs { 2194 type Vtable = IFocusManagerLostFocusEventArgs_abi; 2195 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1041596026, 38264, 23763, [170, 168, 5, 27, 61, 57, 25, 120]); 2196 } 2197 #[repr(C)] 2198 #[doc(hidden)] 2199 pub struct IFocusManagerLostFocusEventArgs_abi( 2200 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2201 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2202 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2203 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2204 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2205 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2206 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2207 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2208 ); 2209 #[repr(transparent)] 2210 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2211 #[doc(hidden)] 2212 pub struct IFocusManagerStatics(::windows::runtime::IInspectable); 2213 unsafe impl ::windows::runtime::Interface for IFocusManagerStatics { 2214 type Vtable = IFocusManagerStatics_abi; 2215 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(516739878, 33154, 17538, [130, 106, 9, 24, 233, 237, 154, 247]); 2216 } 2217 #[repr(C)] 2218 #[doc(hidden)] 2219 pub struct IFocusManagerStatics_abi( 2220 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2221 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2222 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2223 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2224 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2225 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2226 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2227 ); 2228 #[repr(transparent)] 2229 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2230 #[doc(hidden)] 2231 pub struct IFocusManagerStatics2(::windows::runtime::IInspectable); 2232 unsafe impl ::windows::runtime::Interface for IFocusManagerStatics2 { 2233 type Vtable = IFocusManagerStatics2_abi; 2234 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2837501793, 56711, 20273, [190, 218, 239, 65, 127, 231, 192, 74]); 2235 } 2236 #[repr(C)] 2237 #[doc(hidden)] 2238 pub struct IFocusManagerStatics2_abi( 2239 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2240 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2241 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2242 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2243 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2244 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2245 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, focusnavigationdirection: FocusNavigationDirection, result__: *mut bool) -> ::windows::runtime::HRESULT, 2246 ); 2247 #[repr(transparent)] 2248 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2249 #[doc(hidden)] 2250 pub struct IFocusManagerStatics3(::windows::runtime::IInspectable); 2251 unsafe impl ::windows::runtime::Interface for IFocusManagerStatics3 { 2252 type Vtable = IFocusManagerStatics3_abi; 2253 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1619025599, 45385, 16765, [131, 241, 186, 235, 86, 14, 42, 71]); 2254 } 2255 #[repr(C)] 2256 #[doc(hidden)] 2257 pub struct IFocusManagerStatics3_abi( 2258 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2259 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2260 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2261 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2262 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2263 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2264 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, focusnavigationdirection: FocusNavigationDirection, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2265 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, focusnavigationdirection: FocusNavigationDirection, hintrect: super::super::super::Foundation::Rect, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2266 #[cfg(not(feature = "Foundation"))] usize, 2267 ); 2268 #[repr(transparent)] 2269 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2270 #[doc(hidden)] 2271 pub struct IFocusManagerStatics4(::windows::runtime::IInspectable); 2272 unsafe impl ::windows::runtime::Interface for IFocusManagerStatics4 { 2273 type Vtable = IFocusManagerStatics4_abi; 2274 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(690450076, 7276, 16714, [186, 28, 150, 239, 213, 150, 43, 205]); 2275 } 2276 #[repr(C)] 2277 #[doc(hidden)] 2278 pub struct IFocusManagerStatics4_abi( 2279 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2280 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2281 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2282 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2283 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2284 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2285 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, focusnavigationdirection: FocusNavigationDirection, focusnavigationoptions: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2286 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, focusnavigationdirection: FocusNavigationDirection, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2287 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, searchscope: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2288 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, searchscope: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2289 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, focusnavigationdirection: FocusNavigationDirection, focusnavigationoptions: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2290 ); 2291 #[repr(transparent)] 2292 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2293 #[doc(hidden)] 2294 pub struct IFocusManagerStatics5(::windows::runtime::IInspectable); 2295 unsafe impl ::windows::runtime::Interface for IFocusManagerStatics5 { 2296 type Vtable = IFocusManagerStatics5_abi; 2297 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(672062561, 8314, 19835, [185, 143, 206, 22, 94, 27, 32, 21]); 2298 } 2299 #[repr(C)] 2300 #[doc(hidden)] 2301 pub struct IFocusManagerStatics5_abi( 2302 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2303 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2304 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2305 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2306 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2307 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2308 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, element: ::windows::runtime::RawPtr, value: super::FocusState, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2309 #[cfg(not(feature = "Foundation"))] usize, 2310 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, focusnavigationdirection: FocusNavigationDirection, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2311 #[cfg(not(feature = "Foundation"))] usize, 2312 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, focusnavigationdirection: FocusNavigationDirection, focusnavigationoptions: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2313 #[cfg(not(feature = "Foundation"))] usize, 2314 ); 2315 #[repr(transparent)] 2316 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2317 #[doc(hidden)] 2318 pub struct IFocusManagerStatics6(::windows::runtime::IInspectable); 2319 unsafe impl ::windows::runtime::Interface for IFocusManagerStatics6 { 2320 type Vtable = IFocusManagerStatics6_abi; 2321 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(893821366, 8383, 20487, [146, 157, 230, 211, 46, 22, 175, 228]); 2322 } 2323 #[repr(C)] 2324 #[doc(hidden)] 2325 pub struct IFocusManagerStatics6_abi( 2326 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2327 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2328 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2329 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2330 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2331 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2332 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2333 #[cfg(not(feature = "Foundation"))] usize, 2334 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2335 #[cfg(not(feature = "Foundation"))] usize, 2336 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2337 #[cfg(not(feature = "Foundation"))] usize, 2338 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2339 #[cfg(not(feature = "Foundation"))] usize, 2340 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2341 #[cfg(not(feature = "Foundation"))] usize, 2342 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2343 #[cfg(not(feature = "Foundation"))] usize, 2344 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2345 #[cfg(not(feature = "Foundation"))] usize, 2346 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2347 #[cfg(not(feature = "Foundation"))] usize, 2348 ); 2349 #[repr(transparent)] 2350 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2351 #[doc(hidden)] 2352 pub struct IFocusManagerStatics7(::windows::runtime::IInspectable); 2353 unsafe impl ::windows::runtime::Interface for IFocusManagerStatics7 { 2354 type Vtable = IFocusManagerStatics7_abi; 2355 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2513894039, 61692, 23602, [178, 157, 7, 192, 78, 201, 102, 176]); 2356 } 2357 #[repr(C)] 2358 #[doc(hidden)] 2359 pub struct IFocusManagerStatics7_abi( 2360 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2361 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2362 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2363 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2364 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2365 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2366 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, xamlroot: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2367 ); 2368 #[repr(transparent)] 2369 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2370 #[doc(hidden)] 2371 pub struct IFocusMovementResult(::windows::runtime::IInspectable); 2372 unsafe impl ::windows::runtime::Interface for IFocusMovementResult { 2373 type Vtable = IFocusMovementResult_abi; 2374 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(115337939, 49838, 17595, [191, 171, 156, 115, 222, 132, 7, 164]); 2375 } 2376 #[repr(C)] 2377 #[doc(hidden)] 2378 pub struct IFocusMovementResult_abi( 2379 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2380 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2381 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2382 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2383 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2384 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2385 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2386 ); 2387 #[repr(transparent)] 2388 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2389 #[doc(hidden)] 2390 pub struct IGettingFocusEventArgs(::windows::runtime::IInspectable); 2391 unsafe impl ::windows::runtime::Interface for IGettingFocusEventArgs { 2392 type Vtable = IGettingFocusEventArgs_abi; 2393 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4194679246, 50812, 19432, [143, 212, 196, 77, 103, 135, 126, 13]); 2394 } 2395 #[repr(C)] 2396 #[doc(hidden)] 2397 pub struct IGettingFocusEventArgs_abi( 2398 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2399 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2400 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2401 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2402 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2403 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2404 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2405 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2406 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2407 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::FocusState) -> ::windows::runtime::HRESULT, 2408 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut FocusNavigationDirection) -> ::windows::runtime::HRESULT, 2409 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2410 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2411 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut FocusInputDeviceKind) -> ::windows::runtime::HRESULT, 2412 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2413 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2414 ); 2415 #[repr(transparent)] 2416 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2417 #[doc(hidden)] 2418 pub struct IGettingFocusEventArgs2(::windows::runtime::IInspectable); 2419 unsafe impl ::windows::runtime::Interface for IGettingFocusEventArgs2 { 2420 type Vtable = IGettingFocusEventArgs2_abi; 2421 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2289388923, 46265, 18777, [139, 206, 137, 191, 33, 46, 212, 235]); 2422 } 2423 #[repr(C)] 2424 #[doc(hidden)] 2425 pub struct IGettingFocusEventArgs2_abi( 2426 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2427 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2428 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2429 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2430 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2431 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2432 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2433 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, element: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2434 ); 2435 #[repr(transparent)] 2436 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2437 #[doc(hidden)] 2438 pub struct IGettingFocusEventArgs3(::windows::runtime::IInspectable); 2439 unsafe impl ::windows::runtime::Interface for IGettingFocusEventArgs3 { 2440 type Vtable = IGettingFocusEventArgs3_abi; 2441 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1308772497, 56127, 24184, [183, 90, 98, 191, 195, 81, 7, 53]); 2442 } 2443 #[repr(C)] 2444 #[doc(hidden)] 2445 pub struct IGettingFocusEventArgs3_abi( 2446 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2447 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2448 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2449 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2450 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2451 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2452 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2453 ); 2454 #[repr(transparent)] 2455 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2456 #[doc(hidden)] 2457 pub struct IHoldingRoutedEventArgs(::windows::runtime::IInspectable); 2458 unsafe impl ::windows::runtime::Interface for IHoldingRoutedEventArgs { 2459 type Vtable = IHoldingRoutedEventArgs_abi; 2460 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3259432739, 55309, 17630, [141, 185, 13, 129, 94, 38, 154, 192]); 2461 } 2462 #[repr(C)] 2463 #[doc(hidden)] 2464 pub struct IHoldingRoutedEventArgs_abi( 2465 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2466 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2467 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2468 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2469 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2470 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2471 #[cfg(feature = "Devices_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Devices::Input::PointerDeviceType) -> ::windows::runtime::HRESULT, 2472 #[cfg(not(feature = "Devices_Input"))] usize, 2473 #[cfg(feature = "UI_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::HoldingState) -> ::windows::runtime::HRESULT, 2474 #[cfg(not(feature = "UI_Input"))] usize, 2475 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2476 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2477 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, relativeto: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Point) -> ::windows::runtime::HRESULT, 2478 #[cfg(not(feature = "Foundation"))] usize, 2479 ); 2480 #[repr(transparent)] 2481 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2482 #[doc(hidden)] 2483 pub struct IInertiaExpansionBehavior(::windows::runtime::IInspectable); 2484 unsafe impl ::windows::runtime::Interface for IInertiaExpansionBehavior { 2485 type Vtable = IInertiaExpansionBehavior_abi; 2486 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1964869605, 36162, 17605, [150, 94, 60, 211, 12, 201, 214, 247]); 2487 } 2488 #[repr(C)] 2489 #[doc(hidden)] 2490 pub struct IInertiaExpansionBehavior_abi( 2491 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2492 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2493 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2494 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2495 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2496 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2497 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut f64) -> ::windows::runtime::HRESULT, 2498 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: f64) -> ::windows::runtime::HRESULT, 2499 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut f64) -> ::windows::runtime::HRESULT, 2500 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: f64) -> ::windows::runtime::HRESULT, 2501 ); 2502 #[repr(transparent)] 2503 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2504 #[doc(hidden)] 2505 pub struct IInertiaRotationBehavior(::windows::runtime::IInspectable); 2506 unsafe impl ::windows::runtime::Interface for IInertiaRotationBehavior { 2507 type Vtable = IInertiaRotationBehavior_abi; 2508 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1112341294, 48125, 17957, [174, 120, 32, 198, 91, 241, 239, 175]); 2509 } 2510 #[repr(C)] 2511 #[doc(hidden)] 2512 pub struct IInertiaRotationBehavior_abi( 2513 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2514 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2515 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2516 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2517 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2518 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2519 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut f64) -> ::windows::runtime::HRESULT, 2520 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: f64) -> ::windows::runtime::HRESULT, 2521 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut f64) -> ::windows::runtime::HRESULT, 2522 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: f64) -> ::windows::runtime::HRESULT, 2523 ); 2524 #[repr(transparent)] 2525 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2526 #[doc(hidden)] 2527 pub struct IInertiaTranslationBehavior(::windows::runtime::IInspectable); 2528 unsafe impl ::windows::runtime::Interface for IInertiaTranslationBehavior { 2529 type Vtable = IInertiaTranslationBehavior_abi; 2530 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1171498258, 15154, 18562, [164, 194, 236, 250, 45, 75, 109, 240]); 2531 } 2532 #[repr(C)] 2533 #[doc(hidden)] 2534 pub struct IInertiaTranslationBehavior_abi( 2535 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2536 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2537 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2538 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2539 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2540 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2541 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut f64) -> ::windows::runtime::HRESULT, 2542 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: f64) -> ::windows::runtime::HRESULT, 2543 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut f64) -> ::windows::runtime::HRESULT, 2544 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: f64) -> ::windows::runtime::HRESULT, 2545 ); 2546 #[repr(transparent)] 2547 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2548 #[doc(hidden)] 2549 pub struct IInputScope(::windows::runtime::IInspectable); 2550 unsafe impl ::windows::runtime::Interface for IInputScope { 2551 type Vtable = IInputScope_abi; 2552 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1544521203, 63960, 16928, [182, 102, 4, 93, 7, 77, 155, 250]); 2553 } 2554 #[repr(C)] 2555 #[doc(hidden)] 2556 pub struct IInputScope_abi( 2557 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2558 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2559 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2560 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2561 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2562 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2563 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2564 #[cfg(not(feature = "Foundation_Collections"))] usize, 2565 ); 2566 #[repr(transparent)] 2567 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2568 #[doc(hidden)] 2569 pub struct IInputScopeName(::windows::runtime::IInspectable); 2570 unsafe impl ::windows::runtime::Interface for IInputScopeName { 2571 type Vtable = IInputScopeName_abi; 2572 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4248725911, 2299, 19642, [160, 33, 121, 45, 117, 137, 253, 90]); 2573 } 2574 #[repr(C)] 2575 #[doc(hidden)] 2576 pub struct IInputScopeName_abi( 2577 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2578 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2579 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2580 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2581 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2582 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2583 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut InputScopeNameValue) -> ::windows::runtime::HRESULT, 2584 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: InputScopeNameValue) -> ::windows::runtime::HRESULT, 2585 ); 2586 #[repr(transparent)] 2587 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2588 #[doc(hidden)] 2589 pub struct IInputScopeNameFactory(::windows::runtime::IInspectable); 2590 unsafe impl ::windows::runtime::Interface for IInputScopeNameFactory { 2591 type Vtable = IInputScopeNameFactory_abi; 2592 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1245756242, 19415, 20052, [134, 23, 28, 218, 138, 30, 218, 127]); 2593 } 2594 #[repr(C)] 2595 #[doc(hidden)] 2596 pub struct IInputScopeNameFactory_abi( 2597 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2598 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2599 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2600 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2601 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2602 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2603 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, namevalue: InputScopeNameValue, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2604 ); 2605 #[repr(transparent)] 2606 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2607 #[doc(hidden)] 2608 pub struct IKeyRoutedEventArgs(::windows::runtime::IInspectable); 2609 unsafe impl ::windows::runtime::Interface for IKeyRoutedEventArgs { 2610 type Vtable = IKeyRoutedEventArgs_abi; 2611 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3570220542, 16505, 17129, [163, 154, 48, 149, 211, 240, 73, 198]); 2612 } 2613 #[repr(C)] 2614 #[doc(hidden)] 2615 pub struct IKeyRoutedEventArgs_abi( 2616 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2617 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2618 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2619 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2620 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2621 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2622 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::System::VirtualKey) -> ::windows::runtime::HRESULT, 2623 #[cfg(not(feature = "System"))] usize, 2624 #[cfg(feature = "UI_Core")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Core::CorePhysicalKeyStatus) -> ::windows::runtime::HRESULT, 2625 #[cfg(not(feature = "UI_Core"))] usize, 2626 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2627 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2628 ); 2629 #[repr(transparent)] 2630 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2631 #[doc(hidden)] 2632 pub struct IKeyRoutedEventArgs2(::windows::runtime::IInspectable); 2633 unsafe impl ::windows::runtime::Interface for IKeyRoutedEventArgs2 { 2634 type Vtable = IKeyRoutedEventArgs2_abi; 2635 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(453170554, 38452, 20244, [145, 178, 19, 62, 66, 253, 179, 205]); 2636 } 2637 #[repr(C)] 2638 #[doc(hidden)] 2639 pub struct IKeyRoutedEventArgs2_abi( 2640 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2641 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2642 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2643 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2644 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2645 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2646 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::System::VirtualKey) -> ::windows::runtime::HRESULT, 2647 #[cfg(not(feature = "System"))] usize, 2648 ); 2649 #[repr(transparent)] 2650 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2651 #[doc(hidden)] 2652 pub struct IKeyRoutedEventArgs3(::windows::runtime::IInspectable); 2653 unsafe impl ::windows::runtime::Interface for IKeyRoutedEventArgs3 { 2654 type Vtable = IKeyRoutedEventArgs3_abi; 2655 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(662304180, 51777, 16667, [168, 239, 244, 252, 120, 231, 128, 87]); 2656 } 2657 #[repr(C)] 2658 #[doc(hidden)] 2659 pub struct IKeyRoutedEventArgs3_abi( 2660 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2661 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2662 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2663 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2664 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2665 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2666 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2667 ); 2668 #[repr(transparent)] 2669 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2670 #[doc(hidden)] 2671 pub struct IKeyboardAccelerator(::windows::runtime::IInspectable); 2672 unsafe impl ::windows::runtime::Interface for IKeyboardAccelerator { 2673 type Vtable = IKeyboardAccelerator_abi; 2674 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2464552990, 6574, 18010, [155, 60, 167, 30, 233, 234, 116, 32]); 2675 } 2676 #[repr(C)] 2677 #[doc(hidden)] 2678 pub struct IKeyboardAccelerator_abi( 2679 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2680 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2681 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2682 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2683 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2684 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2685 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::System::VirtualKey) -> ::windows::runtime::HRESULT, 2686 #[cfg(not(feature = "System"))] usize, 2687 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: super::super::super::System::VirtualKey) -> ::windows::runtime::HRESULT, 2688 #[cfg(not(feature = "System"))] usize, 2689 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::System::VirtualKeyModifiers) -> ::windows::runtime::HRESULT, 2690 #[cfg(not(feature = "System"))] usize, 2691 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: super::super::super::System::VirtualKeyModifiers) -> ::windows::runtime::HRESULT, 2692 #[cfg(not(feature = "System"))] usize, 2693 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2694 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2695 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2696 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2697 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2698 #[cfg(not(feature = "Foundation"))] usize, 2699 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2700 #[cfg(not(feature = "Foundation"))] usize, 2701 ); 2702 #[repr(transparent)] 2703 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2704 #[doc(hidden)] 2705 pub struct IKeyboardAcceleratorFactory(::windows::runtime::IInspectable); 2706 unsafe impl ::windows::runtime::Interface for IKeyboardAcceleratorFactory { 2707 type Vtable = IKeyboardAcceleratorFactory_abi; 2708 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1155041945, 19453, 19015, [168, 147, 81, 95, 56, 134, 35, 246]); 2709 } 2710 #[repr(C)] 2711 #[doc(hidden)] 2712 pub struct IKeyboardAcceleratorFactory_abi( 2713 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2714 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2715 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2716 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2717 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2718 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2719 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, baseinterface: ::windows::runtime::RawPtr, innerinterface: *mut ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2720 ); 2721 #[repr(transparent)] 2722 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2723 #[doc(hidden)] 2724 pub struct IKeyboardAcceleratorInvokedEventArgs(::windows::runtime::IInspectable); 2725 unsafe impl ::windows::runtime::Interface for IKeyboardAcceleratorInvokedEventArgs { 2726 type Vtable = IKeyboardAcceleratorInvokedEventArgs_abi; 2727 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3221947378, 1255, 17429, [177, 125, 215, 107, 148, 144, 222, 43]); 2728 } 2729 #[repr(C)] 2730 #[doc(hidden)] 2731 pub struct IKeyboardAcceleratorInvokedEventArgs_abi( 2732 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2733 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2734 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2735 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2736 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2737 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2738 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2739 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2740 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2741 ); 2742 #[repr(transparent)] 2743 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2744 #[doc(hidden)] 2745 pub struct IKeyboardAcceleratorInvokedEventArgs2(::windows::runtime::IInspectable); 2746 unsafe impl ::windows::runtime::Interface for IKeyboardAcceleratorInvokedEventArgs2 { 2747 type Vtable = IKeyboardAcceleratorInvokedEventArgs2_abi; 2748 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3204228280, 22791, 18670, [142, 33, 156, 150, 144, 120, 250, 17]); 2749 } 2750 #[repr(C)] 2751 #[doc(hidden)] 2752 pub struct IKeyboardAcceleratorInvokedEventArgs2_abi( 2753 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2754 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2755 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2756 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2757 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2758 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2759 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2760 ); 2761 #[repr(transparent)] 2762 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2763 #[doc(hidden)] 2764 pub struct IKeyboardAcceleratorStatics(::windows::runtime::IInspectable); 2765 unsafe impl ::windows::runtime::Interface for IKeyboardAcceleratorStatics { 2766 type Vtable = IKeyboardAcceleratorStatics_abi; 2767 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1003765073, 39859, 17773, [191, 21, 128, 74, 223, 184, 98, 97]); 2768 } 2769 #[repr(C)] 2770 #[doc(hidden)] 2771 pub struct IKeyboardAcceleratorStatics_abi( 2772 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2773 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2774 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2775 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2776 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2777 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2778 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2779 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2780 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2781 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2782 ); 2783 #[repr(transparent)] 2784 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2785 #[doc(hidden)] 2786 pub struct ILosingFocusEventArgs(::windows::runtime::IInspectable); 2787 unsafe impl ::windows::runtime::Interface for ILosingFocusEventArgs { 2788 type Vtable = ILosingFocusEventArgs_abi; 2789 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4193682375, 55177, 18219, [170, 147, 109, 65, 5, 230, 218, 190]); 2790 } 2791 #[repr(C)] 2792 #[doc(hidden)] 2793 pub struct ILosingFocusEventArgs_abi( 2794 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2795 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2796 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2797 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2798 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2799 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2800 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2801 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2802 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2803 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::FocusState) -> ::windows::runtime::HRESULT, 2804 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut FocusNavigationDirection) -> ::windows::runtime::HRESULT, 2805 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2806 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2807 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut FocusInputDeviceKind) -> ::windows::runtime::HRESULT, 2808 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2809 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2810 ); 2811 #[repr(transparent)] 2812 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2813 #[doc(hidden)] 2814 pub struct ILosingFocusEventArgs2(::windows::runtime::IInspectable); 2815 unsafe impl ::windows::runtime::Interface for ILosingFocusEventArgs2 { 2816 type Vtable = ILosingFocusEventArgs2_abi; 2817 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(76806873, 49791, 18079, [142, 98, 82, 179, 164, 247, 205, 84]); 2818 } 2819 #[repr(C)] 2820 #[doc(hidden)] 2821 pub struct ILosingFocusEventArgs2_abi( 2822 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2823 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2824 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2825 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2826 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2827 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2828 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2829 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, element: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2830 ); 2831 #[repr(transparent)] 2832 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2833 #[doc(hidden)] 2834 pub struct ILosingFocusEventArgs3(::windows::runtime::IInspectable); 2835 unsafe impl ::windows::runtime::Interface for ILosingFocusEventArgs3 { 2836 type Vtable = ILosingFocusEventArgs3_abi; 2837 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3381199037, 2937, 22126, [173, 31, 67, 111, 165, 19, 174, 34]); 2838 } 2839 #[repr(C)] 2840 #[doc(hidden)] 2841 pub struct ILosingFocusEventArgs3_abi( 2842 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2843 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2844 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2845 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2846 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2847 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2848 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2849 ); 2850 #[repr(transparent)] 2851 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2852 #[doc(hidden)] 2853 pub struct IManipulationCompletedRoutedEventArgs(::windows::runtime::IInspectable); 2854 unsafe impl ::windows::runtime::Interface for IManipulationCompletedRoutedEventArgs { 2855 type Vtable = IManipulationCompletedRoutedEventArgs_abi; 2856 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3048053539, 12097, 18830, [131, 25, 1, 94, 232, 167, 83, 70]); 2857 } 2858 #[repr(C)] 2859 #[doc(hidden)] 2860 pub struct IManipulationCompletedRoutedEventArgs_abi( 2861 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2862 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2863 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2864 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2865 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2866 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2867 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2868 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Point) -> ::windows::runtime::HRESULT, 2869 #[cfg(not(feature = "Foundation"))] usize, 2870 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2871 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::ManipulationDelta) -> ::windows::runtime::HRESULT, 2872 #[cfg(not(all(feature = "Foundation", feature = "UI_Input")))] usize, 2873 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::ManipulationVelocities) -> ::windows::runtime::HRESULT, 2874 #[cfg(not(all(feature = "Foundation", feature = "UI_Input")))] usize, 2875 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2876 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2877 #[cfg(feature = "Devices_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Devices::Input::PointerDeviceType) -> ::windows::runtime::HRESULT, 2878 #[cfg(not(feature = "Devices_Input"))] usize, 2879 ); 2880 #[repr(transparent)] 2881 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2882 #[doc(hidden)] 2883 pub struct IManipulationDeltaRoutedEventArgs(::windows::runtime::IInspectable); 2884 unsafe impl ::windows::runtime::Interface for IManipulationDeltaRoutedEventArgs { 2885 type Vtable = IManipulationDeltaRoutedEventArgs_abi; 2886 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1074616212, 19567, 18717, [130, 214, 53, 23, 16, 147, 153, 198]); 2887 } 2888 #[repr(C)] 2889 #[doc(hidden)] 2890 pub struct IManipulationDeltaRoutedEventArgs_abi( 2891 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2892 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2893 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2894 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2895 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2896 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2897 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2898 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Point) -> ::windows::runtime::HRESULT, 2899 #[cfg(not(feature = "Foundation"))] usize, 2900 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2901 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::ManipulationDelta) -> ::windows::runtime::HRESULT, 2902 #[cfg(not(all(feature = "Foundation", feature = "UI_Input")))] usize, 2903 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::ManipulationDelta) -> ::windows::runtime::HRESULT, 2904 #[cfg(not(all(feature = "Foundation", feature = "UI_Input")))] usize, 2905 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::ManipulationVelocities) -> ::windows::runtime::HRESULT, 2906 #[cfg(not(all(feature = "Foundation", feature = "UI_Input")))] usize, 2907 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2908 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2909 #[cfg(feature = "Devices_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Devices::Input::PointerDeviceType) -> ::windows::runtime::HRESULT, 2910 #[cfg(not(feature = "Devices_Input"))] usize, 2911 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2912 ); 2913 #[repr(transparent)] 2914 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2915 #[doc(hidden)] 2916 pub struct IManipulationInertiaStartingRoutedEventArgs(::windows::runtime::IInspectable); 2917 unsafe impl ::windows::runtime::Interface for IManipulationInertiaStartingRoutedEventArgs { 2918 type Vtable = IManipulationInertiaStartingRoutedEventArgs_abi; 2919 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(610963881, 51779, 19467, [172, 239, 129, 232, 184, 20, 117, 32]); 2920 } 2921 #[repr(C)] 2922 #[doc(hidden)] 2923 pub struct IManipulationInertiaStartingRoutedEventArgs_abi( 2924 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2925 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2926 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2927 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2928 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2929 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2930 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2931 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2932 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2933 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2934 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2935 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2936 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2937 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2938 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2939 #[cfg(feature = "Devices_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Devices::Input::PointerDeviceType) -> ::windows::runtime::HRESULT, 2940 #[cfg(not(feature = "Devices_Input"))] usize, 2941 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::ManipulationDelta) -> ::windows::runtime::HRESULT, 2942 #[cfg(not(all(feature = "Foundation", feature = "UI_Input")))] usize, 2943 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::ManipulationDelta) -> ::windows::runtime::HRESULT, 2944 #[cfg(not(all(feature = "Foundation", feature = "UI_Input")))] usize, 2945 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::ManipulationVelocities) -> ::windows::runtime::HRESULT, 2946 #[cfg(not(all(feature = "Foundation", feature = "UI_Input")))] usize, 2947 ); 2948 #[repr(transparent)] 2949 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2950 #[doc(hidden)] 2951 pub struct IManipulationPivot(::windows::runtime::IInspectable); 2952 unsafe impl ::windows::runtime::Interface for IManipulationPivot { 2953 type Vtable = IManipulationPivot_abi; 2954 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(775436453, 59074, 18840, [130, 172, 24, 116, 139, 20, 22, 102]); 2955 } 2956 #[repr(C)] 2957 #[doc(hidden)] 2958 pub struct IManipulationPivot_abi( 2959 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2960 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2961 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2962 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2963 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2964 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2965 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Point) -> ::windows::runtime::HRESULT, 2966 #[cfg(not(feature = "Foundation"))] usize, 2967 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: super::super::super::Foundation::Point) -> ::windows::runtime::HRESULT, 2968 #[cfg(not(feature = "Foundation"))] usize, 2969 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut f64) -> ::windows::runtime::HRESULT, 2970 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: f64) -> ::windows::runtime::HRESULT, 2971 ); 2972 #[repr(transparent)] 2973 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2974 #[doc(hidden)] 2975 pub struct IManipulationPivotFactory(::windows::runtime::IInspectable); 2976 unsafe impl ::windows::runtime::Interface for IManipulationPivotFactory { 2977 type Vtable = IManipulationPivotFactory_abi; 2978 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1829089337, 14082, 17302, [173, 155, 168, 37, 239, 166, 58, 59]); 2979 } 2980 #[repr(C)] 2981 #[doc(hidden)] 2982 pub struct IManipulationPivotFactory_abi( 2983 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2984 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2985 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2986 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2987 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2988 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2989 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, center: super::super::super::Foundation::Point, radius: f64, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2990 #[cfg(not(feature = "Foundation"))] usize, 2991 ); 2992 #[repr(transparent)] 2993 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2994 #[doc(hidden)] 2995 pub struct IManipulationStartedRoutedEventArgs(::windows::runtime::IInspectable); 2996 unsafe impl ::windows::runtime::Interface for IManipulationStartedRoutedEventArgs { 2997 type Vtable = IManipulationStartedRoutedEventArgs_abi; 2998 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1571924485, 40832, 18614, [174, 108, 79, 17, 157, 232, 255, 19]); 2999 } 3000 #[repr(C)] 3001 #[doc(hidden)] 3002 pub struct IManipulationStartedRoutedEventArgs_abi( 3003 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3004 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3005 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3006 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3007 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3008 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3009 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3010 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Point) -> ::windows::runtime::HRESULT, 3011 #[cfg(not(feature = "Foundation"))] usize, 3012 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3013 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 3014 #[cfg(feature = "Devices_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Devices::Input::PointerDeviceType) -> ::windows::runtime::HRESULT, 3015 #[cfg(not(feature = "Devices_Input"))] usize, 3016 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Input::ManipulationDelta) -> ::windows::runtime::HRESULT, 3017 #[cfg(not(all(feature = "Foundation", feature = "UI_Input")))] usize, 3018 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3019 ); 3020 #[repr(transparent)] 3021 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3022 #[doc(hidden)] 3023 pub struct IManipulationStartedRoutedEventArgsFactory(::windows::runtime::IInspectable); 3024 unsafe impl ::windows::runtime::Interface for IManipulationStartedRoutedEventArgsFactory { 3025 type Vtable = IManipulationStartedRoutedEventArgsFactory_abi; 3026 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2227296935, 29298, 17507, [182, 195, 164, 11, 155, 161, 81, 252]); 3027 } 3028 #[repr(C)] 3029 #[doc(hidden)] 3030 pub struct IManipulationStartedRoutedEventArgsFactory_abi( 3031 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3032 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3033 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3034 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3035 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3036 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3037 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, baseinterface: ::windows::runtime::RawPtr, innerinterface: *mut ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3038 ); 3039 #[repr(transparent)] 3040 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3041 #[doc(hidden)] 3042 pub struct IManipulationStartingRoutedEventArgs(::windows::runtime::IInspectable); 3043 unsafe impl ::windows::runtime::Interface for IManipulationStartingRoutedEventArgs { 3044 type Vtable = IManipulationStartingRoutedEventArgs_abi; 3045 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(416691895, 21412, 19477, [164, 152, 243, 169, 202, 33, 42, 66]); 3046 } 3047 #[repr(C)] 3048 #[doc(hidden)] 3049 pub struct IManipulationStartingRoutedEventArgs_abi( 3050 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3051 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3052 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3053 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3054 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3055 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3056 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ManipulationModes) -> ::windows::runtime::HRESULT, 3057 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ManipulationModes) -> ::windows::runtime::HRESULT, 3058 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3059 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3060 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3061 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3062 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3063 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 3064 ); 3065 #[repr(transparent)] 3066 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3067 #[doc(hidden)] 3068 pub struct INoFocusCandidateFoundEventArgs(::windows::runtime::IInspectable); 3069 unsafe impl ::windows::runtime::Interface for INoFocusCandidateFoundEventArgs { 3070 type Vtable = INoFocusCandidateFoundEventArgs_abi; 3071 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3962962343, 4103, 18681, [182, 179, 237, 11, 234, 83, 147, 125]); 3072 } 3073 #[repr(C)] 3074 #[doc(hidden)] 3075 pub struct INoFocusCandidateFoundEventArgs_abi( 3076 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3077 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3078 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3079 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3080 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3081 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3082 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut FocusNavigationDirection) -> ::windows::runtime::HRESULT, 3083 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3084 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 3085 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut FocusInputDeviceKind) -> ::windows::runtime::HRESULT, 3086 ); 3087 #[repr(transparent)] 3088 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3089 #[doc(hidden)] 3090 pub struct IPointer(::windows::runtime::IInspectable); 3091 unsafe impl ::windows::runtime::Interface for IPointer { 3092 type Vtable = IPointer_abi; 3093 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1592325023, 29821, 16753, [144, 230, 205, 55, 169, 223, 251, 17]); 3094 } 3095 #[repr(C)] 3096 #[doc(hidden)] 3097 pub struct IPointer_abi( 3098 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3099 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3100 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3101 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3102 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3103 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3104 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut u32) -> ::windows::runtime::HRESULT, 3105 #[cfg(feature = "Devices_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Devices::Input::PointerDeviceType) -> ::windows::runtime::HRESULT, 3106 #[cfg(not(feature = "Devices_Input"))] usize, 3107 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3108 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3109 ); 3110 #[repr(transparent)] 3111 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3112 #[doc(hidden)] 3113 pub struct IPointerRoutedEventArgs(::windows::runtime::IInspectable); 3114 unsafe impl ::windows::runtime::Interface for IPointerRoutedEventArgs { 3115 type Vtable = IPointerRoutedEventArgs_abi; 3116 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3663892234, 38738, 18914, [189, 226, 73, 236, 202, 185, 25, 77]); 3117 } 3118 #[repr(C)] 3119 #[doc(hidden)] 3120 pub struct IPointerRoutedEventArgs_abi( 3121 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3122 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3123 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3124 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3125 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3126 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3127 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3128 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::System::VirtualKeyModifiers) -> ::windows::runtime::HRESULT, 3129 #[cfg(not(feature = "System"))] usize, 3130 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3131 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 3132 #[cfg(feature = "UI_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, relativeto: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3133 #[cfg(not(feature = "UI_Input"))] usize, 3134 #[cfg(all(feature = "Foundation_Collections", feature = "UI_Input"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, relativeto: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3135 #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Input")))] usize, 3136 ); 3137 #[repr(transparent)] 3138 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3139 #[doc(hidden)] 3140 pub struct IPointerRoutedEventArgs2(::windows::runtime::IInspectable); 3141 unsafe impl ::windows::runtime::Interface for IPointerRoutedEventArgs2 { 3142 type Vtable = IPointerRoutedEventArgs2_abi; 3143 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(136442516, 7654, 18193, [186, 124, 141, 75, 139, 9, 17, 208]); 3144 } 3145 #[repr(C)] 3146 #[doc(hidden)] 3147 pub struct IPointerRoutedEventArgs2_abi( 3148 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3149 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3150 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3151 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3152 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3153 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3154 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3155 ); 3156 #[repr(transparent)] 3157 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3158 #[doc(hidden)] 3159 pub struct IProcessKeyboardAcceleratorEventArgs(::windows::runtime::IInspectable); 3160 unsafe impl ::windows::runtime::Interface for IProcessKeyboardAcceleratorEventArgs { 3161 type Vtable = IProcessKeyboardAcceleratorEventArgs_abi; 3162 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4219060758, 38699, 17420, [155, 131, 43, 65, 152, 220, 240, 157]); 3163 } 3164 #[repr(C)] 3165 #[doc(hidden)] 3166 pub struct IProcessKeyboardAcceleratorEventArgs_abi( 3167 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3168 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3169 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3170 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3171 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3172 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3173 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::System::VirtualKey) -> ::windows::runtime::HRESULT, 3174 #[cfg(not(feature = "System"))] usize, 3175 #[cfg(feature = "System")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::System::VirtualKeyModifiers) -> ::windows::runtime::HRESULT, 3176 #[cfg(not(feature = "System"))] usize, 3177 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3178 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 3179 ); 3180 #[repr(transparent)] 3181 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3182 #[doc(hidden)] 3183 pub struct IRightTappedRoutedEventArgs(::windows::runtime::IInspectable); 3184 unsafe impl ::windows::runtime::Interface for IRightTappedRoutedEventArgs { 3185 type Vtable = IRightTappedRoutedEventArgs_abi; 3186 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1748272797, 31701, 16435, [178, 55, 23, 47, 121, 171, 227, 147]); 3187 } 3188 #[repr(C)] 3189 #[doc(hidden)] 3190 pub struct IRightTappedRoutedEventArgs_abi( 3191 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3192 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3193 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3194 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3195 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3196 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3197 #[cfg(feature = "Devices_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Devices::Input::PointerDeviceType) -> ::windows::runtime::HRESULT, 3198 #[cfg(not(feature = "Devices_Input"))] usize, 3199 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3200 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 3201 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, relativeto: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Point) -> ::windows::runtime::HRESULT, 3202 #[cfg(not(feature = "Foundation"))] usize, 3203 ); 3204 #[repr(transparent)] 3205 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3206 #[doc(hidden)] 3207 pub struct IStandardUICommand(::windows::runtime::IInspectable); 3208 unsafe impl ::windows::runtime::Interface for IStandardUICommand { 3209 type Vtable = IStandardUICommand_abi; 3210 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3535765315, 1284, 21200, [138, 166, 12, 176, 247, 86, 235, 39]); 3211 } 3212 #[repr(C)] 3213 #[doc(hidden)] 3214 pub struct IStandardUICommand_abi( 3215 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3216 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3217 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3218 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3219 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3220 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3221 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut StandardUICommandKind) -> ::windows::runtime::HRESULT, 3222 ); 3223 #[repr(transparent)] 3224 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3225 #[doc(hidden)] 3226 pub struct IStandardUICommand2(::windows::runtime::IInspectable); 3227 unsafe impl ::windows::runtime::Interface for IStandardUICommand2 { 3228 type Vtable = IStandardUICommand2_abi; 3229 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3815137385, 63972, 20971, [136, 91, 122, 98, 10, 7, 130, 234]); 3230 } 3231 #[repr(C)] 3232 #[doc(hidden)] 3233 pub struct IStandardUICommand2_abi( 3234 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3235 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3236 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3237 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3238 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3239 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3240 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: StandardUICommandKind) -> ::windows::runtime::HRESULT, 3241 ); 3242 #[repr(transparent)] 3243 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3244 #[doc(hidden)] 3245 pub struct IStandardUICommandFactory(::windows::runtime::IInspectable); 3246 unsafe impl ::windows::runtime::Interface for IStandardUICommandFactory { 3247 type Vtable = IStandardUICommandFactory_abi; 3248 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2400875920, 56545, 22244, [171, 99, 245, 206, 60, 228, 235, 246]); 3249 } 3250 #[repr(C)] 3251 #[doc(hidden)] 3252 pub struct IStandardUICommandFactory_abi( 3253 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3254 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3255 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3256 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3257 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3258 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3259 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, baseinterface: ::windows::runtime::RawPtr, innerinterface: *mut ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3260 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, kind: StandardUICommandKind, baseinterface: ::windows::runtime::RawPtr, innerinterface: *mut ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3261 ); 3262 #[repr(transparent)] 3263 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3264 #[doc(hidden)] 3265 pub struct IStandardUICommandStatics(::windows::runtime::IInspectable); 3266 unsafe impl ::windows::runtime::Interface for IStandardUICommandStatics { 3267 type Vtable = IStandardUICommandStatics_abi; 3268 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2124971737, 10616, 21811, [155, 46, 103, 89, 206, 136, 86, 159]); 3269 } 3270 #[repr(C)] 3271 #[doc(hidden)] 3272 pub struct IStandardUICommandStatics_abi( 3273 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3274 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3275 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3276 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3277 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3278 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3279 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3280 ); 3281 #[repr(transparent)] 3282 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3283 #[doc(hidden)] 3284 pub struct ITappedRoutedEventArgs(::windows::runtime::IInspectable); 3285 unsafe impl ::windows::runtime::Interface for ITappedRoutedEventArgs { 3286 type Vtable = ITappedRoutedEventArgs_abi; 3287 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2694440638, 58916, 17818, [187, 29, 224, 92, 115, 226, 204, 102]); 3288 } 3289 #[repr(C)] 3290 #[doc(hidden)] 3291 pub struct ITappedRoutedEventArgs_abi( 3292 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3293 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3294 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3295 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3296 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3297 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3298 #[cfg(feature = "Devices_Input")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::super::Devices::Input::PointerDeviceType) -> ::windows::runtime::HRESULT, 3299 #[cfg(not(feature = "Devices_Input"))] usize, 3300 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 3301 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 3302 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, relativeto: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::Point) -> ::windows::runtime::HRESULT, 3303 #[cfg(not(feature = "Foundation"))] usize, 3304 ); 3305 #[repr(transparent)] 3306 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3307 #[doc(hidden)] 3308 pub struct IXamlUICommand(::windows::runtime::IInspectable); 3309 unsafe impl ::windows::runtime::Interface for IXamlUICommand { 3310 type Vtable = IXamlUICommand_abi; 3311 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2224355540, 60113, 24321, [173, 46, 168, 202, 212, 249, 220, 14]); 3312 } 3313 #[repr(C)] 3314 #[doc(hidden)] 3315 pub struct IXamlUICommand_abi( 3316 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3317 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3318 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3319 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3320 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3321 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3322 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3323 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3324 #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3325 #[cfg(not(feature = "UI_Xaml_Controls"))] usize, 3326 #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3327 #[cfg(not(feature = "UI_Xaml_Controls"))] usize, 3328 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3329 #[cfg(not(feature = "Foundation_Collections"))] usize, 3330 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3331 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3332 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3333 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3334 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3335 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3336 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 3337 #[cfg(not(feature = "Foundation"))] usize, 3338 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 3339 #[cfg(not(feature = "Foundation"))] usize, 3340 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 3341 #[cfg(not(feature = "Foundation"))] usize, 3342 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 3343 #[cfg(not(feature = "Foundation"))] usize, 3344 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3345 ); 3346 #[repr(transparent)] 3347 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3348 #[doc(hidden)] 3349 pub struct IXamlUICommandFactory(::windows::runtime::IInspectable); 3350 unsafe impl ::windows::runtime::Interface for IXamlUICommandFactory { 3351 type Vtable = IXamlUICommandFactory_abi; 3352 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(518785219, 57441, 24080, [159, 42, 43, 170, 132, 8, 133, 194]); 3353 } 3354 #[repr(C)] 3355 #[doc(hidden)] 3356 pub struct IXamlUICommandFactory_abi( 3357 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3358 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3359 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3360 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3361 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3362 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3363 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, baseinterface: ::windows::runtime::RawPtr, innerinterface: *mut ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3364 ); 3365 #[repr(transparent)] 3366 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3367 #[doc(hidden)] 3368 pub struct IXamlUICommandStatics(::windows::runtime::IInspectable); 3369 unsafe impl ::windows::runtime::Interface for IXamlUICommandStatics { 3370 type Vtable = IXamlUICommandStatics_abi; 3371 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1723614588, 6668, 22765, [135, 110, 113, 83, 63, 150, 109, 182]); 3372 } 3373 #[repr(C)] 3374 #[doc(hidden)] 3375 pub struct IXamlUICommandStatics_abi( 3376 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3377 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3378 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3379 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3380 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3381 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3382 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3383 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3384 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3385 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3386 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3387 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3388 ); 3389 #[repr(transparent)] 3390 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3391 pub struct InertiaExpansionBehavior(::windows::runtime::IInspectable); 3392 impl InertiaExpansionBehavior { DesiredDeceleration(&self) -> ::windows::runtime::Result<f64>3393 pub fn DesiredDeceleration(&self) -> ::windows::runtime::Result<f64> { 3394 let this = self; 3395 unsafe { 3396 let mut result__: f64 = ::std::mem::zeroed(); 3397 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 3398 } 3399 } SetDesiredDeceleration(&self, value: f64) -> ::windows::runtime::Result<()>3400 pub fn SetDesiredDeceleration(&self, value: f64) -> ::windows::runtime::Result<()> { 3401 let this = self; 3402 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 3403 } DesiredExpansion(&self) -> ::windows::runtime::Result<f64>3404 pub fn DesiredExpansion(&self) -> ::windows::runtime::Result<f64> { 3405 let this = self; 3406 unsafe { 3407 let mut result__: f64 = ::std::mem::zeroed(); 3408 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 3409 } 3410 } SetDesiredExpansion(&self, value: f64) -> ::windows::runtime::Result<()>3411 pub fn SetDesiredExpansion(&self, value: f64) -> ::windows::runtime::Result<()> { 3412 let this = self; 3413 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 3414 } 3415 } 3416 unsafe impl ::windows::runtime::RuntimeType for InertiaExpansionBehavior { 3417 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.InertiaExpansionBehavior;{751d87e5-8d42-44c5-965e-3cd30cc9d6f7})"); 3418 } 3419 unsafe impl ::windows::runtime::Interface for InertiaExpansionBehavior { 3420 type Vtable = IInertiaExpansionBehavior_abi; 3421 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1964869605, 36162, 17605, [150, 94, 60, 211, 12, 201, 214, 247]); 3422 } 3423 impl ::windows::runtime::RuntimeName for InertiaExpansionBehavior { 3424 const NAME: &'static str = "Windows.UI.Xaml.Input.InertiaExpansionBehavior"; 3425 } 3426 impl ::std::convert::From<InertiaExpansionBehavior> for ::windows::runtime::IUnknown { from(value: InertiaExpansionBehavior) -> Self3427 fn from(value: InertiaExpansionBehavior) -> Self { 3428 unsafe { ::std::mem::transmute(value) } 3429 } 3430 } 3431 impl ::std::convert::From<&InertiaExpansionBehavior> for ::windows::runtime::IUnknown { from(value: &InertiaExpansionBehavior) -> Self3432 fn from(value: &InertiaExpansionBehavior) -> Self { 3433 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3434 } 3435 } 3436 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for InertiaExpansionBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3437 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3438 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3439 } 3440 } 3441 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &InertiaExpansionBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3442 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3443 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3444 } 3445 } 3446 impl ::std::convert::From<InertiaExpansionBehavior> for ::windows::runtime::IInspectable { from(value: InertiaExpansionBehavior) -> Self3447 fn from(value: InertiaExpansionBehavior) -> Self { 3448 value.0 3449 } 3450 } 3451 impl ::std::convert::From<&InertiaExpansionBehavior> for ::windows::runtime::IInspectable { from(value: &InertiaExpansionBehavior) -> Self3452 fn from(value: &InertiaExpansionBehavior) -> Self { 3453 value.0.clone() 3454 } 3455 } 3456 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for InertiaExpansionBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3457 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3458 ::windows::runtime::Param::Owned(self.0) 3459 } 3460 } 3461 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a InertiaExpansionBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3462 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3463 ::windows::runtime::Param::Borrowed(&self.0) 3464 } 3465 } 3466 unsafe impl ::std::marker::Send for InertiaExpansionBehavior {} 3467 unsafe impl ::std::marker::Sync for InertiaExpansionBehavior {} 3468 #[repr(transparent)] 3469 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3470 pub struct InertiaRotationBehavior(::windows::runtime::IInspectable); 3471 impl InertiaRotationBehavior { DesiredDeceleration(&self) -> ::windows::runtime::Result<f64>3472 pub fn DesiredDeceleration(&self) -> ::windows::runtime::Result<f64> { 3473 let this = self; 3474 unsafe { 3475 let mut result__: f64 = ::std::mem::zeroed(); 3476 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 3477 } 3478 } SetDesiredDeceleration(&self, value: f64) -> ::windows::runtime::Result<()>3479 pub fn SetDesiredDeceleration(&self, value: f64) -> ::windows::runtime::Result<()> { 3480 let this = self; 3481 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 3482 } DesiredRotation(&self) -> ::windows::runtime::Result<f64>3483 pub fn DesiredRotation(&self) -> ::windows::runtime::Result<f64> { 3484 let this = self; 3485 unsafe { 3486 let mut result__: f64 = ::std::mem::zeroed(); 3487 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 3488 } 3489 } SetDesiredRotation(&self, value: f64) -> ::windows::runtime::Result<()>3490 pub fn SetDesiredRotation(&self, value: f64) -> ::windows::runtime::Result<()> { 3491 let this = self; 3492 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 3493 } 3494 } 3495 unsafe impl ::windows::runtime::RuntimeType for InertiaRotationBehavior { 3496 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.InertiaRotationBehavior;{424cfb2e-bbfd-4625-ae78-20c65bf1efaf})"); 3497 } 3498 unsafe impl ::windows::runtime::Interface for InertiaRotationBehavior { 3499 type Vtable = IInertiaRotationBehavior_abi; 3500 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1112341294, 48125, 17957, [174, 120, 32, 198, 91, 241, 239, 175]); 3501 } 3502 impl ::windows::runtime::RuntimeName for InertiaRotationBehavior { 3503 const NAME: &'static str = "Windows.UI.Xaml.Input.InertiaRotationBehavior"; 3504 } 3505 impl ::std::convert::From<InertiaRotationBehavior> for ::windows::runtime::IUnknown { from(value: InertiaRotationBehavior) -> Self3506 fn from(value: InertiaRotationBehavior) -> Self { 3507 unsafe { ::std::mem::transmute(value) } 3508 } 3509 } 3510 impl ::std::convert::From<&InertiaRotationBehavior> for ::windows::runtime::IUnknown { from(value: &InertiaRotationBehavior) -> Self3511 fn from(value: &InertiaRotationBehavior) -> Self { 3512 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3513 } 3514 } 3515 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for InertiaRotationBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3516 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3517 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3518 } 3519 } 3520 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &InertiaRotationBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3521 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3522 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3523 } 3524 } 3525 impl ::std::convert::From<InertiaRotationBehavior> for ::windows::runtime::IInspectable { from(value: InertiaRotationBehavior) -> Self3526 fn from(value: InertiaRotationBehavior) -> Self { 3527 value.0 3528 } 3529 } 3530 impl ::std::convert::From<&InertiaRotationBehavior> for ::windows::runtime::IInspectable { from(value: &InertiaRotationBehavior) -> Self3531 fn from(value: &InertiaRotationBehavior) -> Self { 3532 value.0.clone() 3533 } 3534 } 3535 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for InertiaRotationBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3536 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3537 ::windows::runtime::Param::Owned(self.0) 3538 } 3539 } 3540 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a InertiaRotationBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3541 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3542 ::windows::runtime::Param::Borrowed(&self.0) 3543 } 3544 } 3545 unsafe impl ::std::marker::Send for InertiaRotationBehavior {} 3546 unsafe impl ::std::marker::Sync for InertiaRotationBehavior {} 3547 #[repr(transparent)] 3548 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3549 pub struct InertiaTranslationBehavior(::windows::runtime::IInspectable); 3550 impl InertiaTranslationBehavior { DesiredDeceleration(&self) -> ::windows::runtime::Result<f64>3551 pub fn DesiredDeceleration(&self) -> ::windows::runtime::Result<f64> { 3552 let this = self; 3553 unsafe { 3554 let mut result__: f64 = ::std::mem::zeroed(); 3555 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 3556 } 3557 } SetDesiredDeceleration(&self, value: f64) -> ::windows::runtime::Result<()>3558 pub fn SetDesiredDeceleration(&self, value: f64) -> ::windows::runtime::Result<()> { 3559 let this = self; 3560 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 3561 } DesiredDisplacement(&self) -> ::windows::runtime::Result<f64>3562 pub fn DesiredDisplacement(&self) -> ::windows::runtime::Result<f64> { 3563 let this = self; 3564 unsafe { 3565 let mut result__: f64 = ::std::mem::zeroed(); 3566 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 3567 } 3568 } SetDesiredDisplacement(&self, value: f64) -> ::windows::runtime::Result<()>3569 pub fn SetDesiredDisplacement(&self, value: f64) -> ::windows::runtime::Result<()> { 3570 let this = self; 3571 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 3572 } 3573 } 3574 unsafe impl ::windows::runtime::RuntimeType for InertiaTranslationBehavior { 3575 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.InertiaTranslationBehavior;{45d3a512-3b32-4882-a4c2-ecfa2d4b6df0})"); 3576 } 3577 unsafe impl ::windows::runtime::Interface for InertiaTranslationBehavior { 3578 type Vtable = IInertiaTranslationBehavior_abi; 3579 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1171498258, 15154, 18562, [164, 194, 236, 250, 45, 75, 109, 240]); 3580 } 3581 impl ::windows::runtime::RuntimeName for InertiaTranslationBehavior { 3582 const NAME: &'static str = "Windows.UI.Xaml.Input.InertiaTranslationBehavior"; 3583 } 3584 impl ::std::convert::From<InertiaTranslationBehavior> for ::windows::runtime::IUnknown { from(value: InertiaTranslationBehavior) -> Self3585 fn from(value: InertiaTranslationBehavior) -> Self { 3586 unsafe { ::std::mem::transmute(value) } 3587 } 3588 } 3589 impl ::std::convert::From<&InertiaTranslationBehavior> for ::windows::runtime::IUnknown { from(value: &InertiaTranslationBehavior) -> Self3590 fn from(value: &InertiaTranslationBehavior) -> Self { 3591 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3592 } 3593 } 3594 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for InertiaTranslationBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3595 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3596 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3597 } 3598 } 3599 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &InertiaTranslationBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3600 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3601 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3602 } 3603 } 3604 impl ::std::convert::From<InertiaTranslationBehavior> for ::windows::runtime::IInspectable { from(value: InertiaTranslationBehavior) -> Self3605 fn from(value: InertiaTranslationBehavior) -> Self { 3606 value.0 3607 } 3608 } 3609 impl ::std::convert::From<&InertiaTranslationBehavior> for ::windows::runtime::IInspectable { from(value: &InertiaTranslationBehavior) -> Self3610 fn from(value: &InertiaTranslationBehavior) -> Self { 3611 value.0.clone() 3612 } 3613 } 3614 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for InertiaTranslationBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3615 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3616 ::windows::runtime::Param::Owned(self.0) 3617 } 3618 } 3619 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a InertiaTranslationBehavior { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3620 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3621 ::windows::runtime::Param::Borrowed(&self.0) 3622 } 3623 } 3624 unsafe impl ::std::marker::Send for InertiaTranslationBehavior {} 3625 unsafe impl ::std::marker::Sync for InertiaTranslationBehavior {} 3626 #[repr(transparent)] 3627 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3628 pub struct InputScope(::windows::runtime::IInspectable); 3629 impl InputScope { new() -> ::windows::runtime::Result<Self>3630 pub fn new() -> ::windows::runtime::Result<Self> { 3631 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 3632 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3633 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3634 static mut SHARED: ::windows::runtime::FactoryCache<InputScope, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 3635 unsafe { SHARED.call(callback) } 3636 } 3637 #[cfg(feature = "Foundation_Collections")] Names(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVector<InputScopeName>>3638 pub fn Names(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVector<InputScopeName>> { 3639 let this = self; 3640 unsafe { 3641 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3642 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVector<InputScopeName>>(result__) 3643 } 3644 } GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>3645 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 3646 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3647 unsafe { 3648 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3649 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 3650 } 3651 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>3652 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 3653 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3654 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 3655 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>3656 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 3657 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3658 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 3659 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>3660 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 3661 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3662 unsafe { 3663 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3664 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 3665 } 3666 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>3667 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 3668 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3669 unsafe { 3670 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3671 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 3672 } 3673 } 3674 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>3675 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 3676 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3677 unsafe { 3678 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3679 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 3680 } 3681 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>3682 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 3683 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 3684 unsafe { 3685 let mut result__: i64 = ::std::mem::zeroed(); 3686 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 3687 } 3688 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>3689 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 3690 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 3691 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 3692 } 3693 } 3694 unsafe impl ::windows::runtime::RuntimeType for InputScope { 3695 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.InputScope;{5c0f85f3-f9d8-4220-b666-045d074d9bfa})"); 3696 } 3697 unsafe impl ::windows::runtime::Interface for InputScope { 3698 type Vtable = IInputScope_abi; 3699 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1544521203, 63960, 16928, [182, 102, 4, 93, 7, 77, 155, 250]); 3700 } 3701 impl ::windows::runtime::RuntimeName for InputScope { 3702 const NAME: &'static str = "Windows.UI.Xaml.Input.InputScope"; 3703 } 3704 impl ::std::convert::From<InputScope> for ::windows::runtime::IUnknown { from(value: InputScope) -> Self3705 fn from(value: InputScope) -> Self { 3706 unsafe { ::std::mem::transmute(value) } 3707 } 3708 } 3709 impl ::std::convert::From<&InputScope> for ::windows::runtime::IUnknown { from(value: &InputScope) -> Self3710 fn from(value: &InputScope) -> Self { 3711 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3712 } 3713 } 3714 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for InputScope { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3715 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3716 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3717 } 3718 } 3719 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &InputScope { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3720 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3721 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3722 } 3723 } 3724 impl ::std::convert::From<InputScope> for ::windows::runtime::IInspectable { from(value: InputScope) -> Self3725 fn from(value: InputScope) -> Self { 3726 value.0 3727 } 3728 } 3729 impl ::std::convert::From<&InputScope> for ::windows::runtime::IInspectable { from(value: &InputScope) -> Self3730 fn from(value: &InputScope) -> Self { 3731 value.0.clone() 3732 } 3733 } 3734 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for InputScope { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3735 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3736 ::windows::runtime::Param::Owned(self.0) 3737 } 3738 } 3739 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a InputScope { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3740 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3741 ::windows::runtime::Param::Borrowed(&self.0) 3742 } 3743 } 3744 impl ::std::convert::From<InputScope> for super::DependencyObject { from(value: InputScope) -> Self3745 fn from(value: InputScope) -> Self { 3746 ::std::convert::Into::<super::DependencyObject>::into(&value) 3747 } 3748 } 3749 impl ::std::convert::From<&InputScope> for super::DependencyObject { from(value: &InputScope) -> Self3750 fn from(value: &InputScope) -> Self { 3751 ::windows::runtime::Interface::cast(value).unwrap() 3752 } 3753 } 3754 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for InputScope { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>3755 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 3756 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(self)) 3757 } 3758 } 3759 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for &InputScope { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>3760 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 3761 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(::std::clone::Clone::clone(self))) 3762 } 3763 } 3764 unsafe impl ::std::marker::Send for InputScope {} 3765 unsafe impl ::std::marker::Sync for InputScope {} 3766 #[repr(transparent)] 3767 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3768 pub struct InputScopeName(::windows::runtime::IInspectable); 3769 impl InputScopeName { new() -> ::windows::runtime::Result<Self>3770 pub fn new() -> ::windows::runtime::Result<Self> { 3771 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 3772 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3773 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3774 static mut SHARED: ::windows::runtime::FactoryCache<InputScopeName, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 3775 unsafe { SHARED.call(callback) } 3776 } NameValue(&self) -> ::windows::runtime::Result<InputScopeNameValue>3777 pub fn NameValue(&self) -> ::windows::runtime::Result<InputScopeNameValue> { 3778 let this = self; 3779 unsafe { 3780 let mut result__: InputScopeNameValue = ::std::mem::zeroed(); 3781 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<InputScopeNameValue>(result__) 3782 } 3783 } SetNameValue(&self, value: InputScopeNameValue) -> ::windows::runtime::Result<()>3784 pub fn SetNameValue(&self, value: InputScopeNameValue) -> ::windows::runtime::Result<()> { 3785 let this = self; 3786 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 3787 } CreateInstance(namevalue: InputScopeNameValue) -> ::windows::runtime::Result<InputScopeName>3788 pub fn CreateInstance(namevalue: InputScopeNameValue) -> ::windows::runtime::Result<InputScopeName> { 3789 Self::IInputScopeNameFactory(|this| unsafe { 3790 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3791 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), namevalue, &mut result__).from_abi::<InputScopeName>(result__) 3792 }) 3793 } GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>3794 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 3795 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3796 unsafe { 3797 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3798 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 3799 } 3800 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>3801 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 3802 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3803 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 3804 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>3805 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 3806 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3807 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 3808 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>3809 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 3810 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3811 unsafe { 3812 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3813 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 3814 } 3815 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>3816 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 3817 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3818 unsafe { 3819 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3820 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 3821 } 3822 } 3823 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>3824 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 3825 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 3826 unsafe { 3827 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3828 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 3829 } 3830 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>3831 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 3832 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 3833 unsafe { 3834 let mut result__: i64 = ::std::mem::zeroed(); 3835 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 3836 } 3837 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>3838 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 3839 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 3840 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 3841 } IInputScopeNameFactory<R, F: FnOnce(&IInputScopeNameFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3842 pub fn IInputScopeNameFactory<R, F: FnOnce(&IInputScopeNameFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3843 static mut SHARED: ::windows::runtime::FactoryCache<InputScopeName, IInputScopeNameFactory> = ::windows::runtime::FactoryCache::new(); 3844 unsafe { SHARED.call(callback) } 3845 } 3846 } 3847 unsafe impl ::windows::runtime::RuntimeType for InputScopeName { 3848 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.InputScopeName;{fd3e6997-08fb-4cba-a021-792d7589fd5a})"); 3849 } 3850 unsafe impl ::windows::runtime::Interface for InputScopeName { 3851 type Vtable = IInputScopeName_abi; 3852 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4248725911, 2299, 19642, [160, 33, 121, 45, 117, 137, 253, 90]); 3853 } 3854 impl ::windows::runtime::RuntimeName for InputScopeName { 3855 const NAME: &'static str = "Windows.UI.Xaml.Input.InputScopeName"; 3856 } 3857 impl ::std::convert::From<InputScopeName> for ::windows::runtime::IUnknown { from(value: InputScopeName) -> Self3858 fn from(value: InputScopeName) -> Self { 3859 unsafe { ::std::mem::transmute(value) } 3860 } 3861 } 3862 impl ::std::convert::From<&InputScopeName> for ::windows::runtime::IUnknown { from(value: &InputScopeName) -> Self3863 fn from(value: &InputScopeName) -> Self { 3864 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3865 } 3866 } 3867 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for InputScopeName { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3868 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3869 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3870 } 3871 } 3872 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &InputScopeName { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3873 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3874 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3875 } 3876 } 3877 impl ::std::convert::From<InputScopeName> for ::windows::runtime::IInspectable { from(value: InputScopeName) -> Self3878 fn from(value: InputScopeName) -> Self { 3879 value.0 3880 } 3881 } 3882 impl ::std::convert::From<&InputScopeName> for ::windows::runtime::IInspectable { from(value: &InputScopeName) -> Self3883 fn from(value: &InputScopeName) -> Self { 3884 value.0.clone() 3885 } 3886 } 3887 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for InputScopeName { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3888 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3889 ::windows::runtime::Param::Owned(self.0) 3890 } 3891 } 3892 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a InputScopeName { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3893 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3894 ::windows::runtime::Param::Borrowed(&self.0) 3895 } 3896 } 3897 impl ::std::convert::From<InputScopeName> for super::DependencyObject { from(value: InputScopeName) -> Self3898 fn from(value: InputScopeName) -> Self { 3899 ::std::convert::Into::<super::DependencyObject>::into(&value) 3900 } 3901 } 3902 impl ::std::convert::From<&InputScopeName> for super::DependencyObject { from(value: &InputScopeName) -> Self3903 fn from(value: &InputScopeName) -> Self { 3904 ::windows::runtime::Interface::cast(value).unwrap() 3905 } 3906 } 3907 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for InputScopeName { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>3908 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 3909 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(self)) 3910 } 3911 } 3912 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for &InputScopeName { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>3913 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 3914 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(::std::clone::Clone::clone(self))) 3915 } 3916 } 3917 unsafe impl ::std::marker::Send for InputScopeName {} 3918 unsafe impl ::std::marker::Sync for InputScopeName {} 3919 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 3920 #[repr(transparent)] 3921 pub struct InputScopeNameValue(pub i32); 3922 impl InputScopeNameValue { 3923 pub const Default: InputScopeNameValue = InputScopeNameValue(0i32); 3924 pub const Url: InputScopeNameValue = InputScopeNameValue(1i32); 3925 pub const EmailSmtpAddress: InputScopeNameValue = InputScopeNameValue(5i32); 3926 pub const PersonalFullName: InputScopeNameValue = InputScopeNameValue(7i32); 3927 pub const CurrencyAmountAndSymbol: InputScopeNameValue = InputScopeNameValue(20i32); 3928 pub const CurrencyAmount: InputScopeNameValue = InputScopeNameValue(21i32); 3929 pub const DateMonthNumber: InputScopeNameValue = InputScopeNameValue(23i32); 3930 pub const DateDayNumber: InputScopeNameValue = InputScopeNameValue(24i32); 3931 pub const DateYear: InputScopeNameValue = InputScopeNameValue(25i32); 3932 pub const Digits: InputScopeNameValue = InputScopeNameValue(28i32); 3933 pub const Number: InputScopeNameValue = InputScopeNameValue(29i32); 3934 pub const Password: InputScopeNameValue = InputScopeNameValue(31i32); 3935 pub const TelephoneNumber: InputScopeNameValue = InputScopeNameValue(32i32); 3936 pub const TelephoneCountryCode: InputScopeNameValue = InputScopeNameValue(33i32); 3937 pub const TelephoneAreaCode: InputScopeNameValue = InputScopeNameValue(34i32); 3938 pub const TelephoneLocalNumber: InputScopeNameValue = InputScopeNameValue(35i32); 3939 pub const TimeHour: InputScopeNameValue = InputScopeNameValue(37i32); 3940 pub const TimeMinutesOrSeconds: InputScopeNameValue = InputScopeNameValue(38i32); 3941 pub const NumberFullWidth: InputScopeNameValue = InputScopeNameValue(39i32); 3942 pub const AlphanumericHalfWidth: InputScopeNameValue = InputScopeNameValue(40i32); 3943 pub const AlphanumericFullWidth: InputScopeNameValue = InputScopeNameValue(41i32); 3944 pub const Hiragana: InputScopeNameValue = InputScopeNameValue(44i32); 3945 pub const KatakanaHalfWidth: InputScopeNameValue = InputScopeNameValue(45i32); 3946 pub const KatakanaFullWidth: InputScopeNameValue = InputScopeNameValue(46i32); 3947 pub const Hanja: InputScopeNameValue = InputScopeNameValue(47i32); 3948 pub const HangulHalfWidth: InputScopeNameValue = InputScopeNameValue(48i32); 3949 pub const HangulFullWidth: InputScopeNameValue = InputScopeNameValue(49i32); 3950 pub const Search: InputScopeNameValue = InputScopeNameValue(50i32); 3951 pub const Formula: InputScopeNameValue = InputScopeNameValue(51i32); 3952 pub const SearchIncremental: InputScopeNameValue = InputScopeNameValue(52i32); 3953 pub const ChineseHalfWidth: InputScopeNameValue = InputScopeNameValue(53i32); 3954 pub const ChineseFullWidth: InputScopeNameValue = InputScopeNameValue(54i32); 3955 pub const NativeScript: InputScopeNameValue = InputScopeNameValue(55i32); 3956 pub const Text: InputScopeNameValue = InputScopeNameValue(57i32); 3957 pub const Chat: InputScopeNameValue = InputScopeNameValue(58i32); 3958 pub const NameOrPhoneNumber: InputScopeNameValue = InputScopeNameValue(59i32); 3959 pub const EmailNameOrAddress: InputScopeNameValue = InputScopeNameValue(60i32); 3960 pub const Private: InputScopeNameValue = InputScopeNameValue(61i32); 3961 pub const Maps: InputScopeNameValue = InputScopeNameValue(62i32); 3962 pub const NumericPassword: InputScopeNameValue = InputScopeNameValue(63i32); 3963 pub const NumericPin: InputScopeNameValue = InputScopeNameValue(64i32); 3964 pub const AlphanumericPin: InputScopeNameValue = InputScopeNameValue(65i32); 3965 pub const FormulaNumber: InputScopeNameValue = InputScopeNameValue(67i32); 3966 pub const ChatWithoutEmoji: InputScopeNameValue = InputScopeNameValue(68i32); 3967 } 3968 impl ::std::convert::From<i32> for InputScopeNameValue { from(value: i32) -> Self3969 fn from(value: i32) -> Self { 3970 Self(value) 3971 } 3972 } 3973 unsafe impl ::windows::runtime::Abi for InputScopeNameValue { 3974 type Abi = Self; 3975 type DefaultType = Self; 3976 } 3977 unsafe impl ::windows::runtime::RuntimeType for InputScopeNameValue { 3978 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Input.InputScopeNameValue;i4)"); 3979 } 3980 #[repr(transparent)] 3981 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3982 pub struct KeyEventHandler(::windows::runtime::IUnknown); 3983 impl KeyEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<KeyRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self3984 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<KeyRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 3985 let com = KeyEventHandler_box::<F> { 3986 vtable: &KeyEventHandler_box::<F>::VTABLE, 3987 count: ::windows::runtime::RefCount::new(1), 3988 invoke, 3989 }; 3990 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 3991 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, KeyRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>3992 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, KeyRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 3993 let this = self; 3994 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 3995 } 3996 } 3997 unsafe impl ::windows::runtime::RuntimeType for KeyEventHandler { 3998 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({7c63d2e5-7a0e-4e12-b96a-7715aa6ff1c8})"); 3999 } 4000 unsafe impl ::windows::runtime::Interface for KeyEventHandler { 4001 type Vtable = KeyEventHandler_abi; 4002 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2086916837, 31246, 19986, [185, 106, 119, 21, 170, 111, 241, 200]); 4003 } 4004 #[repr(C)] 4005 #[doc(hidden)] 4006 pub struct KeyEventHandler_abi( 4007 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4008 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4009 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4010 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4011 ); 4012 #[repr(C)] 4013 struct KeyEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<KeyRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 4014 vtable: *const KeyEventHandler_abi, 4015 invoke: F, 4016 count: ::windows::runtime::RefCount, 4017 } 4018 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<KeyRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> KeyEventHandler_box<F> { 4019 const VTABLE: KeyEventHandler_abi = KeyEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT4020 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 4021 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4022 *interface = if iid == &<KeyEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 4023 &mut (*this).vtable as *mut _ as _ 4024 } else { 4025 ::std::ptr::null_mut() 4026 }; 4027 if (*interface).is_null() { 4028 ::windows::runtime::HRESULT(0x8000_4002) 4029 } else { 4030 (*this).count.add_ref(); 4031 ::windows::runtime::HRESULT(0) 4032 } 4033 } AddRef(this: ::windows::runtime::RawPtr) -> u324034 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 4035 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4036 (*this).count.add_ref() 4037 } Release(this: ::windows::runtime::RawPtr) -> u324038 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 4039 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4040 let remaining = (*this).count.release(); 4041 if remaining == 0 { 4042 Box::from_raw(this); 4043 } 4044 remaining 4045 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT4046 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 4047 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4048 ((*this).invoke)( 4049 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 4050 &*(&e as *const <KeyRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <KeyRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 4051 ) 4052 .into() 4053 } 4054 } 4055 #[repr(transparent)] 4056 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4057 pub struct KeyRoutedEventArgs(::windows::runtime::IInspectable); 4058 impl KeyRoutedEventArgs { 4059 #[cfg(feature = "System")] Key(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKey>4060 pub fn Key(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKey> { 4061 let this = self; 4062 unsafe { 4063 let mut result__: super::super::super::System::VirtualKey = ::std::mem::zeroed(); 4064 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::System::VirtualKey>(result__) 4065 } 4066 } 4067 #[cfg(feature = "UI_Core")] KeyStatus(&self) -> ::windows::runtime::Result<super::super::Core::CorePhysicalKeyStatus>4068 pub fn KeyStatus(&self) -> ::windows::runtime::Result<super::super::Core::CorePhysicalKeyStatus> { 4069 let this = self; 4070 unsafe { 4071 let mut result__: super::super::Core::CorePhysicalKeyStatus = ::std::mem::zeroed(); 4072 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CorePhysicalKeyStatus>(result__) 4073 } 4074 } Handled(&self) -> ::windows::runtime::Result<bool>4075 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 4076 let this = self; 4077 unsafe { 4078 let mut result__: bool = ::std::mem::zeroed(); 4079 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4080 } 4081 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>4082 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 4083 let this = self; 4084 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 4085 } 4086 #[cfg(feature = "System")] OriginalKey(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKey>4087 pub fn OriginalKey(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKey> { 4088 let this = &::windows::runtime::Interface::cast::<IKeyRoutedEventArgs2>(self)?; 4089 unsafe { 4090 let mut result__: super::super::super::System::VirtualKey = ::std::mem::zeroed(); 4091 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::System::VirtualKey>(result__) 4092 } 4093 } DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>4094 pub fn DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 4095 let this = &::windows::runtime::Interface::cast::<IKeyRoutedEventArgs3>(self)?; 4096 unsafe { 4097 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 4098 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 4099 } 4100 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>4101 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 4102 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 4103 unsafe { 4104 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4105 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 4106 } 4107 } 4108 } 4109 unsafe impl ::windows::runtime::RuntimeType for KeyRoutedEventArgs { 4110 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.KeyRoutedEventArgs;{d4cd3dfe-4079-42e9-a39a-3095d3f049c6})"); 4111 } 4112 unsafe impl ::windows::runtime::Interface for KeyRoutedEventArgs { 4113 type Vtable = IKeyRoutedEventArgs_abi; 4114 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3570220542, 16505, 17129, [163, 154, 48, 149, 211, 240, 73, 198]); 4115 } 4116 impl ::windows::runtime::RuntimeName for KeyRoutedEventArgs { 4117 const NAME: &'static str = "Windows.UI.Xaml.Input.KeyRoutedEventArgs"; 4118 } 4119 impl ::std::convert::From<KeyRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: KeyRoutedEventArgs) -> Self4120 fn from(value: KeyRoutedEventArgs) -> Self { 4121 unsafe { ::std::mem::transmute(value) } 4122 } 4123 } 4124 impl ::std::convert::From<&KeyRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &KeyRoutedEventArgs) -> Self4125 fn from(value: &KeyRoutedEventArgs) -> Self { 4126 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4127 } 4128 } 4129 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for KeyRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4130 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4131 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4132 } 4133 } 4134 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &KeyRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4135 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4136 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4137 } 4138 } 4139 impl ::std::convert::From<KeyRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: KeyRoutedEventArgs) -> Self4140 fn from(value: KeyRoutedEventArgs) -> Self { 4141 value.0 4142 } 4143 } 4144 impl ::std::convert::From<&KeyRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &KeyRoutedEventArgs) -> Self4145 fn from(value: &KeyRoutedEventArgs) -> Self { 4146 value.0.clone() 4147 } 4148 } 4149 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for KeyRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4150 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4151 ::windows::runtime::Param::Owned(self.0) 4152 } 4153 } 4154 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a KeyRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4155 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4156 ::windows::runtime::Param::Borrowed(&self.0) 4157 } 4158 } 4159 impl ::std::convert::From<KeyRoutedEventArgs> for super::RoutedEventArgs { from(value: KeyRoutedEventArgs) -> Self4160 fn from(value: KeyRoutedEventArgs) -> Self { 4161 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 4162 } 4163 } 4164 impl ::std::convert::From<&KeyRoutedEventArgs> for super::RoutedEventArgs { from(value: &KeyRoutedEventArgs) -> Self4165 fn from(value: &KeyRoutedEventArgs) -> Self { 4166 ::windows::runtime::Interface::cast(value).unwrap() 4167 } 4168 } 4169 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for KeyRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>4170 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 4171 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 4172 } 4173 } 4174 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &KeyRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>4175 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 4176 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 4177 } 4178 } 4179 unsafe impl ::std::marker::Send for KeyRoutedEventArgs {} 4180 unsafe impl ::std::marker::Sync for KeyRoutedEventArgs {} 4181 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 4182 #[repr(transparent)] 4183 pub struct KeyTipPlacementMode(pub i32); 4184 impl KeyTipPlacementMode { 4185 pub const Auto: KeyTipPlacementMode = KeyTipPlacementMode(0i32); 4186 pub const Bottom: KeyTipPlacementMode = KeyTipPlacementMode(1i32); 4187 pub const Top: KeyTipPlacementMode = KeyTipPlacementMode(2i32); 4188 pub const Left: KeyTipPlacementMode = KeyTipPlacementMode(3i32); 4189 pub const Right: KeyTipPlacementMode = KeyTipPlacementMode(4i32); 4190 pub const Center: KeyTipPlacementMode = KeyTipPlacementMode(5i32); 4191 pub const Hidden: KeyTipPlacementMode = KeyTipPlacementMode(6i32); 4192 } 4193 impl ::std::convert::From<i32> for KeyTipPlacementMode { from(value: i32) -> Self4194 fn from(value: i32) -> Self { 4195 Self(value) 4196 } 4197 } 4198 unsafe impl ::windows::runtime::Abi for KeyTipPlacementMode { 4199 type Abi = Self; 4200 type DefaultType = Self; 4201 } 4202 unsafe impl ::windows::runtime::RuntimeType for KeyTipPlacementMode { 4203 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Input.KeyTipPlacementMode;i4)"); 4204 } 4205 #[repr(transparent)] 4206 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4207 pub struct KeyboardAccelerator(::windows::runtime::IInspectable); 4208 impl KeyboardAccelerator { 4209 #[cfg(feature = "System")] Key(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKey>4210 pub fn Key(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKey> { 4211 let this = self; 4212 unsafe { 4213 let mut result__: super::super::super::System::VirtualKey = ::std::mem::zeroed(); 4214 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::System::VirtualKey>(result__) 4215 } 4216 } 4217 #[cfg(feature = "System")] SetKey(&self, value: super::super::super::System::VirtualKey) -> ::windows::runtime::Result<()>4218 pub fn SetKey(&self, value: super::super::super::System::VirtualKey) -> ::windows::runtime::Result<()> { 4219 let this = self; 4220 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 4221 } 4222 #[cfg(feature = "System")] Modifiers(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKeyModifiers>4223 pub fn Modifiers(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKeyModifiers> { 4224 let this = self; 4225 unsafe { 4226 let mut result__: super::super::super::System::VirtualKeyModifiers = ::std::mem::zeroed(); 4227 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::System::VirtualKeyModifiers>(result__) 4228 } 4229 } 4230 #[cfg(feature = "System")] SetModifiers(&self, value: super::super::super::System::VirtualKeyModifiers) -> ::windows::runtime::Result<()>4231 pub fn SetModifiers(&self, value: super::super::super::System::VirtualKeyModifiers) -> ::windows::runtime::Result<()> { 4232 let this = self; 4233 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 4234 } IsEnabled(&self) -> ::windows::runtime::Result<bool>4235 pub fn IsEnabled(&self) -> ::windows::runtime::Result<bool> { 4236 let this = self; 4237 unsafe { 4238 let mut result__: bool = ::std::mem::zeroed(); 4239 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4240 } 4241 } SetIsEnabled(&self, value: bool) -> ::windows::runtime::Result<()>4242 pub fn SetIsEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 4243 let this = self; 4244 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 4245 } ScopeOwner(&self) -> ::windows::runtime::Result<super::DependencyObject>4246 pub fn ScopeOwner(&self) -> ::windows::runtime::Result<super::DependencyObject> { 4247 let this = self; 4248 unsafe { 4249 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4250 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 4251 } 4252 } SetScopeOwner<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>4253 pub fn SetScopeOwner<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 4254 let this = self; 4255 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 4256 } 4257 #[cfg(feature = "Foundation")] Invoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<KeyboardAccelerator, KeyboardAcceleratorInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>4258 pub fn Invoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<KeyboardAccelerator, KeyboardAcceleratorInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 4259 let this = self; 4260 unsafe { 4261 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 4262 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 4263 } 4264 } 4265 #[cfg(feature = "Foundation")] RemoveInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>4266 pub fn RemoveInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 4267 let this = self; 4268 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 4269 } KeyProperty() -> ::windows::runtime::Result<super::DependencyProperty>4270 pub fn KeyProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 4271 Self::IKeyboardAcceleratorStatics(|this| unsafe { 4272 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4273 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 4274 }) 4275 } ModifiersProperty() -> ::windows::runtime::Result<super::DependencyProperty>4276 pub fn ModifiersProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 4277 Self::IKeyboardAcceleratorStatics(|this| unsafe { 4278 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4279 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 4280 }) 4281 } IsEnabledProperty() -> ::windows::runtime::Result<super::DependencyProperty>4282 pub fn IsEnabledProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 4283 Self::IKeyboardAcceleratorStatics(|this| unsafe { 4284 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4285 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 4286 }) 4287 } ScopeOwnerProperty() -> ::windows::runtime::Result<super::DependencyProperty>4288 pub fn ScopeOwnerProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 4289 Self::IKeyboardAcceleratorStatics(|this| unsafe { 4290 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4291 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 4292 }) 4293 } new() -> ::windows::runtime::Result<KeyboardAccelerator>4294 pub fn new() -> ::windows::runtime::Result<KeyboardAccelerator> { 4295 Self::IKeyboardAcceleratorFactory(|this| unsafe { 4296 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4297 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), ::std::ptr::null_mut(), &mut ::std::option::Option::<::windows::runtime::IInspectable>::None as *mut _ as _, &mut result__).from_abi::<KeyboardAccelerator>(result__) 4298 }) 4299 } GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>4300 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 4301 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 4302 unsafe { 4303 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4304 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 4305 } 4306 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>4307 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 4308 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 4309 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 4310 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>4311 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 4312 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 4313 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 4314 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>4315 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 4316 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 4317 unsafe { 4318 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4319 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 4320 } 4321 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>4322 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 4323 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 4324 unsafe { 4325 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4326 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 4327 } 4328 } 4329 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>4330 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 4331 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 4332 unsafe { 4333 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4334 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 4335 } 4336 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>4337 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 4338 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 4339 unsafe { 4340 let mut result__: i64 = ::std::mem::zeroed(); 4341 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 4342 } 4343 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>4344 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 4345 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 4346 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 4347 } IKeyboardAcceleratorStatics<R, F: FnOnce(&IKeyboardAcceleratorStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>4348 pub fn IKeyboardAcceleratorStatics<R, F: FnOnce(&IKeyboardAcceleratorStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 4349 static mut SHARED: ::windows::runtime::FactoryCache<KeyboardAccelerator, IKeyboardAcceleratorStatics> = ::windows::runtime::FactoryCache::new(); 4350 unsafe { SHARED.call(callback) } 4351 } IKeyboardAcceleratorFactory<R, F: FnOnce(&IKeyboardAcceleratorFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>4352 pub fn IKeyboardAcceleratorFactory<R, F: FnOnce(&IKeyboardAcceleratorFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 4353 static mut SHARED: ::windows::runtime::FactoryCache<KeyboardAccelerator, IKeyboardAcceleratorFactory> = ::windows::runtime::FactoryCache::new(); 4354 unsafe { SHARED.call(callback) } 4355 } 4356 } 4357 unsafe impl ::windows::runtime::RuntimeType for KeyboardAccelerator { 4358 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.KeyboardAccelerator;{92e6181e-19ae-465a-9b3c-a71ee9ea7420})"); 4359 } 4360 unsafe impl ::windows::runtime::Interface for KeyboardAccelerator { 4361 type Vtable = IKeyboardAccelerator_abi; 4362 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2464552990, 6574, 18010, [155, 60, 167, 30, 233, 234, 116, 32]); 4363 } 4364 impl ::windows::runtime::RuntimeName for KeyboardAccelerator { 4365 const NAME: &'static str = "Windows.UI.Xaml.Input.KeyboardAccelerator"; 4366 } 4367 impl ::std::convert::From<KeyboardAccelerator> for ::windows::runtime::IUnknown { from(value: KeyboardAccelerator) -> Self4368 fn from(value: KeyboardAccelerator) -> Self { 4369 unsafe { ::std::mem::transmute(value) } 4370 } 4371 } 4372 impl ::std::convert::From<&KeyboardAccelerator> for ::windows::runtime::IUnknown { from(value: &KeyboardAccelerator) -> Self4373 fn from(value: &KeyboardAccelerator) -> Self { 4374 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4375 } 4376 } 4377 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for KeyboardAccelerator { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4378 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4379 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4380 } 4381 } 4382 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &KeyboardAccelerator { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4383 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4384 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4385 } 4386 } 4387 impl ::std::convert::From<KeyboardAccelerator> for ::windows::runtime::IInspectable { from(value: KeyboardAccelerator) -> Self4388 fn from(value: KeyboardAccelerator) -> Self { 4389 value.0 4390 } 4391 } 4392 impl ::std::convert::From<&KeyboardAccelerator> for ::windows::runtime::IInspectable { from(value: &KeyboardAccelerator) -> Self4393 fn from(value: &KeyboardAccelerator) -> Self { 4394 value.0.clone() 4395 } 4396 } 4397 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for KeyboardAccelerator { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4398 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4399 ::windows::runtime::Param::Owned(self.0) 4400 } 4401 } 4402 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a KeyboardAccelerator { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4403 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4404 ::windows::runtime::Param::Borrowed(&self.0) 4405 } 4406 } 4407 impl ::std::convert::From<KeyboardAccelerator> for super::DependencyObject { from(value: KeyboardAccelerator) -> Self4408 fn from(value: KeyboardAccelerator) -> Self { 4409 ::std::convert::Into::<super::DependencyObject>::into(&value) 4410 } 4411 } 4412 impl ::std::convert::From<&KeyboardAccelerator> for super::DependencyObject { from(value: &KeyboardAccelerator) -> Self4413 fn from(value: &KeyboardAccelerator) -> Self { 4414 ::windows::runtime::Interface::cast(value).unwrap() 4415 } 4416 } 4417 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for KeyboardAccelerator { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>4418 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 4419 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(self)) 4420 } 4421 } 4422 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for &KeyboardAccelerator { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>4423 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 4424 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(::std::clone::Clone::clone(self))) 4425 } 4426 } 4427 unsafe impl ::std::marker::Send for KeyboardAccelerator {} 4428 unsafe impl ::std::marker::Sync for KeyboardAccelerator {} 4429 #[repr(transparent)] 4430 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4431 pub struct KeyboardAcceleratorInvokedEventArgs(::windows::runtime::IInspectable); 4432 impl KeyboardAcceleratorInvokedEventArgs { Handled(&self) -> ::windows::runtime::Result<bool>4433 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 4434 let this = self; 4435 unsafe { 4436 let mut result__: bool = ::std::mem::zeroed(); 4437 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4438 } 4439 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>4440 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 4441 let this = self; 4442 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 4443 } Element(&self) -> ::windows::runtime::Result<super::DependencyObject>4444 pub fn Element(&self) -> ::windows::runtime::Result<super::DependencyObject> { 4445 let this = self; 4446 unsafe { 4447 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4448 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 4449 } 4450 } KeyboardAccelerator(&self) -> ::windows::runtime::Result<KeyboardAccelerator>4451 pub fn KeyboardAccelerator(&self) -> ::windows::runtime::Result<KeyboardAccelerator> { 4452 let this = &::windows::runtime::Interface::cast::<IKeyboardAcceleratorInvokedEventArgs2>(self)?; 4453 unsafe { 4454 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4455 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<KeyboardAccelerator>(result__) 4456 } 4457 } 4458 } 4459 unsafe impl ::windows::runtime::RuntimeType for KeyboardAcceleratorInvokedEventArgs { 4460 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs;{c00b03f2-04e7-4415-b17d-d76b9490de2b})"); 4461 } 4462 unsafe impl ::windows::runtime::Interface for KeyboardAcceleratorInvokedEventArgs { 4463 type Vtable = IKeyboardAcceleratorInvokedEventArgs_abi; 4464 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3221947378, 1255, 17429, [177, 125, 215, 107, 148, 144, 222, 43]); 4465 } 4466 impl ::windows::runtime::RuntimeName for KeyboardAcceleratorInvokedEventArgs { 4467 const NAME: &'static str = "Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs"; 4468 } 4469 impl ::std::convert::From<KeyboardAcceleratorInvokedEventArgs> for ::windows::runtime::IUnknown { from(value: KeyboardAcceleratorInvokedEventArgs) -> Self4470 fn from(value: KeyboardAcceleratorInvokedEventArgs) -> Self { 4471 unsafe { ::std::mem::transmute(value) } 4472 } 4473 } 4474 impl ::std::convert::From<&KeyboardAcceleratorInvokedEventArgs> for ::windows::runtime::IUnknown { from(value: &KeyboardAcceleratorInvokedEventArgs) -> Self4475 fn from(value: &KeyboardAcceleratorInvokedEventArgs) -> Self { 4476 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4477 } 4478 } 4479 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for KeyboardAcceleratorInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4480 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4481 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4482 } 4483 } 4484 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &KeyboardAcceleratorInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4485 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4486 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4487 } 4488 } 4489 impl ::std::convert::From<KeyboardAcceleratorInvokedEventArgs> for ::windows::runtime::IInspectable { from(value: KeyboardAcceleratorInvokedEventArgs) -> Self4490 fn from(value: KeyboardAcceleratorInvokedEventArgs) -> Self { 4491 value.0 4492 } 4493 } 4494 impl ::std::convert::From<&KeyboardAcceleratorInvokedEventArgs> for ::windows::runtime::IInspectable { from(value: &KeyboardAcceleratorInvokedEventArgs) -> Self4495 fn from(value: &KeyboardAcceleratorInvokedEventArgs) -> Self { 4496 value.0.clone() 4497 } 4498 } 4499 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for KeyboardAcceleratorInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4500 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4501 ::windows::runtime::Param::Owned(self.0) 4502 } 4503 } 4504 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a KeyboardAcceleratorInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4505 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4506 ::windows::runtime::Param::Borrowed(&self.0) 4507 } 4508 } 4509 unsafe impl ::std::marker::Send for KeyboardAcceleratorInvokedEventArgs {} 4510 unsafe impl ::std::marker::Sync for KeyboardAcceleratorInvokedEventArgs {} 4511 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 4512 #[repr(transparent)] 4513 pub struct KeyboardAcceleratorPlacementMode(pub i32); 4514 impl KeyboardAcceleratorPlacementMode { 4515 pub const Auto: KeyboardAcceleratorPlacementMode = KeyboardAcceleratorPlacementMode(0i32); 4516 pub const Hidden: KeyboardAcceleratorPlacementMode = KeyboardAcceleratorPlacementMode(1i32); 4517 } 4518 impl ::std::convert::From<i32> for KeyboardAcceleratorPlacementMode { from(value: i32) -> Self4519 fn from(value: i32) -> Self { 4520 Self(value) 4521 } 4522 } 4523 unsafe impl ::windows::runtime::Abi for KeyboardAcceleratorPlacementMode { 4524 type Abi = Self; 4525 type DefaultType = Self; 4526 } 4527 unsafe impl ::windows::runtime::RuntimeType for KeyboardAcceleratorPlacementMode { 4528 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Input.KeyboardAcceleratorPlacementMode;i4)"); 4529 } 4530 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 4531 #[repr(transparent)] 4532 pub struct KeyboardNavigationMode(pub i32); 4533 impl KeyboardNavigationMode { 4534 pub const Local: KeyboardNavigationMode = KeyboardNavigationMode(0i32); 4535 pub const Cycle: KeyboardNavigationMode = KeyboardNavigationMode(1i32); 4536 pub const Once: KeyboardNavigationMode = KeyboardNavigationMode(2i32); 4537 } 4538 impl ::std::convert::From<i32> for KeyboardNavigationMode { from(value: i32) -> Self4539 fn from(value: i32) -> Self { 4540 Self(value) 4541 } 4542 } 4543 unsafe impl ::windows::runtime::Abi for KeyboardNavigationMode { 4544 type Abi = Self; 4545 type DefaultType = Self; 4546 } 4547 unsafe impl ::windows::runtime::RuntimeType for KeyboardNavigationMode { 4548 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Input.KeyboardNavigationMode;i4)"); 4549 } 4550 #[repr(transparent)] 4551 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4552 pub struct LosingFocusEventArgs(::windows::runtime::IInspectable); 4553 impl LosingFocusEventArgs { OldFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject>4554 pub fn OldFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject> { 4555 let this = self; 4556 unsafe { 4557 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4558 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 4559 } 4560 } NewFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject>4561 pub fn NewFocusedElement(&self) -> ::windows::runtime::Result<super::DependencyObject> { 4562 let this = self; 4563 unsafe { 4564 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4565 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 4566 } 4567 } SetNewFocusedElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>4568 pub fn SetNewFocusedElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 4569 let this = self; 4570 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 4571 } FocusState(&self) -> ::windows::runtime::Result<super::FocusState>4572 pub fn FocusState(&self) -> ::windows::runtime::Result<super::FocusState> { 4573 let this = self; 4574 unsafe { 4575 let mut result__: super::FocusState = ::std::mem::zeroed(); 4576 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::FocusState>(result__) 4577 } 4578 } Direction(&self) -> ::windows::runtime::Result<FocusNavigationDirection>4579 pub fn Direction(&self) -> ::windows::runtime::Result<FocusNavigationDirection> { 4580 let this = self; 4581 unsafe { 4582 let mut result__: FocusNavigationDirection = ::std::mem::zeroed(); 4583 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<FocusNavigationDirection>(result__) 4584 } 4585 } Handled(&self) -> ::windows::runtime::Result<bool>4586 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 4587 let this = self; 4588 unsafe { 4589 let mut result__: bool = ::std::mem::zeroed(); 4590 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4591 } 4592 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>4593 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 4594 let this = self; 4595 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value).ok() } 4596 } InputDevice(&self) -> ::windows::runtime::Result<FocusInputDeviceKind>4597 pub fn InputDevice(&self) -> ::windows::runtime::Result<FocusInputDeviceKind> { 4598 let this = self; 4599 unsafe { 4600 let mut result__: FocusInputDeviceKind = ::std::mem::zeroed(); 4601 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<FocusInputDeviceKind>(result__) 4602 } 4603 } Cancel(&self) -> ::windows::runtime::Result<bool>4604 pub fn Cancel(&self) -> ::windows::runtime::Result<bool> { 4605 let this = self; 4606 unsafe { 4607 let mut result__: bool = ::std::mem::zeroed(); 4608 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4609 } 4610 } SetCancel(&self, value: bool) -> ::windows::runtime::Result<()>4611 pub fn SetCancel(&self, value: bool) -> ::windows::runtime::Result<()> { 4612 let this = self; 4613 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value).ok() } 4614 } TryCancel(&self) -> ::windows::runtime::Result<bool>4615 pub fn TryCancel(&self) -> ::windows::runtime::Result<bool> { 4616 let this = &::windows::runtime::Interface::cast::<ILosingFocusEventArgs2>(self)?; 4617 unsafe { 4618 let mut result__: bool = ::std::mem::zeroed(); 4619 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4620 } 4621 } TrySetNewFocusedElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, element: Param0) -> ::windows::runtime::Result<bool>4622 pub fn TrySetNewFocusedElement<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, element: Param0) -> ::windows::runtime::Result<bool> { 4623 let this = &::windows::runtime::Interface::cast::<ILosingFocusEventArgs2>(self)?; 4624 unsafe { 4625 let mut result__: bool = ::std::mem::zeroed(); 4626 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::<bool>(result__) 4627 } 4628 } CorrelationId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID>4629 pub fn CorrelationId(&self) -> ::windows::runtime::Result<::windows::runtime::GUID> { 4630 let this = &::windows::runtime::Interface::cast::<ILosingFocusEventArgs3>(self)?; 4631 unsafe { 4632 let mut result__: ::windows::runtime::GUID = ::std::mem::zeroed(); 4633 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::GUID>(result__) 4634 } 4635 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>4636 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 4637 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 4638 unsafe { 4639 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4640 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 4641 } 4642 } 4643 } 4644 unsafe impl ::windows::runtime::RuntimeType for LosingFocusEventArgs { 4645 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.LosingFocusEventArgs;{f9f683c7-d789-472b-aa93-6d4105e6dabe})"); 4646 } 4647 unsafe impl ::windows::runtime::Interface for LosingFocusEventArgs { 4648 type Vtable = ILosingFocusEventArgs_abi; 4649 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4193682375, 55177, 18219, [170, 147, 109, 65, 5, 230, 218, 190]); 4650 } 4651 impl ::windows::runtime::RuntimeName for LosingFocusEventArgs { 4652 const NAME: &'static str = "Windows.UI.Xaml.Input.LosingFocusEventArgs"; 4653 } 4654 impl ::std::convert::From<LosingFocusEventArgs> for ::windows::runtime::IUnknown { from(value: LosingFocusEventArgs) -> Self4655 fn from(value: LosingFocusEventArgs) -> Self { 4656 unsafe { ::std::mem::transmute(value) } 4657 } 4658 } 4659 impl ::std::convert::From<&LosingFocusEventArgs> for ::windows::runtime::IUnknown { from(value: &LosingFocusEventArgs) -> Self4660 fn from(value: &LosingFocusEventArgs) -> Self { 4661 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4662 } 4663 } 4664 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for LosingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4665 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4666 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4667 } 4668 } 4669 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &LosingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4670 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4671 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4672 } 4673 } 4674 impl ::std::convert::From<LosingFocusEventArgs> for ::windows::runtime::IInspectable { from(value: LosingFocusEventArgs) -> Self4675 fn from(value: LosingFocusEventArgs) -> Self { 4676 value.0 4677 } 4678 } 4679 impl ::std::convert::From<&LosingFocusEventArgs> for ::windows::runtime::IInspectable { from(value: &LosingFocusEventArgs) -> Self4680 fn from(value: &LosingFocusEventArgs) -> Self { 4681 value.0.clone() 4682 } 4683 } 4684 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for LosingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4685 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4686 ::windows::runtime::Param::Owned(self.0) 4687 } 4688 } 4689 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a LosingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4690 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4691 ::windows::runtime::Param::Borrowed(&self.0) 4692 } 4693 } 4694 impl ::std::convert::From<LosingFocusEventArgs> for super::RoutedEventArgs { from(value: LosingFocusEventArgs) -> Self4695 fn from(value: LosingFocusEventArgs) -> Self { 4696 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 4697 } 4698 } 4699 impl ::std::convert::From<&LosingFocusEventArgs> for super::RoutedEventArgs { from(value: &LosingFocusEventArgs) -> Self4700 fn from(value: &LosingFocusEventArgs) -> Self { 4701 ::windows::runtime::Interface::cast(value).unwrap() 4702 } 4703 } 4704 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for LosingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>4705 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 4706 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 4707 } 4708 } 4709 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &LosingFocusEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>4710 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 4711 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 4712 } 4713 } 4714 unsafe impl ::std::marker::Send for LosingFocusEventArgs {} 4715 unsafe impl ::std::marker::Sync for LosingFocusEventArgs {} 4716 #[repr(transparent)] 4717 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4718 pub struct ManipulationCompletedEventHandler(::windows::runtime::IUnknown); 4719 impl ManipulationCompletedEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationCompletedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self4720 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationCompletedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 4721 let com = ManipulationCompletedEventHandler_box::<F> { 4722 vtable: &ManipulationCompletedEventHandler_box::<F>::VTABLE, 4723 count: ::windows::runtime::RefCount::new(1), 4724 invoke, 4725 }; 4726 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 4727 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationCompletedRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>4728 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationCompletedRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 4729 let this = self; 4730 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 4731 } 4732 } 4733 unsafe impl ::windows::runtime::RuntimeType for ManipulationCompletedEventHandler { 4734 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({38ef4b0f-14f8-42df-9a1e-a4bcc4af77f4})"); 4735 } 4736 unsafe impl ::windows::runtime::Interface for ManipulationCompletedEventHandler { 4737 type Vtable = ManipulationCompletedEventHandler_abi; 4738 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(955206415, 5368, 17119, [154, 30, 164, 188, 196, 175, 119, 244]); 4739 } 4740 #[repr(C)] 4741 #[doc(hidden)] 4742 pub struct ManipulationCompletedEventHandler_abi( 4743 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4744 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4745 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4746 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4747 ); 4748 #[repr(C)] 4749 struct ManipulationCompletedEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationCompletedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 4750 vtable: *const ManipulationCompletedEventHandler_abi, 4751 invoke: F, 4752 count: ::windows::runtime::RefCount, 4753 } 4754 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationCompletedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> ManipulationCompletedEventHandler_box<F> { 4755 const VTABLE: ManipulationCompletedEventHandler_abi = ManipulationCompletedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT4756 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 4757 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4758 *interface = if iid == &<ManipulationCompletedEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 4759 &mut (*this).vtable as *mut _ as _ 4760 } else { 4761 ::std::ptr::null_mut() 4762 }; 4763 if (*interface).is_null() { 4764 ::windows::runtime::HRESULT(0x8000_4002) 4765 } else { 4766 (*this).count.add_ref(); 4767 ::windows::runtime::HRESULT(0) 4768 } 4769 } AddRef(this: ::windows::runtime::RawPtr) -> u324770 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 4771 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4772 (*this).count.add_ref() 4773 } Release(this: ::windows::runtime::RawPtr) -> u324774 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 4775 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4776 let remaining = (*this).count.release(); 4777 if remaining == 0 { 4778 Box::from_raw(this); 4779 } 4780 remaining 4781 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT4782 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 4783 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4784 ((*this).invoke)( 4785 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 4786 &*(&e as *const <ManipulationCompletedRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <ManipulationCompletedRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 4787 ) 4788 .into() 4789 } 4790 } 4791 #[repr(transparent)] 4792 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4793 pub struct ManipulationCompletedRoutedEventArgs(::windows::runtime::IInspectable); 4794 impl ManipulationCompletedRoutedEventArgs { new() -> ::windows::runtime::Result<Self>4795 pub fn new() -> ::windows::runtime::Result<Self> { 4796 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 4797 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>4798 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 4799 static mut SHARED: ::windows::runtime::FactoryCache<ManipulationCompletedRoutedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 4800 unsafe { SHARED.call(callback) } 4801 } Container(&self) -> ::windows::runtime::Result<super::UIElement>4802 pub fn Container(&self) -> ::windows::runtime::Result<super::UIElement> { 4803 let this = self; 4804 unsafe { 4805 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4806 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::UIElement>(result__) 4807 } 4808 } 4809 #[cfg(feature = "Foundation")] Position(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Point>4810 pub fn Position(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Point> { 4811 let this = self; 4812 unsafe { 4813 let mut result__: super::super::super::Foundation::Point = ::std::mem::zeroed(); 4814 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Point>(result__) 4815 } 4816 } IsInertial(&self) -> ::windows::runtime::Result<bool>4817 pub fn IsInertial(&self) -> ::windows::runtime::Result<bool> { 4818 let this = self; 4819 unsafe { 4820 let mut result__: bool = ::std::mem::zeroed(); 4821 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4822 } 4823 } 4824 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] Cumulative(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta>4825 pub fn Cumulative(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta> { 4826 let this = self; 4827 unsafe { 4828 let mut result__: super::super::Input::ManipulationDelta = ::std::mem::zeroed(); 4829 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::ManipulationDelta>(result__) 4830 } 4831 } 4832 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] Velocities(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationVelocities>4833 pub fn Velocities(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationVelocities> { 4834 let this = self; 4835 unsafe { 4836 let mut result__: super::super::Input::ManipulationVelocities = ::std::mem::zeroed(); 4837 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::ManipulationVelocities>(result__) 4838 } 4839 } Handled(&self) -> ::windows::runtime::Result<bool>4840 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 4841 let this = self; 4842 unsafe { 4843 let mut result__: bool = ::std::mem::zeroed(); 4844 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4845 } 4846 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>4847 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 4848 let this = self; 4849 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value).ok() } 4850 } 4851 #[cfg(feature = "Devices_Input")] PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType>4852 pub fn PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType> { 4853 let this = self; 4854 unsafe { 4855 let mut result__: super::super::super::Devices::Input::PointerDeviceType = ::std::mem::zeroed(); 4856 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Devices::Input::PointerDeviceType>(result__) 4857 } 4858 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>4859 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 4860 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 4861 unsafe { 4862 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4863 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 4864 } 4865 } 4866 } 4867 unsafe impl ::windows::runtime::RuntimeType for ManipulationCompletedRoutedEventArgs { 4868 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.ManipulationCompletedRoutedEventArgs;{b5ad9b23-2f41-498e-8319-015ee8a75346})"); 4869 } 4870 unsafe impl ::windows::runtime::Interface for ManipulationCompletedRoutedEventArgs { 4871 type Vtable = IManipulationCompletedRoutedEventArgs_abi; 4872 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3048053539, 12097, 18830, [131, 25, 1, 94, 232, 167, 83, 70]); 4873 } 4874 impl ::windows::runtime::RuntimeName for ManipulationCompletedRoutedEventArgs { 4875 const NAME: &'static str = "Windows.UI.Xaml.Input.ManipulationCompletedRoutedEventArgs"; 4876 } 4877 impl ::std::convert::From<ManipulationCompletedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: ManipulationCompletedRoutedEventArgs) -> Self4878 fn from(value: ManipulationCompletedRoutedEventArgs) -> Self { 4879 unsafe { ::std::mem::transmute(value) } 4880 } 4881 } 4882 impl ::std::convert::From<&ManipulationCompletedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &ManipulationCompletedRoutedEventArgs) -> Self4883 fn from(value: &ManipulationCompletedRoutedEventArgs) -> Self { 4884 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4885 } 4886 } 4887 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ManipulationCompletedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4888 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4889 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4890 } 4891 } 4892 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ManipulationCompletedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4893 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4894 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4895 } 4896 } 4897 impl ::std::convert::From<ManipulationCompletedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: ManipulationCompletedRoutedEventArgs) -> Self4898 fn from(value: ManipulationCompletedRoutedEventArgs) -> Self { 4899 value.0 4900 } 4901 } 4902 impl ::std::convert::From<&ManipulationCompletedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &ManipulationCompletedRoutedEventArgs) -> Self4903 fn from(value: &ManipulationCompletedRoutedEventArgs) -> Self { 4904 value.0.clone() 4905 } 4906 } 4907 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ManipulationCompletedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4908 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4909 ::windows::runtime::Param::Owned(self.0) 4910 } 4911 } 4912 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ManipulationCompletedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4913 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4914 ::windows::runtime::Param::Borrowed(&self.0) 4915 } 4916 } 4917 impl ::std::convert::From<ManipulationCompletedRoutedEventArgs> for super::RoutedEventArgs { from(value: ManipulationCompletedRoutedEventArgs) -> Self4918 fn from(value: ManipulationCompletedRoutedEventArgs) -> Self { 4919 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 4920 } 4921 } 4922 impl ::std::convert::From<&ManipulationCompletedRoutedEventArgs> for super::RoutedEventArgs { from(value: &ManipulationCompletedRoutedEventArgs) -> Self4923 fn from(value: &ManipulationCompletedRoutedEventArgs) -> Self { 4924 ::windows::runtime::Interface::cast(value).unwrap() 4925 } 4926 } 4927 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for ManipulationCompletedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>4928 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 4929 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 4930 } 4931 } 4932 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &ManipulationCompletedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>4933 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 4934 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 4935 } 4936 } 4937 unsafe impl ::std::marker::Send for ManipulationCompletedRoutedEventArgs {} 4938 unsafe impl ::std::marker::Sync for ManipulationCompletedRoutedEventArgs {} 4939 #[repr(transparent)] 4940 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4941 pub struct ManipulationDeltaEventHandler(::windows::runtime::IUnknown); 4942 impl ManipulationDeltaEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationDeltaRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self4943 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationDeltaRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 4944 let com = ManipulationDeltaEventHandler_box::<F> { 4945 vtable: &ManipulationDeltaEventHandler_box::<F>::VTABLE, 4946 count: ::windows::runtime::RefCount::new(1), 4947 invoke, 4948 }; 4949 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 4950 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationDeltaRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>4951 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationDeltaRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 4952 let this = self; 4953 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 4954 } 4955 } 4956 unsafe impl ::windows::runtime::RuntimeType for ManipulationDeltaEventHandler { 4957 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({aa1160cb-dfb9-4c56-abdc-711b63c8eb94})"); 4958 } 4959 unsafe impl ::windows::runtime::Interface for ManipulationDeltaEventHandler { 4960 type Vtable = ManipulationDeltaEventHandler_abi; 4961 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2853265611, 57273, 19542, [171, 220, 113, 27, 99, 200, 235, 148]); 4962 } 4963 #[repr(C)] 4964 #[doc(hidden)] 4965 pub struct ManipulationDeltaEventHandler_abi( 4966 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4967 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4968 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4969 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4970 ); 4971 #[repr(C)] 4972 struct ManipulationDeltaEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationDeltaRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 4973 vtable: *const ManipulationDeltaEventHandler_abi, 4974 invoke: F, 4975 count: ::windows::runtime::RefCount, 4976 } 4977 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationDeltaRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> ManipulationDeltaEventHandler_box<F> { 4978 const VTABLE: ManipulationDeltaEventHandler_abi = ManipulationDeltaEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT4979 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 4980 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4981 *interface = if iid == &<ManipulationDeltaEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 4982 &mut (*this).vtable as *mut _ as _ 4983 } else { 4984 ::std::ptr::null_mut() 4985 }; 4986 if (*interface).is_null() { 4987 ::windows::runtime::HRESULT(0x8000_4002) 4988 } else { 4989 (*this).count.add_ref(); 4990 ::windows::runtime::HRESULT(0) 4991 } 4992 } AddRef(this: ::windows::runtime::RawPtr) -> u324993 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 4994 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4995 (*this).count.add_ref() 4996 } Release(this: ::windows::runtime::RawPtr) -> u324997 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 4998 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 4999 let remaining = (*this).count.release(); 5000 if remaining == 0 { 5001 Box::from_raw(this); 5002 } 5003 remaining 5004 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT5005 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 5006 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5007 ((*this).invoke)( 5008 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 5009 &*(&e as *const <ManipulationDeltaRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <ManipulationDeltaRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 5010 ) 5011 .into() 5012 } 5013 } 5014 #[repr(transparent)] 5015 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5016 pub struct ManipulationDeltaRoutedEventArgs(::windows::runtime::IInspectable); 5017 impl ManipulationDeltaRoutedEventArgs { new() -> ::windows::runtime::Result<Self>5018 pub fn new() -> ::windows::runtime::Result<Self> { 5019 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 5020 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>5021 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 5022 static mut SHARED: ::windows::runtime::FactoryCache<ManipulationDeltaRoutedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 5023 unsafe { SHARED.call(callback) } 5024 } Container(&self) -> ::windows::runtime::Result<super::UIElement>5025 pub fn Container(&self) -> ::windows::runtime::Result<super::UIElement> { 5026 let this = self; 5027 unsafe { 5028 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5029 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::UIElement>(result__) 5030 } 5031 } 5032 #[cfg(feature = "Foundation")] Position(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Point>5033 pub fn Position(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Point> { 5034 let this = self; 5035 unsafe { 5036 let mut result__: super::super::super::Foundation::Point = ::std::mem::zeroed(); 5037 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Point>(result__) 5038 } 5039 } IsInertial(&self) -> ::windows::runtime::Result<bool>5040 pub fn IsInertial(&self) -> ::windows::runtime::Result<bool> { 5041 let this = self; 5042 unsafe { 5043 let mut result__: bool = ::std::mem::zeroed(); 5044 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 5045 } 5046 } 5047 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] Delta(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta>5048 pub fn Delta(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta> { 5049 let this = self; 5050 unsafe { 5051 let mut result__: super::super::Input::ManipulationDelta = ::std::mem::zeroed(); 5052 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::ManipulationDelta>(result__) 5053 } 5054 } 5055 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] Cumulative(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta>5056 pub fn Cumulative(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta> { 5057 let this = self; 5058 unsafe { 5059 let mut result__: super::super::Input::ManipulationDelta = ::std::mem::zeroed(); 5060 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::ManipulationDelta>(result__) 5061 } 5062 } 5063 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] Velocities(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationVelocities>5064 pub fn Velocities(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationVelocities> { 5065 let this = self; 5066 unsafe { 5067 let mut result__: super::super::Input::ManipulationVelocities = ::std::mem::zeroed(); 5068 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::ManipulationVelocities>(result__) 5069 } 5070 } Handled(&self) -> ::windows::runtime::Result<bool>5071 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 5072 let this = self; 5073 unsafe { 5074 let mut result__: bool = ::std::mem::zeroed(); 5075 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 5076 } 5077 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>5078 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 5079 let this = self; 5080 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 5081 } 5082 #[cfg(feature = "Devices_Input")] PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType>5083 pub fn PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType> { 5084 let this = self; 5085 unsafe { 5086 let mut result__: super::super::super::Devices::Input::PointerDeviceType = ::std::mem::zeroed(); 5087 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Devices::Input::PointerDeviceType>(result__) 5088 } 5089 } Complete(&self) -> ::windows::runtime::Result<()>5090 pub fn Complete(&self) -> ::windows::runtime::Result<()> { 5091 let this = self; 5092 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this)).ok() } 5093 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>5094 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 5095 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 5096 unsafe { 5097 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5098 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 5099 } 5100 } 5101 } 5102 unsafe impl ::windows::runtime::RuntimeType for ManipulationDeltaRoutedEventArgs { 5103 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs;{400d5794-4c6f-491d-82d6-3517109399c6})"); 5104 } 5105 unsafe impl ::windows::runtime::Interface for ManipulationDeltaRoutedEventArgs { 5106 type Vtable = IManipulationDeltaRoutedEventArgs_abi; 5107 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1074616212, 19567, 18717, [130, 214, 53, 23, 16, 147, 153, 198]); 5108 } 5109 impl ::windows::runtime::RuntimeName for ManipulationDeltaRoutedEventArgs { 5110 const NAME: &'static str = "Windows.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs"; 5111 } 5112 impl ::std::convert::From<ManipulationDeltaRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: ManipulationDeltaRoutedEventArgs) -> Self5113 fn from(value: ManipulationDeltaRoutedEventArgs) -> Self { 5114 unsafe { ::std::mem::transmute(value) } 5115 } 5116 } 5117 impl ::std::convert::From<&ManipulationDeltaRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &ManipulationDeltaRoutedEventArgs) -> Self5118 fn from(value: &ManipulationDeltaRoutedEventArgs) -> Self { 5119 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5120 } 5121 } 5122 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ManipulationDeltaRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5123 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5124 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5125 } 5126 } 5127 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ManipulationDeltaRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5128 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5129 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5130 } 5131 } 5132 impl ::std::convert::From<ManipulationDeltaRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: ManipulationDeltaRoutedEventArgs) -> Self5133 fn from(value: ManipulationDeltaRoutedEventArgs) -> Self { 5134 value.0 5135 } 5136 } 5137 impl ::std::convert::From<&ManipulationDeltaRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &ManipulationDeltaRoutedEventArgs) -> Self5138 fn from(value: &ManipulationDeltaRoutedEventArgs) -> Self { 5139 value.0.clone() 5140 } 5141 } 5142 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ManipulationDeltaRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5143 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5144 ::windows::runtime::Param::Owned(self.0) 5145 } 5146 } 5147 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ManipulationDeltaRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5148 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5149 ::windows::runtime::Param::Borrowed(&self.0) 5150 } 5151 } 5152 impl ::std::convert::From<ManipulationDeltaRoutedEventArgs> for super::RoutedEventArgs { from(value: ManipulationDeltaRoutedEventArgs) -> Self5153 fn from(value: ManipulationDeltaRoutedEventArgs) -> Self { 5154 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 5155 } 5156 } 5157 impl ::std::convert::From<&ManipulationDeltaRoutedEventArgs> for super::RoutedEventArgs { from(value: &ManipulationDeltaRoutedEventArgs) -> Self5158 fn from(value: &ManipulationDeltaRoutedEventArgs) -> Self { 5159 ::windows::runtime::Interface::cast(value).unwrap() 5160 } 5161 } 5162 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for ManipulationDeltaRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>5163 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 5164 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 5165 } 5166 } 5167 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &ManipulationDeltaRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>5168 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 5169 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 5170 } 5171 } 5172 unsafe impl ::std::marker::Send for ManipulationDeltaRoutedEventArgs {} 5173 unsafe impl ::std::marker::Sync for ManipulationDeltaRoutedEventArgs {} 5174 #[repr(transparent)] 5175 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5176 pub struct ManipulationInertiaStartingEventHandler(::windows::runtime::IUnknown); 5177 impl ManipulationInertiaStartingEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationInertiaStartingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self5178 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationInertiaStartingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 5179 let com = ManipulationInertiaStartingEventHandler_box::<F> { 5180 vtable: &ManipulationInertiaStartingEventHandler_box::<F>::VTABLE, 5181 count: ::windows::runtime::RefCount::new(1), 5182 invoke, 5183 }; 5184 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 5185 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationInertiaStartingRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>5186 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationInertiaStartingRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 5187 let this = self; 5188 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 5189 } 5190 } 5191 unsafe impl ::windows::runtime::RuntimeType for ManipulationInertiaStartingEventHandler { 5192 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({d39d6322-7c9c-481b-827b-c8b2d9bb6fc7})"); 5193 } 5194 unsafe impl ::windows::runtime::Interface for ManipulationInertiaStartingEventHandler { 5195 type Vtable = ManipulationInertiaStartingEventHandler_abi; 5196 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3550307106, 31900, 18459, [130, 123, 200, 178, 217, 187, 111, 199]); 5197 } 5198 #[repr(C)] 5199 #[doc(hidden)] 5200 pub struct ManipulationInertiaStartingEventHandler_abi( 5201 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5202 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5203 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5204 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5205 ); 5206 #[repr(C)] 5207 struct ManipulationInertiaStartingEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationInertiaStartingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 5208 vtable: *const ManipulationInertiaStartingEventHandler_abi, 5209 invoke: F, 5210 count: ::windows::runtime::RefCount, 5211 } 5212 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationInertiaStartingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> ManipulationInertiaStartingEventHandler_box<F> { 5213 const VTABLE: ManipulationInertiaStartingEventHandler_abi = ManipulationInertiaStartingEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT5214 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 5215 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5216 *interface = if iid == &<ManipulationInertiaStartingEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 5217 &mut (*this).vtable as *mut _ as _ 5218 } else { 5219 ::std::ptr::null_mut() 5220 }; 5221 if (*interface).is_null() { 5222 ::windows::runtime::HRESULT(0x8000_4002) 5223 } else { 5224 (*this).count.add_ref(); 5225 ::windows::runtime::HRESULT(0) 5226 } 5227 } AddRef(this: ::windows::runtime::RawPtr) -> u325228 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 5229 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5230 (*this).count.add_ref() 5231 } Release(this: ::windows::runtime::RawPtr) -> u325232 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 5233 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5234 let remaining = (*this).count.release(); 5235 if remaining == 0 { 5236 Box::from_raw(this); 5237 } 5238 remaining 5239 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT5240 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 5241 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5242 ((*this).invoke)( 5243 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 5244 &*(&e as *const <ManipulationInertiaStartingRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <ManipulationInertiaStartingRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 5245 ) 5246 .into() 5247 } 5248 } 5249 #[repr(transparent)] 5250 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5251 pub struct ManipulationInertiaStartingRoutedEventArgs(::windows::runtime::IInspectable); 5252 impl ManipulationInertiaStartingRoutedEventArgs { new() -> ::windows::runtime::Result<Self>5253 pub fn new() -> ::windows::runtime::Result<Self> { 5254 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 5255 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>5256 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 5257 static mut SHARED: ::windows::runtime::FactoryCache<ManipulationInertiaStartingRoutedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 5258 unsafe { SHARED.call(callback) } 5259 } Container(&self) -> ::windows::runtime::Result<super::UIElement>5260 pub fn Container(&self) -> ::windows::runtime::Result<super::UIElement> { 5261 let this = self; 5262 unsafe { 5263 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5264 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::UIElement>(result__) 5265 } 5266 } ExpansionBehavior(&self) -> ::windows::runtime::Result<InertiaExpansionBehavior>5267 pub fn ExpansionBehavior(&self) -> ::windows::runtime::Result<InertiaExpansionBehavior> { 5268 let this = self; 5269 unsafe { 5270 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5271 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<InertiaExpansionBehavior>(result__) 5272 } 5273 } SetExpansionBehavior<'a, Param0: ::windows::runtime::IntoParam<'a, InertiaExpansionBehavior>>(&self, value: Param0) -> ::windows::runtime::Result<()>5274 pub fn SetExpansionBehavior<'a, Param0: ::windows::runtime::IntoParam<'a, InertiaExpansionBehavior>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 5275 let this = self; 5276 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 5277 } RotationBehavior(&self) -> ::windows::runtime::Result<InertiaRotationBehavior>5278 pub fn RotationBehavior(&self) -> ::windows::runtime::Result<InertiaRotationBehavior> { 5279 let this = self; 5280 unsafe { 5281 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5282 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<InertiaRotationBehavior>(result__) 5283 } 5284 } SetRotationBehavior<'a, Param0: ::windows::runtime::IntoParam<'a, InertiaRotationBehavior>>(&self, value: Param0) -> ::windows::runtime::Result<()>5285 pub fn SetRotationBehavior<'a, Param0: ::windows::runtime::IntoParam<'a, InertiaRotationBehavior>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 5286 let this = self; 5287 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 5288 } TranslationBehavior(&self) -> ::windows::runtime::Result<InertiaTranslationBehavior>5289 pub fn TranslationBehavior(&self) -> ::windows::runtime::Result<InertiaTranslationBehavior> { 5290 let this = self; 5291 unsafe { 5292 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5293 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<InertiaTranslationBehavior>(result__) 5294 } 5295 } SetTranslationBehavior<'a, Param0: ::windows::runtime::IntoParam<'a, InertiaTranslationBehavior>>(&self, value: Param0) -> ::windows::runtime::Result<()>5296 pub fn SetTranslationBehavior<'a, Param0: ::windows::runtime::IntoParam<'a, InertiaTranslationBehavior>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 5297 let this = self; 5298 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 5299 } Handled(&self) -> ::windows::runtime::Result<bool>5300 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 5301 let this = self; 5302 unsafe { 5303 let mut result__: bool = ::std::mem::zeroed(); 5304 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 5305 } 5306 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>5307 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 5308 let this = self; 5309 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), value).ok() } 5310 } 5311 #[cfg(feature = "Devices_Input")] PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType>5312 pub fn PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType> { 5313 let this = self; 5314 unsafe { 5315 let mut result__: super::super::super::Devices::Input::PointerDeviceType = ::std::mem::zeroed(); 5316 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Devices::Input::PointerDeviceType>(result__) 5317 } 5318 } 5319 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] Delta(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta>5320 pub fn Delta(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta> { 5321 let this = self; 5322 unsafe { 5323 let mut result__: super::super::Input::ManipulationDelta = ::std::mem::zeroed(); 5324 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::ManipulationDelta>(result__) 5325 } 5326 } 5327 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] Cumulative(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta>5328 pub fn Cumulative(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta> { 5329 let this = self; 5330 unsafe { 5331 let mut result__: super::super::Input::ManipulationDelta = ::std::mem::zeroed(); 5332 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::ManipulationDelta>(result__) 5333 } 5334 } 5335 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] Velocities(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationVelocities>5336 pub fn Velocities(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationVelocities> { 5337 let this = self; 5338 unsafe { 5339 let mut result__: super::super::Input::ManipulationVelocities = ::std::mem::zeroed(); 5340 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::ManipulationVelocities>(result__) 5341 } 5342 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>5343 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 5344 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 5345 unsafe { 5346 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5347 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 5348 } 5349 } 5350 } 5351 unsafe impl ::windows::runtime::RuntimeType for ManipulationInertiaStartingRoutedEventArgs { 5352 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.ManipulationInertiaStartingRoutedEventArgs;{246a91a9-ca43-4c0b-acef-81e8b8147520})"); 5353 } 5354 unsafe impl ::windows::runtime::Interface for ManipulationInertiaStartingRoutedEventArgs { 5355 type Vtable = IManipulationInertiaStartingRoutedEventArgs_abi; 5356 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(610963881, 51779, 19467, [172, 239, 129, 232, 184, 20, 117, 32]); 5357 } 5358 impl ::windows::runtime::RuntimeName for ManipulationInertiaStartingRoutedEventArgs { 5359 const NAME: &'static str = "Windows.UI.Xaml.Input.ManipulationInertiaStartingRoutedEventArgs"; 5360 } 5361 impl ::std::convert::From<ManipulationInertiaStartingRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: ManipulationInertiaStartingRoutedEventArgs) -> Self5362 fn from(value: ManipulationInertiaStartingRoutedEventArgs) -> Self { 5363 unsafe { ::std::mem::transmute(value) } 5364 } 5365 } 5366 impl ::std::convert::From<&ManipulationInertiaStartingRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &ManipulationInertiaStartingRoutedEventArgs) -> Self5367 fn from(value: &ManipulationInertiaStartingRoutedEventArgs) -> Self { 5368 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5369 } 5370 } 5371 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ManipulationInertiaStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5372 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5373 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5374 } 5375 } 5376 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ManipulationInertiaStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5377 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5378 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5379 } 5380 } 5381 impl ::std::convert::From<ManipulationInertiaStartingRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: ManipulationInertiaStartingRoutedEventArgs) -> Self5382 fn from(value: ManipulationInertiaStartingRoutedEventArgs) -> Self { 5383 value.0 5384 } 5385 } 5386 impl ::std::convert::From<&ManipulationInertiaStartingRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &ManipulationInertiaStartingRoutedEventArgs) -> Self5387 fn from(value: &ManipulationInertiaStartingRoutedEventArgs) -> Self { 5388 value.0.clone() 5389 } 5390 } 5391 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ManipulationInertiaStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5392 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5393 ::windows::runtime::Param::Owned(self.0) 5394 } 5395 } 5396 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ManipulationInertiaStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5397 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5398 ::windows::runtime::Param::Borrowed(&self.0) 5399 } 5400 } 5401 impl ::std::convert::From<ManipulationInertiaStartingRoutedEventArgs> for super::RoutedEventArgs { from(value: ManipulationInertiaStartingRoutedEventArgs) -> Self5402 fn from(value: ManipulationInertiaStartingRoutedEventArgs) -> Self { 5403 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 5404 } 5405 } 5406 impl ::std::convert::From<&ManipulationInertiaStartingRoutedEventArgs> for super::RoutedEventArgs { from(value: &ManipulationInertiaStartingRoutedEventArgs) -> Self5407 fn from(value: &ManipulationInertiaStartingRoutedEventArgs) -> Self { 5408 ::windows::runtime::Interface::cast(value).unwrap() 5409 } 5410 } 5411 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for ManipulationInertiaStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>5412 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 5413 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 5414 } 5415 } 5416 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &ManipulationInertiaStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>5417 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 5418 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 5419 } 5420 } 5421 unsafe impl ::std::marker::Send for ManipulationInertiaStartingRoutedEventArgs {} 5422 unsafe impl ::std::marker::Sync for ManipulationInertiaStartingRoutedEventArgs {} 5423 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 5424 #[repr(transparent)] 5425 pub struct ManipulationModes(pub u32); 5426 impl ManipulationModes { 5427 pub const None: ManipulationModes = ManipulationModes(0u32); 5428 pub const TranslateX: ManipulationModes = ManipulationModes(1u32); 5429 pub const TranslateY: ManipulationModes = ManipulationModes(2u32); 5430 pub const TranslateRailsX: ManipulationModes = ManipulationModes(4u32); 5431 pub const TranslateRailsY: ManipulationModes = ManipulationModes(8u32); 5432 pub const Rotate: ManipulationModes = ManipulationModes(16u32); 5433 pub const Scale: ManipulationModes = ManipulationModes(32u32); 5434 pub const TranslateInertia: ManipulationModes = ManipulationModes(64u32); 5435 pub const RotateInertia: ManipulationModes = ManipulationModes(128u32); 5436 pub const ScaleInertia: ManipulationModes = ManipulationModes(256u32); 5437 pub const All: ManipulationModes = ManipulationModes(65535u32); 5438 pub const System: ManipulationModes = ManipulationModes(65536u32); 5439 } 5440 impl ::std::convert::From<u32> for ManipulationModes { from(value: u32) -> Self5441 fn from(value: u32) -> Self { 5442 Self(value) 5443 } 5444 } 5445 unsafe impl ::windows::runtime::Abi for ManipulationModes { 5446 type Abi = Self; 5447 type DefaultType = Self; 5448 } 5449 unsafe impl ::windows::runtime::RuntimeType for ManipulationModes { 5450 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Input.ManipulationModes;u4)"); 5451 } 5452 impl ::std::ops::BitOr for ManipulationModes { 5453 type Output = Self; bitor(self, rhs: Self) -> Self5454 fn bitor(self, rhs: Self) -> Self { 5455 Self(self.0 | rhs.0) 5456 } 5457 } 5458 impl ::std::ops::BitAnd for ManipulationModes { 5459 type Output = Self; bitand(self, rhs: Self) -> Self5460 fn bitand(self, rhs: Self) -> Self { 5461 Self(self.0 & rhs.0) 5462 } 5463 } 5464 impl ::std::ops::BitOrAssign for ManipulationModes { bitor_assign(&mut self, rhs: Self)5465 fn bitor_assign(&mut self, rhs: Self) { 5466 self.0.bitor_assign(rhs.0) 5467 } 5468 } 5469 impl ::std::ops::BitAndAssign for ManipulationModes { bitand_assign(&mut self, rhs: Self)5470 fn bitand_assign(&mut self, rhs: Self) { 5471 self.0.bitand_assign(rhs.0) 5472 } 5473 } 5474 impl ::std::ops::Not for ManipulationModes { 5475 type Output = Self; not(self) -> Self5476 fn not(self) -> Self { 5477 Self(self.0.not()) 5478 } 5479 } 5480 #[repr(transparent)] 5481 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5482 pub struct ManipulationPivot(::windows::runtime::IInspectable); 5483 impl ManipulationPivot { new() -> ::windows::runtime::Result<Self>5484 pub fn new() -> ::windows::runtime::Result<Self> { 5485 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 5486 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>5487 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 5488 static mut SHARED: ::windows::runtime::FactoryCache<ManipulationPivot, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 5489 unsafe { SHARED.call(callback) } 5490 } 5491 #[cfg(feature = "Foundation")] Center(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Point>5492 pub fn Center(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Point> { 5493 let this = self; 5494 unsafe { 5495 let mut result__: super::super::super::Foundation::Point = ::std::mem::zeroed(); 5496 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Point>(result__) 5497 } 5498 } 5499 #[cfg(feature = "Foundation")] SetCenter<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::runtime::Result<()>5500 pub fn SetCenter<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 5501 let this = self; 5502 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 5503 } Radius(&self) -> ::windows::runtime::Result<f64>5504 pub fn Radius(&self) -> ::windows::runtime::Result<f64> { 5505 let this = self; 5506 unsafe { 5507 let mut result__: f64 = ::std::mem::zeroed(); 5508 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 5509 } 5510 } SetRadius(&self, value: f64) -> ::windows::runtime::Result<()>5511 pub fn SetRadius(&self, value: f64) -> ::windows::runtime::Result<()> { 5512 let this = self; 5513 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 5514 } 5515 #[cfg(feature = "Foundation")] CreateInstanceWithCenterAndRadius<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Point>>(center: Param0, radius: f64) -> ::windows::runtime::Result<ManipulationPivot>5516 pub fn CreateInstanceWithCenterAndRadius<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Point>>(center: Param0, radius: f64) -> ::windows::runtime::Result<ManipulationPivot> { 5517 Self::IManipulationPivotFactory(|this| unsafe { 5518 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5519 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), center.into_param().abi(), radius, &mut result__).from_abi::<ManipulationPivot>(result__) 5520 }) 5521 } IManipulationPivotFactory<R, F: FnOnce(&IManipulationPivotFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>5522 pub fn IManipulationPivotFactory<R, F: FnOnce(&IManipulationPivotFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 5523 static mut SHARED: ::windows::runtime::FactoryCache<ManipulationPivot, IManipulationPivotFactory> = ::windows::runtime::FactoryCache::new(); 5524 unsafe { SHARED.call(callback) } 5525 } 5526 } 5527 unsafe impl ::windows::runtime::RuntimeType for ManipulationPivot { 5528 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.ManipulationPivot;{2e3838a5-e6c2-4998-82ac-18748b141666})"); 5529 } 5530 unsafe impl ::windows::runtime::Interface for ManipulationPivot { 5531 type Vtable = IManipulationPivot_abi; 5532 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(775436453, 59074, 18840, [130, 172, 24, 116, 139, 20, 22, 102]); 5533 } 5534 impl ::windows::runtime::RuntimeName for ManipulationPivot { 5535 const NAME: &'static str = "Windows.UI.Xaml.Input.ManipulationPivot"; 5536 } 5537 impl ::std::convert::From<ManipulationPivot> for ::windows::runtime::IUnknown { from(value: ManipulationPivot) -> Self5538 fn from(value: ManipulationPivot) -> Self { 5539 unsafe { ::std::mem::transmute(value) } 5540 } 5541 } 5542 impl ::std::convert::From<&ManipulationPivot> for ::windows::runtime::IUnknown { from(value: &ManipulationPivot) -> Self5543 fn from(value: &ManipulationPivot) -> Self { 5544 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5545 } 5546 } 5547 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ManipulationPivot { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5548 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5549 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5550 } 5551 } 5552 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ManipulationPivot { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5553 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5554 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5555 } 5556 } 5557 impl ::std::convert::From<ManipulationPivot> for ::windows::runtime::IInspectable { from(value: ManipulationPivot) -> Self5558 fn from(value: ManipulationPivot) -> Self { 5559 value.0 5560 } 5561 } 5562 impl ::std::convert::From<&ManipulationPivot> for ::windows::runtime::IInspectable { from(value: &ManipulationPivot) -> Self5563 fn from(value: &ManipulationPivot) -> Self { 5564 value.0.clone() 5565 } 5566 } 5567 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ManipulationPivot { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5568 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5569 ::windows::runtime::Param::Owned(self.0) 5570 } 5571 } 5572 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ManipulationPivot { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5573 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5574 ::windows::runtime::Param::Borrowed(&self.0) 5575 } 5576 } 5577 unsafe impl ::std::marker::Send for ManipulationPivot {} 5578 unsafe impl ::std::marker::Sync for ManipulationPivot {} 5579 #[repr(transparent)] 5580 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5581 pub struct ManipulationStartedEventHandler(::windows::runtime::IUnknown); 5582 impl ManipulationStartedEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationStartedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self5583 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationStartedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 5584 let com = ManipulationStartedEventHandler_box::<F> { 5585 vtable: &ManipulationStartedEventHandler_box::<F>::VTABLE, 5586 count: ::windows::runtime::RefCount::new(1), 5587 invoke, 5588 }; 5589 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 5590 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationStartedRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>5591 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationStartedRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 5592 let this = self; 5593 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 5594 } 5595 } 5596 unsafe impl ::windows::runtime::RuntimeType for ManipulationStartedEventHandler { 5597 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({f88345f8-e0a3-4be2-b90c-dc20e6d8beb0})"); 5598 } 5599 unsafe impl ::windows::runtime::Interface for ManipulationStartedEventHandler { 5600 type Vtable = ManipulationStartedEventHandler_abi; 5601 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4169352696, 57507, 19426, [185, 12, 220, 32, 230, 216, 190, 176]); 5602 } 5603 #[repr(C)] 5604 #[doc(hidden)] 5605 pub struct ManipulationStartedEventHandler_abi( 5606 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5607 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5608 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5609 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5610 ); 5611 #[repr(C)] 5612 struct ManipulationStartedEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationStartedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 5613 vtable: *const ManipulationStartedEventHandler_abi, 5614 invoke: F, 5615 count: ::windows::runtime::RefCount, 5616 } 5617 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationStartedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> ManipulationStartedEventHandler_box<F> { 5618 const VTABLE: ManipulationStartedEventHandler_abi = ManipulationStartedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT5619 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 5620 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5621 *interface = if iid == &<ManipulationStartedEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 5622 &mut (*this).vtable as *mut _ as _ 5623 } else { 5624 ::std::ptr::null_mut() 5625 }; 5626 if (*interface).is_null() { 5627 ::windows::runtime::HRESULT(0x8000_4002) 5628 } else { 5629 (*this).count.add_ref(); 5630 ::windows::runtime::HRESULT(0) 5631 } 5632 } AddRef(this: ::windows::runtime::RawPtr) -> u325633 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 5634 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5635 (*this).count.add_ref() 5636 } Release(this: ::windows::runtime::RawPtr) -> u325637 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 5638 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5639 let remaining = (*this).count.release(); 5640 if remaining == 0 { 5641 Box::from_raw(this); 5642 } 5643 remaining 5644 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT5645 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 5646 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5647 ((*this).invoke)( 5648 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 5649 &*(&e as *const <ManipulationStartedRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <ManipulationStartedRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 5650 ) 5651 .into() 5652 } 5653 } 5654 #[repr(transparent)] 5655 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5656 pub struct ManipulationStartedRoutedEventArgs(::windows::runtime::IInspectable); 5657 impl ManipulationStartedRoutedEventArgs { Container(&self) -> ::windows::runtime::Result<super::UIElement>5658 pub fn Container(&self) -> ::windows::runtime::Result<super::UIElement> { 5659 let this = self; 5660 unsafe { 5661 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5662 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::UIElement>(result__) 5663 } 5664 } 5665 #[cfg(feature = "Foundation")] Position(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Point>5666 pub fn Position(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Point> { 5667 let this = self; 5668 unsafe { 5669 let mut result__: super::super::super::Foundation::Point = ::std::mem::zeroed(); 5670 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Point>(result__) 5671 } 5672 } Handled(&self) -> ::windows::runtime::Result<bool>5673 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 5674 let this = self; 5675 unsafe { 5676 let mut result__: bool = ::std::mem::zeroed(); 5677 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 5678 } 5679 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>5680 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 5681 let this = self; 5682 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 5683 } 5684 #[cfg(feature = "Devices_Input")] PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType>5685 pub fn PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType> { 5686 let this = self; 5687 unsafe { 5688 let mut result__: super::super::super::Devices::Input::PointerDeviceType = ::std::mem::zeroed(); 5689 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Devices::Input::PointerDeviceType>(result__) 5690 } 5691 } 5692 #[cfg(all(feature = "Foundation", feature = "UI_Input"))] Cumulative(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta>5693 pub fn Cumulative(&self) -> ::windows::runtime::Result<super::super::Input::ManipulationDelta> { 5694 let this = self; 5695 unsafe { 5696 let mut result__: super::super::Input::ManipulationDelta = ::std::mem::zeroed(); 5697 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Input::ManipulationDelta>(result__) 5698 } 5699 } Complete(&self) -> ::windows::runtime::Result<()>5700 pub fn Complete(&self) -> ::windows::runtime::Result<()> { 5701 let this = self; 5702 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this)).ok() } 5703 } new() -> ::windows::runtime::Result<ManipulationStartedRoutedEventArgs>5704 pub fn new() -> ::windows::runtime::Result<ManipulationStartedRoutedEventArgs> { 5705 Self::IManipulationStartedRoutedEventArgsFactory(|this| unsafe { 5706 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5707 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), ::std::ptr::null_mut(), &mut ::std::option::Option::<::windows::runtime::IInspectable>::None as *mut _ as _, &mut result__).from_abi::<ManipulationStartedRoutedEventArgs>(result__) 5708 }) 5709 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>5710 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 5711 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 5712 unsafe { 5713 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5714 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 5715 } 5716 } IManipulationStartedRoutedEventArgsFactory<R, F: FnOnce(&IManipulationStartedRoutedEventArgsFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>5717 pub fn IManipulationStartedRoutedEventArgsFactory<R, F: FnOnce(&IManipulationStartedRoutedEventArgsFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 5718 static mut SHARED: ::windows::runtime::FactoryCache<ManipulationStartedRoutedEventArgs, IManipulationStartedRoutedEventArgsFactory> = ::windows::runtime::FactoryCache::new(); 5719 unsafe { SHARED.call(callback) } 5720 } 5721 } 5722 unsafe impl ::windows::runtime::RuntimeType for ManipulationStartedRoutedEventArgs { 5723 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.ManipulationStartedRoutedEventArgs;{5db1aa05-9f80-48b6-ae6c-4f119de8ff13})"); 5724 } 5725 unsafe impl ::windows::runtime::Interface for ManipulationStartedRoutedEventArgs { 5726 type Vtable = IManipulationStartedRoutedEventArgs_abi; 5727 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1571924485, 40832, 18614, [174, 108, 79, 17, 157, 232, 255, 19]); 5728 } 5729 impl ::windows::runtime::RuntimeName for ManipulationStartedRoutedEventArgs { 5730 const NAME: &'static str = "Windows.UI.Xaml.Input.ManipulationStartedRoutedEventArgs"; 5731 } 5732 impl ::std::convert::From<ManipulationStartedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: ManipulationStartedRoutedEventArgs) -> Self5733 fn from(value: ManipulationStartedRoutedEventArgs) -> Self { 5734 unsafe { ::std::mem::transmute(value) } 5735 } 5736 } 5737 impl ::std::convert::From<&ManipulationStartedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &ManipulationStartedRoutedEventArgs) -> Self5738 fn from(value: &ManipulationStartedRoutedEventArgs) -> Self { 5739 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5740 } 5741 } 5742 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ManipulationStartedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5743 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5744 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5745 } 5746 } 5747 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ManipulationStartedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5748 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5749 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5750 } 5751 } 5752 impl ::std::convert::From<ManipulationStartedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: ManipulationStartedRoutedEventArgs) -> Self5753 fn from(value: ManipulationStartedRoutedEventArgs) -> Self { 5754 value.0 5755 } 5756 } 5757 impl ::std::convert::From<&ManipulationStartedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &ManipulationStartedRoutedEventArgs) -> Self5758 fn from(value: &ManipulationStartedRoutedEventArgs) -> Self { 5759 value.0.clone() 5760 } 5761 } 5762 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ManipulationStartedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5763 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5764 ::windows::runtime::Param::Owned(self.0) 5765 } 5766 } 5767 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ManipulationStartedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5768 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5769 ::windows::runtime::Param::Borrowed(&self.0) 5770 } 5771 } 5772 impl ::std::convert::From<ManipulationStartedRoutedEventArgs> for super::RoutedEventArgs { from(value: ManipulationStartedRoutedEventArgs) -> Self5773 fn from(value: ManipulationStartedRoutedEventArgs) -> Self { 5774 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 5775 } 5776 } 5777 impl ::std::convert::From<&ManipulationStartedRoutedEventArgs> for super::RoutedEventArgs { from(value: &ManipulationStartedRoutedEventArgs) -> Self5778 fn from(value: &ManipulationStartedRoutedEventArgs) -> Self { 5779 ::windows::runtime::Interface::cast(value).unwrap() 5780 } 5781 } 5782 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for ManipulationStartedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>5783 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 5784 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 5785 } 5786 } 5787 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &ManipulationStartedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>5788 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 5789 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 5790 } 5791 } 5792 unsafe impl ::std::marker::Send for ManipulationStartedRoutedEventArgs {} 5793 unsafe impl ::std::marker::Sync for ManipulationStartedRoutedEventArgs {} 5794 #[repr(transparent)] 5795 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5796 pub struct ManipulationStartingEventHandler(::windows::runtime::IUnknown); 5797 impl ManipulationStartingEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationStartingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self5798 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationStartingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 5799 let com = ManipulationStartingEventHandler_box::<F> { 5800 vtable: &ManipulationStartingEventHandler_box::<F>::VTABLE, 5801 count: ::windows::runtime::RefCount::new(1), 5802 invoke, 5803 }; 5804 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 5805 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationStartingRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>5806 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, ManipulationStartingRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 5807 let this = self; 5808 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 5809 } 5810 } 5811 unsafe impl ::windows::runtime::RuntimeType for ManipulationStartingEventHandler { 5812 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({10d0b04e-bfe4-42cb-823c-3fecd8770ef8})"); 5813 } 5814 unsafe impl ::windows::runtime::Interface for ManipulationStartingEventHandler { 5815 type Vtable = ManipulationStartingEventHandler_abi; 5816 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(282112078, 49124, 17099, [130, 60, 63, 236, 216, 119, 14, 248]); 5817 } 5818 #[repr(C)] 5819 #[doc(hidden)] 5820 pub struct ManipulationStartingEventHandler_abi( 5821 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5822 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5823 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5824 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5825 ); 5826 #[repr(C)] 5827 struct ManipulationStartingEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationStartingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 5828 vtable: *const ManipulationStartingEventHandler_abi, 5829 invoke: F, 5830 count: ::windows::runtime::RefCount, 5831 } 5832 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<ManipulationStartingRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> ManipulationStartingEventHandler_box<F> { 5833 const VTABLE: ManipulationStartingEventHandler_abi = ManipulationStartingEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT5834 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 5835 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5836 *interface = if iid == &<ManipulationStartingEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 5837 &mut (*this).vtable as *mut _ as _ 5838 } else { 5839 ::std::ptr::null_mut() 5840 }; 5841 if (*interface).is_null() { 5842 ::windows::runtime::HRESULT(0x8000_4002) 5843 } else { 5844 (*this).count.add_ref(); 5845 ::windows::runtime::HRESULT(0) 5846 } 5847 } AddRef(this: ::windows::runtime::RawPtr) -> u325848 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 5849 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5850 (*this).count.add_ref() 5851 } Release(this: ::windows::runtime::RawPtr) -> u325852 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 5853 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5854 let remaining = (*this).count.release(); 5855 if remaining == 0 { 5856 Box::from_raw(this); 5857 } 5858 remaining 5859 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT5860 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 5861 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 5862 ((*this).invoke)( 5863 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 5864 &*(&e as *const <ManipulationStartingRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <ManipulationStartingRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 5865 ) 5866 .into() 5867 } 5868 } 5869 #[repr(transparent)] 5870 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5871 pub struct ManipulationStartingRoutedEventArgs(::windows::runtime::IInspectable); 5872 impl ManipulationStartingRoutedEventArgs { new() -> ::windows::runtime::Result<Self>5873 pub fn new() -> ::windows::runtime::Result<Self> { 5874 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 5875 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>5876 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 5877 static mut SHARED: ::windows::runtime::FactoryCache<ManipulationStartingRoutedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 5878 unsafe { SHARED.call(callback) } 5879 } Mode(&self) -> ::windows::runtime::Result<ManipulationModes>5880 pub fn Mode(&self) -> ::windows::runtime::Result<ManipulationModes> { 5881 let this = self; 5882 unsafe { 5883 let mut result__: ManipulationModes = ::std::mem::zeroed(); 5884 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ManipulationModes>(result__) 5885 } 5886 } SetMode(&self, value: ManipulationModes) -> ::windows::runtime::Result<()>5887 pub fn SetMode(&self, value: ManipulationModes) -> ::windows::runtime::Result<()> { 5888 let this = self; 5889 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 5890 } Container(&self) -> ::windows::runtime::Result<super::UIElement>5891 pub fn Container(&self) -> ::windows::runtime::Result<super::UIElement> { 5892 let this = self; 5893 unsafe { 5894 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5895 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::UIElement>(result__) 5896 } 5897 } SetContainer<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, value: Param0) -> ::windows::runtime::Result<()>5898 pub fn SetContainer<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 5899 let this = self; 5900 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 5901 } Pivot(&self) -> ::windows::runtime::Result<ManipulationPivot>5902 pub fn Pivot(&self) -> ::windows::runtime::Result<ManipulationPivot> { 5903 let this = self; 5904 unsafe { 5905 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5906 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ManipulationPivot>(result__) 5907 } 5908 } SetPivot<'a, Param0: ::windows::runtime::IntoParam<'a, ManipulationPivot>>(&self, value: Param0) -> ::windows::runtime::Result<()>5909 pub fn SetPivot<'a, Param0: ::windows::runtime::IntoParam<'a, ManipulationPivot>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 5910 let this = self; 5911 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 5912 } Handled(&self) -> ::windows::runtime::Result<bool>5913 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 5914 let this = self; 5915 unsafe { 5916 let mut result__: bool = ::std::mem::zeroed(); 5917 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 5918 } 5919 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>5920 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 5921 let this = self; 5922 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 5923 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>5924 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 5925 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 5926 unsafe { 5927 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 5928 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 5929 } 5930 } 5931 } 5932 unsafe impl ::windows::runtime::RuntimeType for ManipulationStartingRoutedEventArgs { 5933 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.ManipulationStartingRoutedEventArgs;{18d636b7-53a4-4c15-a498-f3a9ca212a42})"); 5934 } 5935 unsafe impl ::windows::runtime::Interface for ManipulationStartingRoutedEventArgs { 5936 type Vtable = IManipulationStartingRoutedEventArgs_abi; 5937 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(416691895, 21412, 19477, [164, 152, 243, 169, 202, 33, 42, 66]); 5938 } 5939 impl ::windows::runtime::RuntimeName for ManipulationStartingRoutedEventArgs { 5940 const NAME: &'static str = "Windows.UI.Xaml.Input.ManipulationStartingRoutedEventArgs"; 5941 } 5942 impl ::std::convert::From<ManipulationStartingRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: ManipulationStartingRoutedEventArgs) -> Self5943 fn from(value: ManipulationStartingRoutedEventArgs) -> Self { 5944 unsafe { ::std::mem::transmute(value) } 5945 } 5946 } 5947 impl ::std::convert::From<&ManipulationStartingRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &ManipulationStartingRoutedEventArgs) -> Self5948 fn from(value: &ManipulationStartingRoutedEventArgs) -> Self { 5949 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5950 } 5951 } 5952 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ManipulationStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5953 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5954 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5955 } 5956 } 5957 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ManipulationStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5958 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5959 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5960 } 5961 } 5962 impl ::std::convert::From<ManipulationStartingRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: ManipulationStartingRoutedEventArgs) -> Self5963 fn from(value: ManipulationStartingRoutedEventArgs) -> Self { 5964 value.0 5965 } 5966 } 5967 impl ::std::convert::From<&ManipulationStartingRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &ManipulationStartingRoutedEventArgs) -> Self5968 fn from(value: &ManipulationStartingRoutedEventArgs) -> Self { 5969 value.0.clone() 5970 } 5971 } 5972 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ManipulationStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5973 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5974 ::windows::runtime::Param::Owned(self.0) 5975 } 5976 } 5977 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ManipulationStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>5978 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 5979 ::windows::runtime::Param::Borrowed(&self.0) 5980 } 5981 } 5982 impl ::std::convert::From<ManipulationStartingRoutedEventArgs> for super::RoutedEventArgs { from(value: ManipulationStartingRoutedEventArgs) -> Self5983 fn from(value: ManipulationStartingRoutedEventArgs) -> Self { 5984 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 5985 } 5986 } 5987 impl ::std::convert::From<&ManipulationStartingRoutedEventArgs> for super::RoutedEventArgs { from(value: &ManipulationStartingRoutedEventArgs) -> Self5988 fn from(value: &ManipulationStartingRoutedEventArgs) -> Self { 5989 ::windows::runtime::Interface::cast(value).unwrap() 5990 } 5991 } 5992 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for ManipulationStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>5993 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 5994 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 5995 } 5996 } 5997 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &ManipulationStartingRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>5998 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 5999 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 6000 } 6001 } 6002 unsafe impl ::std::marker::Send for ManipulationStartingRoutedEventArgs {} 6003 unsafe impl ::std::marker::Sync for ManipulationStartingRoutedEventArgs {} 6004 #[repr(transparent)] 6005 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6006 pub struct NoFocusCandidateFoundEventArgs(::windows::runtime::IInspectable); 6007 impl NoFocusCandidateFoundEventArgs { Direction(&self) -> ::windows::runtime::Result<FocusNavigationDirection>6008 pub fn Direction(&self) -> ::windows::runtime::Result<FocusNavigationDirection> { 6009 let this = self; 6010 unsafe { 6011 let mut result__: FocusNavigationDirection = ::std::mem::zeroed(); 6012 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<FocusNavigationDirection>(result__) 6013 } 6014 } Handled(&self) -> ::windows::runtime::Result<bool>6015 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 6016 let this = self; 6017 unsafe { 6018 let mut result__: bool = ::std::mem::zeroed(); 6019 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 6020 } 6021 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>6022 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 6023 let this = self; 6024 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 6025 } InputDevice(&self) -> ::windows::runtime::Result<FocusInputDeviceKind>6026 pub fn InputDevice(&self) -> ::windows::runtime::Result<FocusInputDeviceKind> { 6027 let this = self; 6028 unsafe { 6029 let mut result__: FocusInputDeviceKind = ::std::mem::zeroed(); 6030 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<FocusInputDeviceKind>(result__) 6031 } 6032 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>6033 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 6034 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 6035 unsafe { 6036 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6037 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 6038 } 6039 } 6040 } 6041 unsafe impl ::windows::runtime::RuntimeType for NoFocusCandidateFoundEventArgs { 6042 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.NoFocusCandidateFoundEventArgs;{ec3601a7-1007-48f9-b6b3-ed0bea53937d})"); 6043 } 6044 unsafe impl ::windows::runtime::Interface for NoFocusCandidateFoundEventArgs { 6045 type Vtable = INoFocusCandidateFoundEventArgs_abi; 6046 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3962962343, 4103, 18681, [182, 179, 237, 11, 234, 83, 147, 125]); 6047 } 6048 impl ::windows::runtime::RuntimeName for NoFocusCandidateFoundEventArgs { 6049 const NAME: &'static str = "Windows.UI.Xaml.Input.NoFocusCandidateFoundEventArgs"; 6050 } 6051 impl ::std::convert::From<NoFocusCandidateFoundEventArgs> for ::windows::runtime::IUnknown { from(value: NoFocusCandidateFoundEventArgs) -> Self6052 fn from(value: NoFocusCandidateFoundEventArgs) -> Self { 6053 unsafe { ::std::mem::transmute(value) } 6054 } 6055 } 6056 impl ::std::convert::From<&NoFocusCandidateFoundEventArgs> for ::windows::runtime::IUnknown { from(value: &NoFocusCandidateFoundEventArgs) -> Self6057 fn from(value: &NoFocusCandidateFoundEventArgs) -> Self { 6058 ::std::convert::From::from(::std::clone::Clone::clone(value)) 6059 } 6060 } 6061 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for NoFocusCandidateFoundEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6062 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6063 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 6064 } 6065 } 6066 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &NoFocusCandidateFoundEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6067 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6068 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 6069 } 6070 } 6071 impl ::std::convert::From<NoFocusCandidateFoundEventArgs> for ::windows::runtime::IInspectable { from(value: NoFocusCandidateFoundEventArgs) -> Self6072 fn from(value: NoFocusCandidateFoundEventArgs) -> Self { 6073 value.0 6074 } 6075 } 6076 impl ::std::convert::From<&NoFocusCandidateFoundEventArgs> for ::windows::runtime::IInspectable { from(value: &NoFocusCandidateFoundEventArgs) -> Self6077 fn from(value: &NoFocusCandidateFoundEventArgs) -> Self { 6078 value.0.clone() 6079 } 6080 } 6081 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for NoFocusCandidateFoundEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6082 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6083 ::windows::runtime::Param::Owned(self.0) 6084 } 6085 } 6086 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a NoFocusCandidateFoundEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6087 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6088 ::windows::runtime::Param::Borrowed(&self.0) 6089 } 6090 } 6091 impl ::std::convert::From<NoFocusCandidateFoundEventArgs> for super::RoutedEventArgs { from(value: NoFocusCandidateFoundEventArgs) -> Self6092 fn from(value: NoFocusCandidateFoundEventArgs) -> Self { 6093 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 6094 } 6095 } 6096 impl ::std::convert::From<&NoFocusCandidateFoundEventArgs> for super::RoutedEventArgs { from(value: &NoFocusCandidateFoundEventArgs) -> Self6097 fn from(value: &NoFocusCandidateFoundEventArgs) -> Self { 6098 ::windows::runtime::Interface::cast(value).unwrap() 6099 } 6100 } 6101 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for NoFocusCandidateFoundEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>6102 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 6103 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 6104 } 6105 } 6106 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &NoFocusCandidateFoundEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>6107 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 6108 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 6109 } 6110 } 6111 unsafe impl ::std::marker::Send for NoFocusCandidateFoundEventArgs {} 6112 unsafe impl ::std::marker::Sync for NoFocusCandidateFoundEventArgs {} 6113 #[repr(transparent)] 6114 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6115 pub struct Pointer(::windows::runtime::IInspectable); 6116 impl Pointer { PointerId(&self) -> ::windows::runtime::Result<u32>6117 pub fn PointerId(&self) -> ::windows::runtime::Result<u32> { 6118 let this = self; 6119 unsafe { 6120 let mut result__: u32 = ::std::mem::zeroed(); 6121 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 6122 } 6123 } 6124 #[cfg(feature = "Devices_Input")] PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType>6125 pub fn PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType> { 6126 let this = self; 6127 unsafe { 6128 let mut result__: super::super::super::Devices::Input::PointerDeviceType = ::std::mem::zeroed(); 6129 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Devices::Input::PointerDeviceType>(result__) 6130 } 6131 } IsInContact(&self) -> ::windows::runtime::Result<bool>6132 pub fn IsInContact(&self) -> ::windows::runtime::Result<bool> { 6133 let this = self; 6134 unsafe { 6135 let mut result__: bool = ::std::mem::zeroed(); 6136 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 6137 } 6138 } IsInRange(&self) -> ::windows::runtime::Result<bool>6139 pub fn IsInRange(&self) -> ::windows::runtime::Result<bool> { 6140 let this = self; 6141 unsafe { 6142 let mut result__: bool = ::std::mem::zeroed(); 6143 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 6144 } 6145 } 6146 } 6147 unsafe impl ::windows::runtime::RuntimeType for Pointer { 6148 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.Pointer;{5ee8f39f-747d-4171-90e6-cd37a9dffb11})"); 6149 } 6150 unsafe impl ::windows::runtime::Interface for Pointer { 6151 type Vtable = IPointer_abi; 6152 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1592325023, 29821, 16753, [144, 230, 205, 55, 169, 223, 251, 17]); 6153 } 6154 impl ::windows::runtime::RuntimeName for Pointer { 6155 const NAME: &'static str = "Windows.UI.Xaml.Input.Pointer"; 6156 } 6157 impl ::std::convert::From<Pointer> for ::windows::runtime::IUnknown { from(value: Pointer) -> Self6158 fn from(value: Pointer) -> Self { 6159 unsafe { ::std::mem::transmute(value) } 6160 } 6161 } 6162 impl ::std::convert::From<&Pointer> for ::windows::runtime::IUnknown { from(value: &Pointer) -> Self6163 fn from(value: &Pointer) -> Self { 6164 ::std::convert::From::from(::std::clone::Clone::clone(value)) 6165 } 6166 } 6167 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for Pointer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6168 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6169 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 6170 } 6171 } 6172 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &Pointer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6173 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6174 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 6175 } 6176 } 6177 impl ::std::convert::From<Pointer> for ::windows::runtime::IInspectable { from(value: Pointer) -> Self6178 fn from(value: Pointer) -> Self { 6179 value.0 6180 } 6181 } 6182 impl ::std::convert::From<&Pointer> for ::windows::runtime::IInspectable { from(value: &Pointer) -> Self6183 fn from(value: &Pointer) -> Self { 6184 value.0.clone() 6185 } 6186 } 6187 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for Pointer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6188 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6189 ::windows::runtime::Param::Owned(self.0) 6190 } 6191 } 6192 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a Pointer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6193 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6194 ::windows::runtime::Param::Borrowed(&self.0) 6195 } 6196 } 6197 unsafe impl ::std::marker::Send for Pointer {} 6198 unsafe impl ::std::marker::Sync for Pointer {} 6199 #[repr(transparent)] 6200 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6201 pub struct PointerEventHandler(::windows::runtime::IUnknown); 6202 impl PointerEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<PointerRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self6203 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<PointerRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 6204 let com = PointerEventHandler_box::<F> { 6205 vtable: &PointerEventHandler_box::<F>::VTABLE, 6206 count: ::windows::runtime::RefCount::new(1), 6207 invoke, 6208 }; 6209 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 6210 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, PointerRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>6211 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, PointerRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 6212 let this = self; 6213 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 6214 } 6215 } 6216 unsafe impl ::windows::runtime::RuntimeType for PointerEventHandler { 6217 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({e4385929-c004-4bcf-8970-359486e39f88})"); 6218 } 6219 unsafe impl ::windows::runtime::Interface for PointerEventHandler { 6220 type Vtable = PointerEventHandler_abi; 6221 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3828898089, 49156, 19407, [137, 112, 53, 148, 134, 227, 159, 136]); 6222 } 6223 #[repr(C)] 6224 #[doc(hidden)] 6225 pub struct PointerEventHandler_abi( 6226 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 6227 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 6228 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 6229 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 6230 ); 6231 #[repr(C)] 6232 struct PointerEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<PointerRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 6233 vtable: *const PointerEventHandler_abi, 6234 invoke: F, 6235 count: ::windows::runtime::RefCount, 6236 } 6237 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<PointerRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> PointerEventHandler_box<F> { 6238 const VTABLE: PointerEventHandler_abi = PointerEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT6239 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 6240 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 6241 *interface = if iid == &<PointerEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 6242 &mut (*this).vtable as *mut _ as _ 6243 } else { 6244 ::std::ptr::null_mut() 6245 }; 6246 if (*interface).is_null() { 6247 ::windows::runtime::HRESULT(0x8000_4002) 6248 } else { 6249 (*this).count.add_ref(); 6250 ::windows::runtime::HRESULT(0) 6251 } 6252 } AddRef(this: ::windows::runtime::RawPtr) -> u326253 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 6254 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 6255 (*this).count.add_ref() 6256 } Release(this: ::windows::runtime::RawPtr) -> u326257 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 6258 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 6259 let remaining = (*this).count.release(); 6260 if remaining == 0 { 6261 Box::from_raw(this); 6262 } 6263 remaining 6264 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT6265 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 6266 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 6267 ((*this).invoke)( 6268 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 6269 &*(&e as *const <PointerRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <PointerRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 6270 ) 6271 .into() 6272 } 6273 } 6274 #[repr(transparent)] 6275 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6276 pub struct PointerRoutedEventArgs(::windows::runtime::IInspectable); 6277 impl PointerRoutedEventArgs { Pointer(&self) -> ::windows::runtime::Result<Pointer>6278 pub fn Pointer(&self) -> ::windows::runtime::Result<Pointer> { 6279 let this = self; 6280 unsafe { 6281 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6282 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<Pointer>(result__) 6283 } 6284 } 6285 #[cfg(feature = "System")] KeyModifiers(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKeyModifiers>6286 pub fn KeyModifiers(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKeyModifiers> { 6287 let this = self; 6288 unsafe { 6289 let mut result__: super::super::super::System::VirtualKeyModifiers = ::std::mem::zeroed(); 6290 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::System::VirtualKeyModifiers>(result__) 6291 } 6292 } Handled(&self) -> ::windows::runtime::Result<bool>6293 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 6294 let this = self; 6295 unsafe { 6296 let mut result__: bool = ::std::mem::zeroed(); 6297 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 6298 } 6299 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>6300 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 6301 let this = self; 6302 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 6303 } 6304 #[cfg(feature = "UI_Input")] GetCurrentPoint<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::Input::PointerPoint>6305 pub fn GetCurrentPoint<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::Input::PointerPoint> { 6306 let this = self; 6307 unsafe { 6308 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6309 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), relativeto.into_param().abi(), &mut result__).from_abi::<super::super::Input::PointerPoint>(result__) 6310 } 6311 } 6312 #[cfg(all(feature = "Foundation_Collections", feature = "UI_Input"))] GetIntermediatePoints<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVector<super::super::Input::PointerPoint>>6313 pub fn GetIntermediatePoints<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVector<super::super::Input::PointerPoint>> { 6314 let this = self; 6315 unsafe { 6316 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6317 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), relativeto.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVector<super::super::Input::PointerPoint>>(result__) 6318 } 6319 } IsGenerated(&self) -> ::windows::runtime::Result<bool>6320 pub fn IsGenerated(&self) -> ::windows::runtime::Result<bool> { 6321 let this = &::windows::runtime::Interface::cast::<IPointerRoutedEventArgs2>(self)?; 6322 unsafe { 6323 let mut result__: bool = ::std::mem::zeroed(); 6324 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 6325 } 6326 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>6327 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 6328 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 6329 unsafe { 6330 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6331 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 6332 } 6333 } 6334 } 6335 unsafe impl ::windows::runtime::RuntimeType for PointerRoutedEventArgs { 6336 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.PointerRoutedEventArgs;{da628f0a-9752-49e2-bde2-49eccab9194d})"); 6337 } 6338 unsafe impl ::windows::runtime::Interface for PointerRoutedEventArgs { 6339 type Vtable = IPointerRoutedEventArgs_abi; 6340 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3663892234, 38738, 18914, [189, 226, 73, 236, 202, 185, 25, 77]); 6341 } 6342 impl ::windows::runtime::RuntimeName for PointerRoutedEventArgs { 6343 const NAME: &'static str = "Windows.UI.Xaml.Input.PointerRoutedEventArgs"; 6344 } 6345 impl ::std::convert::From<PointerRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: PointerRoutedEventArgs) -> Self6346 fn from(value: PointerRoutedEventArgs) -> Self { 6347 unsafe { ::std::mem::transmute(value) } 6348 } 6349 } 6350 impl ::std::convert::From<&PointerRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &PointerRoutedEventArgs) -> Self6351 fn from(value: &PointerRoutedEventArgs) -> Self { 6352 ::std::convert::From::from(::std::clone::Clone::clone(value)) 6353 } 6354 } 6355 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PointerRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6356 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6357 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 6358 } 6359 } 6360 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PointerRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6361 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6362 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 6363 } 6364 } 6365 impl ::std::convert::From<PointerRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: PointerRoutedEventArgs) -> Self6366 fn from(value: PointerRoutedEventArgs) -> Self { 6367 value.0 6368 } 6369 } 6370 impl ::std::convert::From<&PointerRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &PointerRoutedEventArgs) -> Self6371 fn from(value: &PointerRoutedEventArgs) -> Self { 6372 value.0.clone() 6373 } 6374 } 6375 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PointerRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6376 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6377 ::windows::runtime::Param::Owned(self.0) 6378 } 6379 } 6380 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PointerRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6381 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6382 ::windows::runtime::Param::Borrowed(&self.0) 6383 } 6384 } 6385 impl ::std::convert::From<PointerRoutedEventArgs> for super::RoutedEventArgs { from(value: PointerRoutedEventArgs) -> Self6386 fn from(value: PointerRoutedEventArgs) -> Self { 6387 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 6388 } 6389 } 6390 impl ::std::convert::From<&PointerRoutedEventArgs> for super::RoutedEventArgs { from(value: &PointerRoutedEventArgs) -> Self6391 fn from(value: &PointerRoutedEventArgs) -> Self { 6392 ::windows::runtime::Interface::cast(value).unwrap() 6393 } 6394 } 6395 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for PointerRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>6396 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 6397 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 6398 } 6399 } 6400 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &PointerRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>6401 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 6402 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 6403 } 6404 } 6405 unsafe impl ::std::marker::Send for PointerRoutedEventArgs {} 6406 unsafe impl ::std::marker::Sync for PointerRoutedEventArgs {} 6407 #[repr(transparent)] 6408 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6409 pub struct ProcessKeyboardAcceleratorEventArgs(::windows::runtime::IInspectable); 6410 impl ProcessKeyboardAcceleratorEventArgs { 6411 #[cfg(feature = "System")] Key(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKey>6412 pub fn Key(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKey> { 6413 let this = self; 6414 unsafe { 6415 let mut result__: super::super::super::System::VirtualKey = ::std::mem::zeroed(); 6416 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::System::VirtualKey>(result__) 6417 } 6418 } 6419 #[cfg(feature = "System")] Modifiers(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKeyModifiers>6420 pub fn Modifiers(&self) -> ::windows::runtime::Result<super::super::super::System::VirtualKeyModifiers> { 6421 let this = self; 6422 unsafe { 6423 let mut result__: super::super::super::System::VirtualKeyModifiers = ::std::mem::zeroed(); 6424 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::System::VirtualKeyModifiers>(result__) 6425 } 6426 } Handled(&self) -> ::windows::runtime::Result<bool>6427 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 6428 let this = self; 6429 unsafe { 6430 let mut result__: bool = ::std::mem::zeroed(); 6431 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 6432 } 6433 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>6434 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 6435 let this = self; 6436 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 6437 } 6438 } 6439 unsafe impl ::windows::runtime::RuntimeType for ProcessKeyboardAcceleratorEventArgs { 6440 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.ProcessKeyboardAcceleratorEventArgs;{fb79c216-972b-440c-9b83-2b4198dcf09d})"); 6441 } 6442 unsafe impl ::windows::runtime::Interface for ProcessKeyboardAcceleratorEventArgs { 6443 type Vtable = IProcessKeyboardAcceleratorEventArgs_abi; 6444 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4219060758, 38699, 17420, [155, 131, 43, 65, 152, 220, 240, 157]); 6445 } 6446 impl ::windows::runtime::RuntimeName for ProcessKeyboardAcceleratorEventArgs { 6447 const NAME: &'static str = "Windows.UI.Xaml.Input.ProcessKeyboardAcceleratorEventArgs"; 6448 } 6449 impl ::std::convert::From<ProcessKeyboardAcceleratorEventArgs> for ::windows::runtime::IUnknown { from(value: ProcessKeyboardAcceleratorEventArgs) -> Self6450 fn from(value: ProcessKeyboardAcceleratorEventArgs) -> Self { 6451 unsafe { ::std::mem::transmute(value) } 6452 } 6453 } 6454 impl ::std::convert::From<&ProcessKeyboardAcceleratorEventArgs> for ::windows::runtime::IUnknown { from(value: &ProcessKeyboardAcceleratorEventArgs) -> Self6455 fn from(value: &ProcessKeyboardAcceleratorEventArgs) -> Self { 6456 ::std::convert::From::from(::std::clone::Clone::clone(value)) 6457 } 6458 } 6459 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ProcessKeyboardAcceleratorEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6460 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6461 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 6462 } 6463 } 6464 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ProcessKeyboardAcceleratorEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6465 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6466 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 6467 } 6468 } 6469 impl ::std::convert::From<ProcessKeyboardAcceleratorEventArgs> for ::windows::runtime::IInspectable { from(value: ProcessKeyboardAcceleratorEventArgs) -> Self6470 fn from(value: ProcessKeyboardAcceleratorEventArgs) -> Self { 6471 value.0 6472 } 6473 } 6474 impl ::std::convert::From<&ProcessKeyboardAcceleratorEventArgs> for ::windows::runtime::IInspectable { from(value: &ProcessKeyboardAcceleratorEventArgs) -> Self6475 fn from(value: &ProcessKeyboardAcceleratorEventArgs) -> Self { 6476 value.0.clone() 6477 } 6478 } 6479 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ProcessKeyboardAcceleratorEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6480 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6481 ::windows::runtime::Param::Owned(self.0) 6482 } 6483 } 6484 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ProcessKeyboardAcceleratorEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6485 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6486 ::windows::runtime::Param::Borrowed(&self.0) 6487 } 6488 } 6489 unsafe impl ::std::marker::Send for ProcessKeyboardAcceleratorEventArgs {} 6490 unsafe impl ::std::marker::Sync for ProcessKeyboardAcceleratorEventArgs {} 6491 #[repr(transparent)] 6492 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6493 pub struct RightTappedEventHandler(::windows::runtime::IUnknown); 6494 impl RightTappedEventHandler { new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<RightTappedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self6495 pub fn new<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<RightTappedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 6496 let com = RightTappedEventHandler_box::<F> { 6497 vtable: &RightTappedEventHandler_box::<F>::VTABLE, 6498 count: ::windows::runtime::RefCount::new(1), 6499 invoke, 6500 }; 6501 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 6502 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, RightTappedRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()>6503 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>, Param1: ::windows::runtime::IntoParam<'a, RightTappedRoutedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::runtime::Result<()> { 6504 let this = self; 6505 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } 6506 } 6507 } 6508 unsafe impl ::windows::runtime::RuntimeType for RightTappedEventHandler { 6509 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({2532a062-f447-4950-9c46-f1e34a2c2238})"); 6510 } 6511 unsafe impl ::windows::runtime::Interface for RightTappedEventHandler { 6512 type Vtable = RightTappedEventHandler_abi; 6513 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(624074850, 62535, 18768, [156, 70, 241, 227, 74, 44, 34, 56]); 6514 } 6515 #[repr(C)] 6516 #[doc(hidden)] 6517 pub struct RightTappedEventHandler_abi( 6518 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 6519 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 6520 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 6521 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 6522 ); 6523 #[repr(C)] 6524 struct RightTappedEventHandler_box<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<RightTappedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> { 6525 vtable: *const RightTappedEventHandler_abi, 6526 invoke: F, 6527 count: ::windows::runtime::RefCount, 6528 } 6529 impl<F: FnMut(&::std::option::Option<::windows::runtime::IInspectable>, &::std::option::Option<RightTappedRoutedEventArgs>) -> ::windows::runtime::Result<()> + 'static> RightTappedEventHandler_box<F> { 6530 const VTABLE: RightTappedEventHandler_abi = RightTappedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT6531 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 6532 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 6533 *interface = if iid == &<RightTappedEventHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 6534 &mut (*this).vtable as *mut _ as _ 6535 } else { 6536 ::std::ptr::null_mut() 6537 }; 6538 if (*interface).is_null() { 6539 ::windows::runtime::HRESULT(0x8000_4002) 6540 } else { 6541 (*this).count.add_ref(); 6542 ::windows::runtime::HRESULT(0) 6543 } 6544 } AddRef(this: ::windows::runtime::RawPtr) -> u326545 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 6546 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 6547 (*this).count.add_ref() 6548 } Release(this: ::windows::runtime::RawPtr) -> u326549 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 6550 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 6551 let remaining = (*this).count.release(); 6552 if remaining == 0 { 6553 Box::from_raw(this); 6554 } 6555 remaining 6556 } Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT6557 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, sender: ::windows::runtime::RawPtr, e: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 6558 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 6559 ((*this).invoke)( 6560 &*(&sender as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::Abi as *const <::windows::runtime::IInspectable as ::windows::runtime::Abi>::DefaultType), 6561 &*(&e as *const <RightTappedRoutedEventArgs as ::windows::runtime::Abi>::Abi as *const <RightTappedRoutedEventArgs as ::windows::runtime::Abi>::DefaultType), 6562 ) 6563 .into() 6564 } 6565 } 6566 #[repr(transparent)] 6567 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6568 pub struct RightTappedRoutedEventArgs(::windows::runtime::IInspectable); 6569 impl RightTappedRoutedEventArgs { new() -> ::windows::runtime::Result<Self>6570 pub fn new() -> ::windows::runtime::Result<Self> { 6571 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 6572 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>6573 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 6574 static mut SHARED: ::windows::runtime::FactoryCache<RightTappedRoutedEventArgs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 6575 unsafe { SHARED.call(callback) } 6576 } 6577 #[cfg(feature = "Devices_Input")] PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType>6578 pub fn PointerDeviceType(&self) -> ::windows::runtime::Result<super::super::super::Devices::Input::PointerDeviceType> { 6579 let this = self; 6580 unsafe { 6581 let mut result__: super::super::super::Devices::Input::PointerDeviceType = ::std::mem::zeroed(); 6582 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Devices::Input::PointerDeviceType>(result__) 6583 } 6584 } Handled(&self) -> ::windows::runtime::Result<bool>6585 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 6586 let this = self; 6587 unsafe { 6588 let mut result__: bool = ::std::mem::zeroed(); 6589 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 6590 } 6591 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>6592 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 6593 let this = self; 6594 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 6595 } 6596 #[cfg(feature = "Foundation")] GetPosition<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Point>6597 pub fn GetPosition<'a, Param0: ::windows::runtime::IntoParam<'a, super::UIElement>>(&self, relativeto: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::Point> { 6598 let this = self; 6599 unsafe { 6600 let mut result__: super::super::super::Foundation::Point = ::std::mem::zeroed(); 6601 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), relativeto.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::Point>(result__) 6602 } 6603 } OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>6604 pub fn OriginalSource(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 6605 let this = &::windows::runtime::Interface::cast::<super::IRoutedEventArgs>(self)?; 6606 unsafe { 6607 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6608 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 6609 } 6610 } 6611 } 6612 unsafe impl ::windows::runtime::RuntimeType for RightTappedRoutedEventArgs { 6613 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Input.RightTappedRoutedEventArgs;{6834869d-7bd5-4033-b237-172f79abe393})"); 6614 } 6615 unsafe impl ::windows::runtime::Interface for RightTappedRoutedEventArgs { 6616 type Vtable = IRightTappedRoutedEventArgs_abi; 6617 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1748272797, 31701, 16435, [178, 55, 23, 47, 121, 171, 227, 147]); 6618 } 6619 impl ::windows::runtime::RuntimeName for RightTappedRoutedEventArgs { 6620 const NAME: &'static str = "Windows.UI.Xaml.Input.RightTappedRoutedEventArgs"; 6621 } 6622 impl ::std::convert::From<RightTappedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: RightTappedRoutedEventArgs) -> Self6623 fn from(value: RightTappedRoutedEventArgs) -> Self { 6624 unsafe { ::std::mem::transmute(value) } 6625 } 6626 } 6627 impl ::std::convert::From<&RightTappedRoutedEventArgs> for ::windows::runtime::IUnknown { from(value: &RightTappedRoutedEventArgs) -> Self6628 fn from(value: &RightTappedRoutedEventArgs) -> Self { 6629 ::std::convert::From::from(::std::clone::Clone::clone(value)) 6630 } 6631 } 6632 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for RightTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6633 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6634 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 6635 } 6636 } 6637 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &RightTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>6638 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 6639 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 6640 } 6641 } 6642 impl ::std::convert::From<RightTappedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: RightTappedRoutedEventArgs) -> Self6643 fn from(value: RightTappedRoutedEventArgs) -> Self { 6644 value.0 6645 } 6646 } 6647 impl ::std::convert::From<&RightTappedRoutedEventArgs> for ::windows::runtime::IInspectable { from(value: &RightTappedRoutedEventArgs) -> Self6648 fn from(value: &RightTappedRoutedEventArgs) -> Self { 6649 value.0.clone() 6650 } 6651 } 6652 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for RightTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6653 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6654 ::windows::runtime::Param::Owned(self.0) 6655 } 6656 } 6657 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a RightTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>6658 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 6659 ::windows::runtime::Param::Borrowed(&self.0) 6660 } 6661 } 6662 impl ::std::convert::From<RightTappedRoutedEventArgs> for super::RoutedEventArgs { from(value: RightTappedRoutedEventArgs) -> Self6663 fn from(value: RightTappedRoutedEventArgs) -> Self { 6664 ::std::convert::Into::<super::RoutedEventArgs>::into(&value) 6665 } 6666 } 6667 impl ::std::convert::From<&RightTappedRoutedEventArgs> for super::RoutedEventArgs { from(value: &RightTappedRoutedEventArgs) -> Self6668 fn from(value: &RightTappedRoutedEventArgs) -> Self { 6669 ::windows::runtime::Interface::cast(value).unwrap() 6670 } 6671 } 6672 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for RightTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>6673 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 6674 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(self)) 6675 } 6676 } 6677 impl<'a> ::windows::runtime::IntoParam<'a, super::RoutedEventArgs> for &RightTappedRoutedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs>6678 fn into_param(self) -> ::windows::runtime::Param<'a, super::RoutedEventArgs> { 6679 ::windows::runtime::Param::Owned(::std::convert::Into::<super::RoutedEventArgs>::into(::std::clone::Clone::clone(self))) 6680 } 6681 } 6682 unsafe impl ::std::marker::Send for RightTappedRoutedEventArgs {} 6683 unsafe impl ::std::marker::Sync for RightTappedRoutedEventArgs {} 6684 #[repr(transparent)] 6685 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6686 pub struct StandardUICommand(::windows::runtime::IInspectable); 6687 impl StandardUICommand { Kind(&self) -> ::windows::runtime::Result<StandardUICommandKind>6688 pub fn Kind(&self) -> ::windows::runtime::Result<StandardUICommandKind> { 6689 let this = self; 6690 unsafe { 6691 let mut result__: StandardUICommandKind = ::std::mem::zeroed(); 6692 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<StandardUICommandKind>(result__) 6693 } 6694 } KindProperty() -> ::windows::runtime::Result<super::DependencyProperty>6695 pub fn KindProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 6696 Self::IStandardUICommandStatics(|this| unsafe { 6697 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6698 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 6699 }) 6700 } new() -> ::windows::runtime::Result<StandardUICommand>6701 pub fn new() -> ::windows::runtime::Result<StandardUICommand> { 6702 Self::IStandardUICommandFactory(|this| unsafe { 6703 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6704 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), ::std::ptr::null_mut(), &mut ::std::option::Option::<::windows::runtime::IInspectable>::None as *mut _ as _, &mut result__).from_abi::<StandardUICommand>(result__) 6705 }) 6706 } CreateInstanceWithKind(kind: StandardUICommandKind) -> ::windows::runtime::Result<StandardUICommand>6707 pub fn CreateInstanceWithKind(kind: StandardUICommandKind) -> ::windows::runtime::Result<StandardUICommand> { 6708 Self::IStandardUICommandFactory(|this| unsafe { 6709 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6710 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), kind, ::std::ptr::null_mut(), &mut ::std::option::Option::<::windows::runtime::IInspectable>::None as *mut _ as _, &mut result__).from_abi::<StandardUICommand>(result__) 6711 }) 6712 } SetKind(&self, value: StandardUICommandKind) -> ::windows::runtime::Result<()>6713 pub fn SetKind(&self, value: StandardUICommandKind) -> ::windows::runtime::Result<()> { 6714 let this = &::windows::runtime::Interface::cast::<IStandardUICommand2>(self)?; 6715 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), value).ok() } 6716 } GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>6717 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 6718 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 6719 unsafe { 6720 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6721 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 6722 } 6723 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>6724 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 6725 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 6726 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 6727 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>6728 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 6729 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 6730 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 6731 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>6732 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 6733 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 6734 unsafe { 6735 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6736 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 6737 } 6738 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>6739 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 6740 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 6741 unsafe { 6742 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6743 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 6744 } 6745 } 6746 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>6747 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 6748 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 6749 unsafe { 6750 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6751 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 6752 } 6753 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>6754 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 6755 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 6756 unsafe { 6757 let mut result__: i64 = ::std::mem::zeroed(); 6758 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 6759 } 6760 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>6761 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 6762 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 6763 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 6764 } 6765 #[cfg(feature = "Foundation")] CanExecuteChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>6766 pub fn CanExecuteChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 6767 let this = &::windows::runtime::Interface::cast::<ICommand>(self)?; 6768 unsafe { 6769 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 6770 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 6771 } 6772 } 6773 #[cfg(feature = "Foundation")] RemoveCanExecuteChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>6774 pub fn RemoveCanExecuteChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 6775 let this = &::windows::runtime::Interface::cast::<ICommand>(self)?; 6776 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 6777 } CanExecute<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, parameter: Param0) -> ::windows::runtime::Result<bool>6778 pub fn CanExecute<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, parameter: Param0) -> ::windows::runtime::Result<bool> { 6779 let this = &::windows::runtime::Interface::cast::<ICommand>(self)?; 6780 unsafe { 6781 let mut result__: bool = ::std::mem::zeroed(); 6782 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), parameter.into_param().abi(), &mut result__).from_abi::<bool>(result__) 6783 } 6784 } Execute<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, parameter: Param0) -> ::windows::runtime::Result<()>6785 pub fn Execute<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, parameter: Param0) -> ::windows::runtime::Result<()> { 6786 let this = &::windows::runtime::Interface::cast::<ICommand>(self)?; 6787 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), parameter.into_param().abi()).ok() } 6788 } Label(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>6789 pub fn Label(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 6790 let this = &::windows::runtime::Interface::cast::<IXamlUICommand>(self)?; 6791 unsafe { 6792 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 6793 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 6794 } 6795 } SetLabel<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>6796 pub fn SetLabel<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 6797 let this = &::windows::runtime::Interface::cast::<IXamlUICommand>(self)?; 6798 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 6799 } 6800 #[cfg(feature = "UI_Xaml_Controls")] IconSource(&self) -> ::windows::runtime::Result<super::Controls::IconSource>6801 pub fn IconSource(&self) -> ::windows::runtime::Result<super::Controls::IconSource> { 6802 let this = &::windows::runtime::Interface::cast::<IXamlUICommand>(self)?; 6803 unsafe { 6804 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6805 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Controls::IconSource>(result__) 6806 } 6807 } 6808 #[cfg(feature = "UI_Xaml_Controls")] SetIconSource<'a, Param0: ::windows::runtime::IntoParam<'a, super::Controls::IconSource>>(&self, value: Param0) -> ::windows::runtime::Result<()>6809 pub fn SetIconSource<'a, Param0: ::windows::runtime::IntoParam<'a, super::Controls::IconSource>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 6810 let this = &::windows::runtime::Interface::cast::<IXamlUICommand>(self)?; 6811 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 6812 } 6813 #[cfg(feature = "Foundation_Collections")] KeyboardAccelerators(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVector<KeyboardAccelerator>>6814 pub fn KeyboardAccelerators(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVector<KeyboardAccelerator>> { 6815 let this = &::windows::runtime::Interface::cast::<IXamlUICommand>(self)?; 6816 unsafe { 6817 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 6818 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVector<KeyboardAccelerator>>(result__) 6819 } 6820 } AccessKey(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>6821 pub fn AccessKey(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 6822 let this = &::windows::runtime::Interface::cast::<IXamlUICommand>(self)?; 6823 unsafe { 6824 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 6825 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 6826 } 6827 } SetAccessKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>6828