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 HolographicKeyboard(::windows::runtime::IInspectable); 5 impl HolographicKeyboard { 6 #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] SetPlacementOverride<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Perception::Spatial::SpatialCoordinateSystem>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, coordinatesystem: Param0, topcenterposition: Param1, orientation: Param2) -> ::windows::runtime::Result<()>7 pub fn SetPlacementOverride<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Perception::Spatial::SpatialCoordinateSystem>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>>(&self, coordinatesystem: Param0, topcenterposition: Param1, orientation: Param2) -> ::windows::runtime::Result<()> { 8 let this = self; 9 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), coordinatesystem.into_param().abi(), topcenterposition.into_param().abi(), orientation.into_param().abi()).ok() } 10 } 11 #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] SetPlacementOverrideWithMaxSize<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Perception::Spatial::SpatialCoordinateSystem>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>( &self, coordinatesystem: Param0, topcenterposition: Param1, orientation: Param2, maxsize: Param3, ) -> ::windows::runtime::Result<()>12 pub fn SetPlacementOverrideWithMaxSize<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Perception::Spatial::SpatialCoordinateSystem>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector3>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Quaternion>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::Numerics::Vector2>>( 13 &self, 14 coordinatesystem: Param0, 15 topcenterposition: Param1, 16 orientation: Param2, 17 maxsize: Param3, 18 ) -> ::windows::runtime::Result<()> { 19 let this = self; 20 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), coordinatesystem.into_param().abi(), topcenterposition.into_param().abi(), orientation.into_param().abi(), maxsize.into_param().abi()).ok() } 21 } ResetPlacementOverride(&self) -> ::windows::runtime::Result<()>22 pub fn ResetPlacementOverride(&self) -> ::windows::runtime::Result<()> { 23 let this = self; 24 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this)).ok() } 25 } GetDefault() -> ::windows::runtime::Result<HolographicKeyboard>26 pub fn GetDefault() -> ::windows::runtime::Result<HolographicKeyboard> { 27 Self::IHolographicKeyboardStatics(|this| unsafe { 28 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 29 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<HolographicKeyboard>(result__) 30 }) 31 } IHolographicKeyboardStatics<R, F: FnOnce(&IHolographicKeyboardStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>32 pub fn IHolographicKeyboardStatics<R, F: FnOnce(&IHolographicKeyboardStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 33 static mut SHARED: ::windows::runtime::FactoryCache<HolographicKeyboard, IHolographicKeyboardStatics> = ::windows::runtime::FactoryCache::new(); 34 unsafe { SHARED.call(callback) } 35 } 36 } 37 unsafe impl ::windows::runtime::RuntimeType for HolographicKeyboard { 38 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Holographic.HolographicKeyboard;{07dd0893-aa21-5e6f-a91b-11b2b3fd7be3})"); 39 } 40 unsafe impl ::windows::runtime::Interface for HolographicKeyboard { 41 type Vtable = IHolographicKeyboard_abi; 42 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(131926163, 43553, 24175, [169, 27, 17, 178, 179, 253, 123, 227]); 43 } 44 impl ::windows::runtime::RuntimeName for HolographicKeyboard { 45 const NAME: &'static str = "Windows.ApplicationModel.Holographic.HolographicKeyboard"; 46 } 47 impl ::std::convert::From<HolographicKeyboard> for ::windows::runtime::IUnknown { from(value: HolographicKeyboard) -> Self48 fn from(value: HolographicKeyboard) -> Self { 49 unsafe { ::std::mem::transmute(value) } 50 } 51 } 52 impl ::std::convert::From<&HolographicKeyboard> for ::windows::runtime::IUnknown { from(value: &HolographicKeyboard) -> Self53 fn from(value: &HolographicKeyboard) -> Self { 54 ::std::convert::From::from(::std::clone::Clone::clone(value)) 55 } 56 } 57 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for HolographicKeyboard { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>58 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 59 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 60 } 61 } 62 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &HolographicKeyboard { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>63 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 64 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 65 } 66 } 67 impl ::std::convert::From<HolographicKeyboard> for ::windows::runtime::IInspectable { from(value: HolographicKeyboard) -> Self68 fn from(value: HolographicKeyboard) -> Self { 69 value.0 70 } 71 } 72 impl ::std::convert::From<&HolographicKeyboard> for ::windows::runtime::IInspectable { from(value: &HolographicKeyboard) -> Self73 fn from(value: &HolographicKeyboard) -> Self { 74 value.0.clone() 75 } 76 } 77 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for HolographicKeyboard { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>78 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 79 ::windows::runtime::Param::Owned(self.0) 80 } 81 } 82 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a HolographicKeyboard { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>83 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 84 ::windows::runtime::Param::Borrowed(&self.0) 85 } 86 } 87 unsafe impl ::std::marker::Send for HolographicKeyboard {} 88 unsafe impl ::std::marker::Sync for HolographicKeyboard {} 89 #[repr(transparent)] 90 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 91 #[doc(hidden)] 92 pub struct IHolographicKeyboard(::windows::runtime::IInspectable); 93 unsafe impl ::windows::runtime::Interface for IHolographicKeyboard { 94 type Vtable = IHolographicKeyboard_abi; 95 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(131926163, 43553, 24175, [169, 27, 17, 178, 179, 253, 123, 227]); 96 } 97 #[repr(C)] 98 #[doc(hidden)] 99 pub struct IHolographicKeyboard_abi( 100 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 101 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 102 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 103 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 104 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 105 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 106 #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, coordinatesystem: ::windows::runtime::RawPtr, topcenterposition: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion) -> ::windows::runtime::HRESULT, 107 #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] usize, 108 #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, coordinatesystem: ::windows::runtime::RawPtr, topcenterposition: super::super::Foundation::Numerics::Vector3, orientation: super::super::Foundation::Numerics::Quaternion, maxsize: super::super::Foundation::Numerics::Vector2) -> ::windows::runtime::HRESULT, 109 #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] usize, 110 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 111 ); 112 #[repr(transparent)] 113 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 114 #[doc(hidden)] 115 pub struct IHolographicKeyboardStatics(::windows::runtime::IInspectable); 116 unsafe impl ::windows::runtime::Interface for IHolographicKeyboardStatics { 117 type Vtable = IHolographicKeyboardStatics_abi; 118 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3061237284, 25559, 22735, [176, 107, 8, 186, 160, 50, 162, 63]); 119 } 120 #[repr(C)] 121 #[doc(hidden)] 122 pub struct IHolographicKeyboardStatics_abi( 123 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 124 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 125 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 126 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 127 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 128 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 129 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 130 ); 131