]>
Commit | Line | Data |
---|---|---|
353b0b11 FG |
1 | #[doc(hidden)] |
2 | #[repr(transparent)] | |
3 | pub struct IHolographicApplicationPreviewStatics(::windows::core::IUnknown); | |
4 | unsafe impl ::windows::core::Interface for IHolographicApplicationPreviewStatics { | |
5 | type Vtable = IHolographicApplicationPreviewStatics_Vtbl; | |
6 | } | |
7 | impl ::core::clone::Clone for IHolographicApplicationPreviewStatics { | |
8 | fn clone(&self) -> Self { | |
9 | Self(self.0.clone()) | |
10 | } | |
11 | } | |
12 | unsafe impl ::windows::core::ComInterface for IHolographicApplicationPreviewStatics { | |
13 | const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfe038691_2a3a_45a9_a208_7bed691919f3); | |
14 | } | |
15 | #[repr(C)] | |
16 | #[doc(hidden)] | |
17 | pub struct IHolographicApplicationPreviewStatics_Vtbl { | |
18 | pub base__: ::windows::core::IInspectable_Vtbl, | |
19 | pub IsCurrentViewPresentedOnHolographicDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, | |
20 | #[cfg(feature = "ApplicationModel_Activation")] | |
21 | pub IsHolographicActivation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activatedeventargs: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, | |
22 | #[cfg(not(feature = "ApplicationModel_Activation"))] | |
23 | IsHolographicActivation: usize, | |
24 | } | |
25 | #[doc(hidden)] | |
26 | #[cfg(feature = "deprecated")] | |
27 | #[repr(transparent)] | |
28 | pub struct IHolographicKeyboardPlacementOverridePreview(::windows::core::IUnknown); | |
29 | #[cfg(feature = "deprecated")] | |
30 | unsafe impl ::windows::core::Interface for IHolographicKeyboardPlacementOverridePreview { | |
31 | type Vtable = IHolographicKeyboardPlacementOverridePreview_Vtbl; | |
32 | } | |
33 | #[cfg(feature = "deprecated")] | |
34 | impl ::core::clone::Clone for IHolographicKeyboardPlacementOverridePreview { | |
35 | fn clone(&self) -> Self { | |
36 | Self(self.0.clone()) | |
37 | } | |
38 | } | |
39 | #[cfg(feature = "deprecated")] | |
40 | unsafe impl ::windows::core::ComInterface for IHolographicKeyboardPlacementOverridePreview { | |
41 | const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc8a8ce3a_dfde_5a14_8d5f_182c526dd9c4); | |
42 | } | |
43 | #[cfg(feature = "deprecated")] | |
44 | #[repr(C)] | |
45 | #[doc(hidden)] | |
46 | pub struct IHolographicKeyboardPlacementOverridePreview_Vtbl { | |
47 | pub base__: ::windows::core::IInspectable_Vtbl, | |
48 | #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] | |
49 | pub SetPlacementOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, coordinatesystem: *mut ::core::ffi::c_void, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3) -> ::windows::core::HRESULT, | |
50 | #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated")))] | |
51 | SetPlacementOverride: usize, | |
52 | #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] | |
53 | pub SetPlacementOverrideWithMaxSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, coordinatesystem: *mut ::core::ffi::c_void, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3, maxsize: super::super::super::Foundation::Numerics::Vector2) -> ::windows::core::HRESULT, | |
54 | #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated")))] | |
55 | SetPlacementOverrideWithMaxSize: usize, | |
56 | #[cfg(feature = "deprecated")] | |
57 | pub ResetPlacementOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, | |
58 | #[cfg(not(feature = "deprecated"))] | |
59 | ResetPlacementOverride: usize, | |
60 | } | |
61 | #[doc(hidden)] | |
62 | #[cfg(feature = "deprecated")] | |
63 | #[repr(transparent)] | |
64 | pub struct IHolographicKeyboardPlacementOverridePreviewStatics(::windows::core::IUnknown); | |
65 | #[cfg(feature = "deprecated")] | |
66 | unsafe impl ::windows::core::Interface for IHolographicKeyboardPlacementOverridePreviewStatics { | |
67 | type Vtable = IHolographicKeyboardPlacementOverridePreviewStatics_Vtbl; | |
68 | } | |
69 | #[cfg(feature = "deprecated")] | |
70 | impl ::core::clone::Clone for IHolographicKeyboardPlacementOverridePreviewStatics { | |
71 | fn clone(&self) -> Self { | |
72 | Self(self.0.clone()) | |
73 | } | |
74 | } | |
75 | #[cfg(feature = "deprecated")] | |
76 | unsafe impl ::windows::core::ComInterface for IHolographicKeyboardPlacementOverridePreviewStatics { | |
77 | const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x202e6039_1ff6_5a06_aac4_a5e24fa3ec4b); | |
78 | } | |
79 | #[cfg(feature = "deprecated")] | |
80 | #[repr(C)] | |
81 | #[doc(hidden)] | |
82 | pub struct IHolographicKeyboardPlacementOverridePreviewStatics_Vtbl { | |
83 | pub base__: ::windows::core::IInspectable_Vtbl, | |
84 | #[cfg(feature = "deprecated")] | |
85 | pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, | |
86 | #[cfg(not(feature = "deprecated"))] | |
87 | GetForCurrentView: usize, | |
88 | } | |
89 | #[doc = "*Required features: `\"ApplicationModel_Preview_Holographic\"`*"] | |
90 | pub struct HolographicApplicationPreview; | |
91 | impl HolographicApplicationPreview { | |
92 | pub fn IsCurrentViewPresentedOnHolographicDisplay() -> ::windows::core::Result<bool> { | |
93 | Self::IHolographicApplicationPreviewStatics(|this| unsafe { | |
94 | let mut result__ = ::windows::core::zeroed::<bool>(); | |
95 | (::windows::core::Interface::vtable(this).IsCurrentViewPresentedOnHolographicDisplay)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) | |
96 | }) | |
97 | } | |
98 | #[doc = "*Required features: `\"ApplicationModel_Activation\"`*"] | |
99 | #[cfg(feature = "ApplicationModel_Activation")] | |
100 | pub fn IsHolographicActivation<P0>(activatedeventargs: P0) -> ::windows::core::Result<bool> | |
101 | where | |
102 | P0: ::windows::core::TryIntoParam<super::super::Activation::IActivatedEventArgs>, | |
103 | { | |
104 | Self::IHolographicApplicationPreviewStatics(|this| unsafe { | |
105 | let mut result__ = ::windows::core::zeroed::<bool>(); | |
106 | (::windows::core::Interface::vtable(this).IsHolographicActivation)(::windows::core::Interface::as_raw(this), activatedeventargs.try_into_param()?.abi(), &mut result__).from_abi(result__) | |
107 | }) | |
108 | } | |
109 | #[doc(hidden)] | |
110 | pub fn IHolographicApplicationPreviewStatics<R, F: FnOnce(&IHolographicApplicationPreviewStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { | |
111 | static SHARED: ::windows::imp::FactoryCache<HolographicApplicationPreview, IHolographicApplicationPreviewStatics> = ::windows::imp::FactoryCache::new(); | |
112 | SHARED.call(callback) | |
113 | } | |
114 | } | |
115 | impl ::windows::core::RuntimeName for HolographicApplicationPreview { | |
116 | const NAME: &'static str = "Windows.ApplicationModel.Preview.Holographic.HolographicApplicationPreview"; | |
117 | } | |
118 | #[doc = "*Required features: `\"ApplicationModel_Preview_Holographic\"`, `\"deprecated\"`*"] | |
119 | #[cfg(feature = "deprecated")] | |
120 | #[repr(transparent)] | |
121 | pub struct HolographicKeyboardPlacementOverridePreview(::windows::core::IUnknown); | |
122 | #[cfg(feature = "deprecated")] | |
123 | impl HolographicKeyboardPlacementOverridePreview { | |
124 | #[doc = "*Required features: `\"Foundation_Numerics\"`, `\"Perception_Spatial\"`, `\"deprecated\"`*"] | |
125 | #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] | |
126 | pub fn SetPlacementOverride(&self, coordinatesystem: &super::super::super::Perception::Spatial::SpatialCoordinateSystem, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3) -> ::windows::core::Result<()> { | |
127 | let this = self; | |
128 | unsafe { (::windows::core::Interface::vtable(this).SetPlacementOverride)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(coordinatesystem), topcenterposition, normal).ok() } | |
129 | } | |
130 | #[doc = "*Required features: `\"Foundation_Numerics\"`, `\"Perception_Spatial\"`, `\"deprecated\"`*"] | |
131 | #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] | |
132 | pub fn SetPlacementOverrideWithMaxSize(&self, coordinatesystem: &super::super::super::Perception::Spatial::SpatialCoordinateSystem, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3, maxsize: super::super::super::Foundation::Numerics::Vector2) -> ::windows::core::Result<()> { | |
133 | let this = self; | |
134 | unsafe { (::windows::core::Interface::vtable(this).SetPlacementOverrideWithMaxSize)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(coordinatesystem), topcenterposition, normal, maxsize).ok() } | |
135 | } | |
136 | #[doc = "*Required features: `\"deprecated\"`*"] | |
137 | #[cfg(feature = "deprecated")] | |
138 | pub fn ResetPlacementOverride(&self) -> ::windows::core::Result<()> { | |
139 | let this = self; | |
140 | unsafe { (::windows::core::Interface::vtable(this).ResetPlacementOverride)(::windows::core::Interface::as_raw(this)).ok() } | |
141 | } | |
142 | #[doc = "*Required features: `\"deprecated\"`*"] | |
143 | #[cfg(feature = "deprecated")] | |
144 | pub fn GetForCurrentView() -> ::windows::core::Result<HolographicKeyboardPlacementOverridePreview> { | |
145 | Self::IHolographicKeyboardPlacementOverridePreviewStatics(|this| unsafe { | |
146 | let mut result__ = ::windows::core::zeroed::<HolographicKeyboardPlacementOverridePreview>(); | |
147 | (::windows::core::Interface::vtable(this).GetForCurrentView)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) | |
148 | }) | |
149 | } | |
150 | #[doc(hidden)] | |
151 | #[cfg(feature = "deprecated")] | |
152 | pub fn IHolographicKeyboardPlacementOverridePreviewStatics<R, F: FnOnce(&IHolographicKeyboardPlacementOverridePreviewStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { | |
153 | static SHARED: ::windows::imp::FactoryCache<HolographicKeyboardPlacementOverridePreview, IHolographicKeyboardPlacementOverridePreviewStatics> = ::windows::imp::FactoryCache::new(); | |
154 | SHARED.call(callback) | |
155 | } | |
156 | } | |
157 | #[cfg(feature = "deprecated")] | |
158 | impl ::core::cmp::PartialEq for HolographicKeyboardPlacementOverridePreview { | |
159 | fn eq(&self, other: &Self) -> bool { | |
160 | self.0 == other.0 | |
161 | } | |
162 | } | |
163 | #[cfg(feature = "deprecated")] | |
164 | impl ::core::cmp::Eq for HolographicKeyboardPlacementOverridePreview {} | |
165 | #[cfg(feature = "deprecated")] | |
166 | impl ::core::fmt::Debug for HolographicKeyboardPlacementOverridePreview { | |
167 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { | |
168 | f.debug_tuple("HolographicKeyboardPlacementOverridePreview").field(&self.0).finish() | |
169 | } | |
170 | } | |
171 | #[cfg(feature = "deprecated")] | |
172 | impl ::windows::core::RuntimeType for HolographicKeyboardPlacementOverridePreview { | |
173 | const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Preview.Holographic.HolographicKeyboardPlacementOverridePreview;{c8a8ce3a-dfde-5a14-8d5f-182c526dd9c4})"); | |
174 | } | |
175 | #[cfg(feature = "deprecated")] | |
176 | impl ::core::clone::Clone for HolographicKeyboardPlacementOverridePreview { | |
177 | fn clone(&self) -> Self { | |
178 | Self(self.0.clone()) | |
179 | } | |
180 | } | |
181 | #[cfg(feature = "deprecated")] | |
182 | unsafe impl ::windows::core::Interface for HolographicKeyboardPlacementOverridePreview { | |
183 | type Vtable = IHolographicKeyboardPlacementOverridePreview_Vtbl; | |
184 | } | |
185 | #[cfg(feature = "deprecated")] | |
186 | unsafe impl ::windows::core::ComInterface for HolographicKeyboardPlacementOverridePreview { | |
187 | const IID: ::windows::core::GUID = <IHolographicKeyboardPlacementOverridePreview as ::windows::core::ComInterface>::IID; | |
188 | } | |
189 | #[cfg(feature = "deprecated")] | |
190 | impl ::windows::core::RuntimeName for HolographicKeyboardPlacementOverridePreview { | |
191 | const NAME: &'static str = "Windows.ApplicationModel.Preview.Holographic.HolographicKeyboardPlacementOverridePreview"; | |
192 | } | |
193 | #[cfg(feature = "deprecated")] | |
194 | ::windows::imp::interface_hierarchy!(HolographicKeyboardPlacementOverridePreview, ::windows::core::IUnknown, ::windows::core::IInspectable); | |
195 | #[cfg(feature = "deprecated")] | |
196 | unsafe impl ::core::marker::Send for HolographicKeyboardPlacementOverridePreview {} | |
197 | #[cfg(feature = "deprecated")] | |
198 | unsafe impl ::core::marker::Sync for HolographicKeyboardPlacementOverridePreview {} | |
199 | #[cfg(feature = "implement")] | |
200 | ::core::include!("impl.rs"); |