Debian Codegraph @

mingw-w64-headers/include/windows.ui.viewmanagement.core.idl

raw
1 /*
2 * Copyright 2025 Zhiyi Zhang for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
22
23 import "inspectable.idl";
24 import "asyncinfo.idl";
25 import "eventtoken.idl";
26 import "windowscontracts.idl";
27 import "windows.foundation.idl";
28 import "windows.ui.idl";
29
30 namespace Windows.UI.ViewManagement.Core
31 {
32 typedef enum CoreInputViewKind CoreInputViewKind;
33 typedef enum CoreInputViewOcclusionKind CoreInputViewOcclusionKind;
34 typedef enum CoreInputViewXYFocusTransferDirection CoreInputViewXYFocusTransferDirection;
35
36 interface ICoreInputView;
37 interface ICoreInputView2;
38 interface ICoreInputView3;
39 interface ICoreInputView4;
40 interface ICoreInputViewHidingEventArgs;
41 interface ICoreInputViewOcclusion;
42 interface ICoreInputViewOcclusionsChangedEventArgs;
43 interface ICoreInputViewShowingEventArgs;
44 interface ICoreInputViewStatics;
45 interface ICoreInputViewStatics2;
46 interface ICoreInputViewTransferringXYFocusEventArgs;
47
48 runtimeclass CoreInputView;
49 runtimeclass CoreInputViewHidingEventArgs;
50 runtimeclass CoreInputViewOcclusion;
51 runtimeclass CoreInputViewOcclusionsChangedEventArgs;
52 runtimeclass CoreInputViewShowingEventArgs;
53 runtimeclass CoreInputViewTransferringXYFocusEventArgs;
54
55 declare
56 {
57 interface Windows.Foundation.Collections.IIterable<Windows.UI.ViewManagement.Core.CoreInputViewOcclusion *>;
58 interface Windows.Foundation.Collections.IIterator<Windows.UI.ViewManagement.Core.CoreInputViewOcclusion *>;
59 interface Windows.Foundation.Collections.IVector<Windows.UI.ViewManagement.Core.CoreInputViewOcclusion *>;
60 interface Windows.Foundation.Collections.IVectorView<Windows.UI.ViewManagement.Core.CoreInputViewOcclusion *>;
61 interface Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, IInspectable *>;
62 interface Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, Windows.UI.ViewManagement.Core.CoreInputViewHidingEventArgs *>;
63 interface Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, Windows.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs *>;
64 interface Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, Windows.UI.ViewManagement.Core.CoreInputViewShowingEventArgs *>;
65 interface Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs *>;
66 }
67
68 [
69 contract(Windows.Foundation.UniversalApiContract, 7.0)
70 ]
71 enum CoreInputViewKind
72 {
73 Default = 0,
74 Keyboard = 1,
75 Handwriting = 2,
76 Emoji = 3,
77 [contract(Windows.Foundation.UniversalApiContract, 10.0)] Symbols = 4
78 };
79
80 [
81 contract(Windows.Foundation.UniversalApiContract, 5.0)
82 ]
83 enum CoreInputViewOcclusionKind
84 {
85 Docked = 0,
86 Floating = 1,
87 Overlay = 2
88 };
89
90 [
91 contract(Windows.Foundation.UniversalApiContract, 6.0)
92 ]
93 enum CoreInputViewXYFocusTransferDirection
94 {
95 Up = 0,
96 Right = 1,
97 Down = 2,
98 Left = 3
99 };
100
101 [
102 contract(Windows.Foundation.UniversalApiContract, 5.0),
103 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputView),
104 uuid(c770cd7a-7001-4c32-bf94-25c1f554cbf1)
105 ]
106 interface ICoreInputView : IInspectable
107 {
108 [eventadd] HRESULT OcclusionsChanged([in] Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, Windows.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
109 [eventremove] HRESULT OcclusionsChanged([in] EventRegistrationToken token);
110 HRESULT GetCoreInputViewOcclusions([out, retval] Windows.Foundation.Collections.IVectorView<Windows.UI.ViewManagement.Core.CoreInputViewOcclusion *> **result);
111 HRESULT TryShowPrimaryView([out, retval] boolean *result);
112 HRESULT TryHidePrimaryView([out, retval] boolean *result);
113 }
114
115 [
116 contract(Windows.Foundation.UniversalApiContract, 6.0),
117 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputView),
118 uuid(0ed726c1-e09a-4ae8-aedf-dfa4857d1a01)
119 ]
120 interface ICoreInputView2 : IInspectable
121 {
122 [eventadd] HRESULT XYFocusTransferringFromPrimaryView([in] Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
123 [eventremove] HRESULT XYFocusTransferringFromPrimaryView([in] EventRegistrationToken token);
124 [eventadd] HRESULT XYFocusTransferredToPrimaryView([in] Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, IInspectable *> *handler, [out, retval] EventRegistrationToken *token);
125 [eventremove] HRESULT XYFocusTransferredToPrimaryView([in] EventRegistrationToken token);
126 HRESULT TryTransferXYFocusToPrimaryView([in] Windows.Foundation.Rect origin, [in] Windows.UI.ViewManagement.Core.CoreInputViewXYFocusTransferDirection direction, [out, retval] boolean *result);
127 }
128
129 [
130 contract(Windows.Foundation.UniversalApiContract, 7.0),
131 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputView),
132 uuid(bc941653-3ab9-4849-8f58-46e7f0353cfc)
133 ]
134 interface ICoreInputView3 : IInspectable
135 {
136 [overload("TryShow")] HRESULT TryShow([out, retval] boolean *result);
137 [overload("TryShow")] HRESULT TryShowWithKind([in] Windows.UI.ViewManagement.Core.CoreInputViewKind type, [out, retval] boolean *result);
138 HRESULT TryHide([out, retval] boolean *result);
139 }
140
141 [
142 contract(Windows.Foundation.UniversalApiContract, 10.0),
143 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputView),
144 uuid(002863d6-d9ef-57eb-8cef-77f6ce1b7ee7)
145 ]
146 interface ICoreInputView4 : IInspectable
147 {
148 [eventadd] HRESULT PrimaryViewShowing([in] Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, Windows.UI.ViewManagement.Core.CoreInputViewShowingEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
149 [eventremove] HRESULT PrimaryViewShowing([in] EventRegistrationToken token);
150 [eventadd] HRESULT PrimaryViewHiding([in] Windows.Foundation.TypedEventHandler<Windows.UI.ViewManagement.Core.CoreInputView *, Windows.UI.ViewManagement.Core.CoreInputViewHidingEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
151 [eventremove] HRESULT PrimaryViewHiding([in] EventRegistrationToken token);
152 }
153
154 [
155 contract(Windows.Foundation.UniversalApiContract, 10.0),
156 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputViewHidingEventArgs),
157 uuid(eada47bd-bac5-5336-848d-41083584daad)
158 ]
159 interface ICoreInputViewHidingEventArgs : IInspectable
160 {
161 HRESULT TryCancel([out, retval] boolean *result);
162 }
163
164 [
165 contract(Windows.Foundation.UniversalApiContract, 5.0),
166 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputViewOcclusion),
167 uuid(cc36ce06-3865-4177-b5f5-8b65e0b9ce84)
168 ]
169 interface ICoreInputViewOcclusion : IInspectable
170 {
171 [propget] HRESULT OccludingRect([out, retval] Windows.Foundation.Rect *rect);
172 [propget] HRESULT OcclusionKind([out, retval] Windows.UI.ViewManagement.Core.CoreInputViewOcclusionKind *kind);
173 }
174
175 [
176 contract(Windows.Foundation.UniversalApiContract, 5.0),
177 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs),
178 uuid(be1027e8-b3ee-4df7-9554-89cdc66082c2)
179 ]
180 interface ICoreInputViewOcclusionsChangedEventArgs : IInspectable
181 {
182 [propget] HRESULT Occlusions([out, retval] Windows.Foundation.Collections.IVectorView<Windows.UI.ViewManagement.Core.CoreInputViewOcclusion *> **value);
183 [propget] HRESULT Handled([out, retval] boolean *value);
184 [propput] HRESULT Handled([in] boolean value);
185 }
186
187 [
188 contract(Windows.Foundation.UniversalApiContract, 10.0),
189 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputViewShowingEventArgs),
190 uuid(ca52261b-fb9e-5daf-a98c-262b8b76af50)
191 ]
192 interface ICoreInputViewShowingEventArgs : IInspectable
193 {
194 HRESULT TryCancel([out, retval] boolean *result);
195 }
196
197 [
198 contract(Windows.Foundation.UniversalApiContract, 5.0),
199 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputView),
200 uuid(7d9b97cd-edbe-49cf-a54f-337de052907f)
201 ]
202 interface ICoreInputViewStatics : IInspectable
203 {
204 HRESULT GetForCurrentView([out, retval] Windows.UI.ViewManagement.Core.CoreInputView **result);
205 }
206
207 [
208 contract(Windows.Foundation.UniversalApiContract, 8.0),
209 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputView),
210 uuid(7ebc0862-d049-4e52-87b0-1e90e98c49ed)
211 ]
212 interface ICoreInputViewStatics2 : IInspectable
213 {
214 HRESULT GetForUIContext([in] Windows.UI.UIContext *context, [out, retval] Windows.UI.ViewManagement.Core.CoreInputView **result);
215 }
216
217 [
218 contract(Windows.Foundation.UniversalApiContract, 6.0),
219 exclusiveto(Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs),
220 uuid(04de169f-ba02-4850-8b55-d82d03ba6d7f)
221 ]
222 interface ICoreInputViewTransferringXYFocusEventArgs : IInspectable
223 {
224 [propget] HRESULT Origin([out, retval] Windows.Foundation.Rect *value);
225 [propget] HRESULT Direction([out, retval] Windows.UI.ViewManagement.Core.CoreInputViewXYFocusTransferDirection *value);
226 [propput] HRESULT TransferHandled([in] boolean value);
227 [propget] HRESULT TransferHandled([out, retval] boolean *value);
228 [propput] HRESULT KeepPrimaryViewVisible([in] boolean value);
229 [propget] HRESULT KeepPrimaryViewVisible([out, retval] boolean *value);
230 }
231
232 [
233 contract(Windows.Foundation.UniversalApiContract, 5.0),
234 marshaling_behavior(agile),
235 static(Windows.UI.ViewManagement.Core.ICoreInputViewStatics, Windows.Foundation.UniversalApiContract, 5.0),
236 static(Windows.UI.ViewManagement.Core.ICoreInputViewStatics2, Windows.Foundation.UniversalApiContract, 8.0),
237 threading(both)
238 ]
239 runtimeclass CoreInputView
240 {
241 [default] interface Windows.UI.ViewManagement.Core.ICoreInputView;
242 [contract(Windows.Foundation.UniversalApiContract, 6.0)] interface Windows.UI.ViewManagement.Core.ICoreInputView2;
243 [contract(Windows.Foundation.UniversalApiContract, 7.0)] interface Windows.UI.ViewManagement.Core.ICoreInputView3;
244 [contract(Windows.Foundation.UniversalApiContract, 10.0)] interface Windows.UI.ViewManagement.Core.ICoreInputView4;
245 }
246
247 [
248 contract(Windows.Foundation.UniversalApiContract, 10.0),
249 marshaling_behavior(agile)
250 ]
251 runtimeclass CoreInputViewHidingEventArgs
252 {
253 [default] interface Windows.UI.ViewManagement.Core.ICoreInputViewHidingEventArgs;
254 }
255
256 [
257 contract(Windows.Foundation.UniversalApiContract, 5.0),
258 marshaling_behavior(agile)
259 ]
260 runtimeclass CoreInputViewOcclusion
261 {
262 [default] interface Windows.UI.ViewManagement.Core.ICoreInputViewOcclusion;
263 }
264
265 [
266 contract(Windows.Foundation.UniversalApiContract, 5.0),
267 marshaling_behavior(agile)
268 ]
269 runtimeclass CoreInputViewOcclusionsChangedEventArgs
270 {
271 [default] interface Windows.UI.ViewManagement.Core.ICoreInputViewOcclusionsChangedEventArgs;
272 }
273
274 [
275 contract(Windows.Foundation.UniversalApiContract, 10.0),
276 marshaling_behavior(agile)
277 ]
278 runtimeclass CoreInputViewShowingEventArgs
279 {
280 [default] interface Windows.UI.ViewManagement.Core.ICoreInputViewShowingEventArgs;
281 }
282
283 [
284 contract(Windows.Foundation.UniversalApiContract, 6.0),
285 marshaling_behavior(agile)
286 ]
287 runtimeclass CoreInputViewTransferringXYFocusEventArgs
288 {
289 [default] interface Windows.UI.ViewManagement.Core.ICoreInputViewTransferringXYFocusEventArgs;
290 }
291 }