]> git.proxmox.com Git - rustc.git/blame - vendor/windows/src/Windows/Win32/System/WinRT/CoreInputView/mod.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / vendor / windows / src / Windows / Win32 / System / WinRT / CoreInputView / mod.rs
CommitLineData
353b0b11
FG
1#[doc = "*Required features: `\"Win32_System_WinRT_CoreInputView\"`*"]
2#[repr(transparent)]
3pub struct ICoreFrameworkInputViewInterop(::windows::core::IUnknown);
4impl ICoreFrameworkInputViewInterop {
5 #[doc = "*Required features: `\"Win32_Foundation\"`*"]
6 #[cfg(feature = "Win32_Foundation")]
7 pub unsafe fn GetForWindow<P0, T>(&self, appwindow: P0) -> ::windows::core::Result<T>
8 where
9 P0: ::windows::core::IntoParam<super::super::super::Foundation::HWND>,
10 T: ::windows::core::ComInterface,
11 {
12 let mut result__ = ::std::ptr::null_mut();
13 (::windows::core::Interface::vtable(self).GetForWindow)(::windows::core::Interface::as_raw(self), appwindow.into_param().abi(), &<T as ::windows::core::ComInterface>::IID, &mut result__).from_abi(result__)
14 }
15}
16::windows::imp::interface_hierarchy!(ICoreFrameworkInputViewInterop, ::windows::core::IUnknown, ::windows::core::IInspectable);
17impl ::core::cmp::PartialEq for ICoreFrameworkInputViewInterop {
18 fn eq(&self, other: &Self) -> bool {
19 self.0 == other.0
20 }
21}
22impl ::core::cmp::Eq for ICoreFrameworkInputViewInterop {}
23impl ::core::fmt::Debug for ICoreFrameworkInputViewInterop {
24 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
25 f.debug_tuple("ICoreFrameworkInputViewInterop").field(&self.0).finish()
26 }
27}
28unsafe impl ::windows::core::Interface for ICoreFrameworkInputViewInterop {
29 type Vtable = ICoreFrameworkInputViewInterop_Vtbl;
30}
31impl ::core::clone::Clone for ICoreFrameworkInputViewInterop {
32 fn clone(&self) -> Self {
33 Self(self.0.clone())
34 }
35}
36unsafe impl ::windows::core::ComInterface for ICoreFrameworkInputViewInterop {
37 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0e3da342_b11c_484b_9c1c_be0d61c2f6c5);
38}
39#[repr(C)]
40#[doc(hidden)]
41pub struct ICoreFrameworkInputViewInterop_Vtbl {
42 pub base__: ::windows::core::IInspectable_Vtbl,
43 #[cfg(feature = "Win32_Foundation")]
44 pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const ::windows::core::GUID, coreframeworkinputview: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
45 #[cfg(not(feature = "Win32_Foundation"))]
46 GetForWindow: usize,
47}
48#[cfg(feature = "implement")]
49::core::include!("impl.rs");