Debian Codegraph @

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

raw
1 /*
2 * Copyright (C) 2023 Mohamad Al-Jaf
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.system.idl";
29 import "windows.ui.idl";
30 /* import "windows.ui.composition.idl"; */
31 import "windows.ui.input.idl";
32 /* import "windows.ui.input.inking.idl"; */
33 /* import "windows.ui.input.inking.core.idl"; */
34 /* import "windows.ui.popups.idl"; */
35
36 namespace Windows.UI.Input {
37 runtimeclass PointerPoint;
38
39 declare {
40 interface Windows.Foundation.Collections.IVectorView<Windows.UI.Input.PointerPoint *>;
41 interface Windows.Foundation.Collections.IVector<Windows.UI.Input.PointerPoint *>;
42 }
43 }
44
45 namespace Windows.UI.Core {
46 typedef enum CoreAcceleratorKeyEventType CoreAcceleratorKeyEventType;
47 typedef enum CoreCursorType CoreCursorType;
48 typedef enum CoreDispatcherPriority CoreDispatcherPriority;
49 typedef enum CoreProcessEventsOption CoreProcessEventsOption;
50 typedef enum CoreVirtualKeyStates CoreVirtualKeyStates;
51 typedef enum CoreWindowActivationMode CoreWindowActivationMode;
52 typedef enum CoreWindowActivationState CoreWindowActivationState;
53 typedef enum CoreWindowFlowDirection CoreWindowFlowDirection;
54 typedef struct CorePhysicalKeyStatus CorePhysicalKeyStatus;
55 typedef struct CoreProximityEvaluation CoreProximityEvaluation;
56
57 interface IAcceleratorKeyEventArgs;
58 interface IAutomationProviderRequestedEventArgs;
59 interface ICharacterReceivedEventArgs;
60 interface IClosestInteractiveBoundsRequestedEventArgs;
61 interface ICoreAcceleratorKeys;
62 interface ICoreCursor;
63 interface ICoreCursorFactory;
64 interface ICoreDispatcher;
65 interface ICoreDispatcher2;
66 interface ICoreDispatcherWithTaskPriority;
67 interface ICoreWindow;
68 interface ICoreWindow2;
69 interface ICoreWindow3;
70 interface ICoreWindow4;
71 interface ICoreWindow5;
72 interface ICoreWindowEventArgs;
73 interface ICoreWindowStatic;
74 interface IIdleDispatchedHandlerArgs;
75 interface IInputEnabledEventArgs;
76 interface IKeyEventArgs;
77 interface IKeyEventArgs2;
78 interface IPointerEventArgs;
79 interface ITouchHitTestingEventArgs;
80 interface IVisibilityChangedEventArgs;
81 interface IWindowActivatedEventArgs;
82 interface IWindowSizeChangedEventArgs;
83
84 runtimeclass AutomationProviderRequestedEventArgs;
85 runtimeclass AcceleratorKeyEventArgs;
86 runtimeclass CharacterReceivedEventArgs;
87 runtimeclass ClosestInteractiveBoundsRequestedEventArgs;
88 runtimeclass CoreCursor;
89 runtimeclass CoreDispatcher;
90 runtimeclass CoreWindow;
91 runtimeclass CoreWindowEventArgs;
92 runtimeclass IdleDispatchedHandlerArgs;
93 runtimeclass InputEnabledEventArgs;
94 runtimeclass KeyEventArgs;
95 runtimeclass PointerEventArgs;
96 runtimeclass TouchHitTestingEventArgs;
97 runtimeclass VisibilityChangedEventArgs;
98 runtimeclass WindowActivatedEventArgs;
99 runtimeclass WindowSizeChangedEventArgs;
100
101 declare {
102 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreDispatcher *, Windows.UI.Core.AcceleratorKeyEventArgs *>;
103 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, IInspectable *>;
104 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.AutomationProviderRequestedEventArgs *>;
105 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.CharacterReceivedEventArgs *>;
106 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs *>;
107 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.CoreWindowEventArgs *>;
108 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.InputEnabledEventArgs *>;
109 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.KeyEventArgs *>;
110 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.PointerEventArgs *>;
111 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.TouchHitTestingEventArgs *>;
112 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.VisibilityChangedEventArgs *>;
113 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.WindowActivatedEventArgs *>;
114 interface Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.WindowSizeChangedEventArgs *>;
115 }
116
117 [
118 contract(Windows.Foundation.UniversalApiContract, 1.0)
119 ]
120 enum CoreAcceleratorKeyEventType
121 {
122 Character = 2,
123 DeadCharacter = 3,
124 KeyDown = 0,
125 KeyUp = 1,
126 SystemCharacter = 6,
127 SystemDeadCharacter = 7,
128 SystemKeyDown = 4,
129 SystemKeyUp = 5,
130 UnicodeCharacter = 8,
131 };
132
133 [
134 contract(Windows.Foundation.UniversalApiContract, 1.0)
135 ]
136 enum CoreCursorType
137 {
138 Arrow = 0,
139 Cross = 1,
140 Custom = 2,
141 Hand = 3,
142 Help = 4,
143 IBeam = 5,
144 SizeAll = 6,
145 SizeNortheastSouthwest = 7,
146 SizeNorthSouth = 8,
147 SizeNorthwestSoutheast = 9,
148 SizeWestEast = 10,
149 UniversalNo = 11,
150 UpArrow = 12,
151 Wait = 13,
152 [contract(Windows.Foundation.UniversalApiContract, 5.0)]
153 Pin = 14,
154 [contract(Windows.Foundation.UniversalApiContract, 5.0)]
155 Person = 15
156 };
157
158 [
159 contract(Windows.Foundation.UniversalApiContract, 1.0)
160 ]
161 enum CoreDispatcherPriority
162 {
163 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
164 Idle = -2,
165 Low = -1,
166 Normal = 0,
167 High = 1,
168 };
169
170 [
171 contract(Windows.Foundation.UniversalApiContract, 1.0)
172 ]
173 enum CoreProcessEventsOption
174 {
175 ProcessOneAndAllPending = 0,
176 ProcessOneIfPresent = 1,
177 ProcessUntilQuit = 2,
178 ProcessAllIfPresent = 3,
179 };
180
181 [
182 contract(Windows.Foundation.UniversalApiContract, 1.0),
183 flags
184 ]
185 enum CoreVirtualKeyStates
186 {
187 None = 0x0,
188 Down = 0x1,
189 Locked = 0x2
190 };
191
192 [
193 contract(Windows.Foundation.UniversalApiContract, 5.0)
194 ]
195 enum CoreWindowActivationMode
196 {
197 None = 0,
198 Deactivated = 1,
199 ActivatedNotForeground = 2,
200 ActivatedInForeground = 3
201 };
202
203 [
204 contract(Windows.Foundation.UniversalApiContract, 1.0)
205 ]
206 enum CoreWindowActivationState
207 {
208 CodeActivated = 0,
209 Deactivated = 1,
210 PointerActivated = 2
211 };
212
213 [
214 contract(Windows.Foundation.UniversalApiContract, 1.0)
215 ]
216 enum CoreWindowFlowDirection
217 {
218 LeftToRight = 0,
219 RightToLeft = 1
220 };
221
222 [
223 contract(Windows.Foundation.UniversalApiContract, 1.0)
224 ]
225 struct CorePhysicalKeyStatus
226 {
227 UINT32 RepeatCount;
228 UINT32 ScanCode;
229 boolean IsExtendedKey;
230 boolean IsMenuKeyDown;
231 boolean WasKeyDown;
232 boolean IsKeyReleased;
233 };
234
235 [
236 contract(Windows.Foundation.UniversalApiContract, 1.0)
237 ]
238 struct CoreProximityEvaluation
239 {
240 INT32 Score;
241 Windows.Foundation.Point AdjustedPoint;
242 };
243
244 [
245 contract(Windows.Foundation.UniversalApiContract, 1.0),
246 uuid(d1f276c4-98d8-4636-bf49-eb79507548e9)
247 ]
248 delegate HRESULT DispatchedHandler();
249
250 [
251 contract(Windows.Foundation.UniversalApiContract, 1.0),
252 uuid(a42b0c24-7f21-4abc-99c1-8f01007f0880)
253 ]
254 delegate HRESULT IdleDispatchedHandler([in] Windows.UI.Core.IdleDispatchedHandlerArgs *e);
255
256 [
257 contract(Windows.Foundation.UniversalApiContract, 1.0),
258 exclusiveto(Windows.UI.Core.AcceleratorKeyEventArgs),
259 uuid(ff1c4c4a-9287-470b-836e-9086e3126ade)
260 ]
261 interface IAcceleratorKeyEventArgs : IInspectable
262 requires Windows.UI.Core.ICoreWindowEventArgs
263 {
264 [propget] HRESULT EventType([out, retval] Windows.UI.Core.CoreAcceleratorKeyEventType *value);
265 [propget] HRESULT VirtualKey([out, retval] Windows.System.VirtualKey *value);
266 [propget] HRESULT KeyStatus([out, retval] Windows.UI.Core.CorePhysicalKeyStatus *value);
267 }
268
269 [
270 contract(Windows.Foundation.UniversalApiContract, 1.0),
271 exclusiveto(Windows.UI.Core.AutomationProviderRequestedEventArgs),
272 uuid(961ff258-21bf-4b42-a298-fa479d4c52e2)
273 ]
274 interface IAutomationProviderRequestedEventArgs : IInspectable
275 requires Windows.UI.Core.ICoreWindowEventArgs
276 {
277 [propget] HRESULT AutomationProvider([out, retval] IInspectable **value);
278 [propput] HRESULT AutomationProvider([in] IInspectable *value);
279 }
280
281 [
282 contract(Windows.Foundation.UniversalApiContract, 1.0),
283 exclusiveto(Windows.UI.Core.CharacterReceivedEventArgs),
284 uuid(c584659f-99b2-4bcc-bd33-04e63f42902e)
285 ]
286 interface ICharacterReceivedEventArgs : IInspectable
287 requires Windows.UI.Core.ICoreWindowEventArgs
288 {
289 [propget] HRESULT KeyCode([out, retval] UINT32 *value);
290 [propget] HRESULT KeyStatus([out, retval] Windows.UI.Core.CorePhysicalKeyStatus *value);
291 }
292
293 [
294 contract(Windows.Foundation.UniversalApiContract, 3.0),
295 exclusiveto(Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs),
296 uuid(347c11d7-f6f8-40e3-b29f-ae50d3e86486)
297 ]
298 interface IClosestInteractiveBoundsRequestedEventArgs : IInspectable
299 {
300 [propget] HRESULT PointerPosition([out, retval] Windows.Foundation.Point *value);
301 [propget] HRESULT SearchBounds([out, retval] Windows.Foundation.Rect *value);
302 [propget] HRESULT ClosestInteractiveBounds([out, retval] Windows.Foundation.Rect *value);
303 [propput] HRESULT ClosestInteractiveBounds([in] Windows.Foundation.Rect value);
304 }
305
306 [
307 contract(Windows.Foundation.UniversalApiContract, 1.0),
308 uuid(9ffdf7f5-b8c9-4ef0-b7d2-1de626561fc8)
309 ]
310 interface ICoreAcceleratorKeys : IInspectable
311 {
312 [eventadd] HRESULT AcceleratorKeyActivated([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreDispatcher *, Windows.UI.Core.AcceleratorKeyEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
313 [eventremove] HRESULT AcceleratorKeyActivated([in] EventRegistrationToken cookie);
314 }
315
316 [
317 contract(Windows.Foundation.UniversalApiContract, 1.0),
318 exclusiveto(Windows.UI.Core.CoreCursor),
319 uuid(96893acf-111d-442c-8a77-b87992f8e2d6)
320 ]
321 interface ICoreCursor : IInspectable
322 {
323 [propget] HRESULT Id([out, retval] UINT32 *value);
324 [propget] HRESULT Type([out, retval] Windows.UI.Core.CoreCursorType *value);
325 }
326
327 [
328 contract(Windows.Foundation.UniversalApiContract, 1.0),
329 exclusiveto(Windows.UI.Core.CoreCursor),
330 uuid(f6359621-a79d-4ed3-8c32-a9ef9d6b76a4)
331 ]
332 interface ICoreCursorFactory : IInspectable
333 {
334 HRESULT CreateCursor([in] Windows.UI.Core.CoreCursorType type, [in] UINT32 id, [out, retval] Windows.UI.Core.CoreCursor **cursor);
335 }
336
337 [
338 contract(Windows.Foundation.UniversalApiContract, 1.0),
339 exclusiveto(Windows.UI.Core.CoreDispatcher),
340 uuid(60db2fa8-b705-4fde-a7d6-ebbb1891d39e)
341 ]
342 interface ICoreDispatcher : IInspectable
343 requires Windows.UI.Core.ICoreAcceleratorKeys
344 {
345 [propget] HRESULT HasThreadAccess([out, retval] boolean *value);
346 HRESULT ProcessEvents([in] Windows.UI.Core.CoreProcessEventsOption options);
347 HRESULT RunAsync([in] Windows.UI.Core.CoreDispatcherPriority priority, [in] Windows.UI.Core.DispatchedHandler *callback,
348 [out, retval] Windows.Foundation.IAsyncAction **action);
349 HRESULT RunIdleAsync([in] Windows.UI.Core.IdleDispatchedHandler *callback, [out, retval] Windows.Foundation.IAsyncAction **action);
350 }
351
352 [
353 contract(Windows.Foundation.UniversalApiContract, 1.0),
354 uuid(79b9d5f2-879e-4b89-b798-79e47598030c)
355 ]
356 interface ICoreWindow : IInspectable
357 {
358 [propget] HRESULT AutomationHostProvider([out, retval] IInspectable **value);
359 [propget] HRESULT Bounds([out, retval] Windows.Foundation.Rect *value);
360 [propget] HRESULT CustomProperties([out, retval] Windows.Foundation.Collections.IPropertySet **value);
361 [propget] HRESULT Dispatcher([out, retval] Windows.UI.Core.CoreDispatcher **value);
362 [propget] HRESULT FlowDirection([out, retval] Windows.UI.Core.CoreWindowFlowDirection *value);
363 [propput] HRESULT FlowDirection([in] Windows.UI.Core.CoreWindowFlowDirection value);
364 [propget] HRESULT IsInputEnabled([out, retval] boolean *value);
365 [propput] HRESULT IsInputEnabled([in] boolean value);
366 [propget] HRESULT PointerCursor([out, retval] Windows.UI.Core.CoreCursor **value);
367 [propput] HRESULT PointerCursor([in] Windows.UI.Core.CoreCursor *value);
368 [propget] HRESULT PointerPosition([out, retval] Windows.Foundation.Point *value);
369 [propget] HRESULT Visible([out, retval] boolean *value);
370 HRESULT Activate();
371 HRESULT Close();
372 HRESULT GetAsyncKeyState([in] Windows.System.VirtualKey key, [out, retval] Windows.UI.Core.CoreVirtualKeyStates *state);
373 HRESULT GetKeyState([in] Windows.System.VirtualKey key, [out, retval] Windows.UI.Core.CoreVirtualKeyStates *state);
374 HRESULT ReleasePointerCapture();
375 HRESULT SetPointerCapture();
376 [eventadd] HRESULT Activated([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.WindowActivatedEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
377 [eventremove] HRESULT Activated([in] EventRegistrationToken cookie);
378 [eventadd] HRESULT AutomationProviderRequested([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.AutomationProviderRequestedEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
379 [eventremove] HRESULT AutomationProviderRequested([in] EventRegistrationToken cookie);
380 [eventadd] HRESULT CharacterReceived([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.CharacterReceivedEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
381 [eventremove] HRESULT CharacterReceived([in] EventRegistrationToken cookie);
382 [eventadd] HRESULT Closed([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.CoreWindowEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
383 [eventremove] HRESULT Closed([in] EventRegistrationToken cookie);
384 [eventadd] HRESULT InputEnabled([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.InputEnabledEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
385 [eventremove] HRESULT InputEnabled([in] EventRegistrationToken cookie);
386 [eventadd] HRESULT KeyDown([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.KeyEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
387 [eventremove] HRESULT KeyDown([in] EventRegistrationToken cookie);
388 [eventadd] HRESULT KeyUp([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.KeyEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
389 [eventremove] HRESULT KeyUp([in] EventRegistrationToken cookie);
390 [eventadd] HRESULT PointerCaptureLost([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.PointerEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
391 [eventremove] HRESULT PointerCaptureLost([in] EventRegistrationToken cookie);
392 [eventadd] HRESULT PointerEntered([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.PointerEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
393 [eventremove] HRESULT PointerEntered([in] EventRegistrationToken cookie);
394 [eventadd] HRESULT PointerExited([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.PointerEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
395 [eventremove] HRESULT PointerExited([in] EventRegistrationToken cookie);
396 [eventadd] HRESULT PointerMoved([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.PointerEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
397 [eventremove] HRESULT PointerMoved([in] EventRegistrationToken cookie);
398 [eventadd] HRESULT PointerPressed([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.PointerEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
399 [eventremove] HRESULT PointerPressed([in] EventRegistrationToken cookie);
400 [eventadd] HRESULT PointerReleased([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.PointerEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
401 [eventremove] HRESULT PointerReleased([in] EventRegistrationToken cookie);
402 [eventadd] HRESULT TouchHitTesting([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.TouchHitTestingEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
403 [eventremove] HRESULT TouchHitTesting([in] EventRegistrationToken cookie);
404 [eventadd] HRESULT PointerWheelChanged([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.PointerEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
405 [eventremove] HRESULT PointerWheelChanged([in] EventRegistrationToken cookie);
406 [eventadd] HRESULT SizeChanged([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.WindowSizeChangedEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
407 [eventremove] HRESULT SizeChanged([in] EventRegistrationToken cookie);
408 [eventadd] HRESULT VisibilityChanged([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.VisibilityChangedEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
409 [eventremove] HRESULT VisibilityChanged([in] EventRegistrationToken cookie);
410 }
411
412 [
413 contract(Windows.Foundation.UniversalApiContract, 1.0),
414 exclusiveto(Windows.UI.Core.CoreWindow),
415 uuid(7c2b1b85-6917-4361-9c02-0d9e3a420b95)
416 ]
417 interface ICoreWindow2 : IInspectable
418 {
419 [propput] HRESULT PointerPosition([in] Windows.Foundation.Point value);
420 }
421
422 [
423 contract(Windows.Foundation.UniversalApiContract, 3.0),
424 exclusiveto(Windows.UI.Core.CoreWindow),
425 uuid(32c20dd8-faef-4375-a2ab-32640e4815c7)
426 ]
427 interface ICoreWindow3 : IInspectable
428 {
429 [eventadd] HRESULT ClosestInteractiveBoundsRequested([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs *> *handler, [out, retval] EventRegistrationToken *cookie);
430 [eventremove] HRESULT ClosestInteractiveBoundsRequested([in] EventRegistrationToken cookie);
431 HRESULT GetCurrentKeyEventDeviceId([out, retval] HSTRING *value);
432 }
433
434 [
435 contract(Windows.Foundation.UniversalApiContract, 4.0),
436 exclusiveto(Windows.UI.Core.CoreWindow),
437 uuid(35caf0d0-47f0-436c-af97-0dd88f6f5f02)
438 ]
439 interface ICoreWindow4 : IInspectable
440 {
441 [eventadd] HRESULT ResizeStarted([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, IInspectable *> *handler, [out, retval] EventRegistrationToken *cookie);
442 [eventremove] HRESULT ResizeStarted([in] EventRegistrationToken cookie);
443 [eventadd] HRESULT ResizeCompleted([in] Windows.Foundation.TypedEventHandler<Windows.UI.Core.CoreWindow *, IInspectable *> *handler, [out, retval] EventRegistrationToken *cookie);
444 [eventremove] HRESULT ResizeCompleted([in] EventRegistrationToken cookie);
445 }
446
447 [
448 contract(Windows.Foundation.UniversalApiContract, 5.0),
449 exclusiveto(Windows.UI.Core.CoreWindow),
450 uuid(4b4ae1e1-2e6d-4eaa-bda1-1c5cc1bee141)
451 ]
452 interface ICoreWindow5 : IInspectable
453 {
454 [propget] HRESULT DispatcherQueue([out, retval] Windows.System.DispatcherQueue **value);
455 [propget] HRESULT ActivationMode([out, retval] Windows.UI.Core.CoreWindowActivationMode *value);
456 }
457
458 [
459 contract(Windows.Foundation.UniversalApiContract, 1.0),
460 uuid(272b1ef3-c633-4da5-a26c-c6d0f56b29da)
461 ]
462 interface ICoreWindowEventArgs : IInspectable
463 {
464 [propget] HRESULT Handled([out, retval] boolean *value);
465 [propput] HRESULT Handled([in] boolean value);
466 }
467
468 [
469 contract(Windows.Foundation.UniversalApiContract, 1.0),
470 exclusiveto(Windows.UI.Core.CoreWindow),
471 uuid(4d239005-3c2a-41b1-9022-536bb9cf93b1)
472 ]
473 interface ICoreWindowStatic : IInspectable
474 {
475 HRESULT GetForCurrentThread([out, retval] Windows.UI.Core.CoreWindow **windows);
476 }
477
478 [
479 contract(Windows.Foundation.UniversalApiContract, 1.0),
480 exclusiveto(Windows.UI.Core.IdleDispatchedHandlerArgs),
481 uuid(98bb6a24-dc1c-43cb-b4ed-d1c0eb2391f3)
482 ]
483 interface IIdleDispatchedHandlerArgs : IInspectable
484 {
485 [propget] HRESULT IsDispatcherIdle([out, retval] boolean *value);
486 }
487
488 [
489 contract(Windows.Foundation.UniversalApiContract, 1.0),
490 exclusiveto(Windows.UI.Core.InputEnabledEventArgs),
491 uuid(80371d4f-2fd8-4c24-aa86-3163a87b4e5a)
492 ]
493 interface IInputEnabledEventArgs : IInspectable
494 requires Windows.UI.Core.ICoreWindowEventArgs
495 {
496 [propget] HRESULT InputEnabled([out, retval] boolean *value);
497 }
498
499 [
500 contract(Windows.Foundation.UniversalApiContract, 1.0),
501 exclusiveto(Windows.UI.Core.KeyEventArgs),
502 uuid(5ff5e930-2544-4a17-bd78-1f2fdebb106b)
503 ]
504 interface IKeyEventArgs : IInspectable
505 requires Windows.UI.Core.ICoreWindowEventArgs
506 {
507 [propget] HRESULT VirtualKey([out, retval] Windows.System.VirtualKey *value);
508 [propget] HRESULT KeyStatus([out, retval] Windows.UI.Core.CorePhysicalKeyStatus *value);
509 }
510
511 [
512 contract(Windows.Foundation.UniversalApiContract, 3.0),
513 exclusiveto(Windows.UI.Core.KeyEventArgs),
514 uuid(583add98-0790-4571-9b12-645ef9d79e42)
515 ]
516 interface IKeyEventArgs2 : IInspectable
517 requires Windows.UI.Core.ICoreWindowEventArgs
518 {
519 [propget] HRESULT DeviceId([out, retval] HSTRING *value);
520 }
521
522 [
523 contract(Windows.Foundation.UniversalApiContract, 1.0),
524 exclusiveto(Windows.UI.Core.PointerEventArgs),
525 uuid(920d9cb1-a5fc-4a21-8c09-49dfe6ffe25f)
526 ]
527 interface IPointerEventArgs : IInspectable
528 requires Windows.UI.Core.ICoreWindowEventArgs
529 {
530 [propget] HRESULT CurrentPoint([out, retval] Windows.UI.Input.PointerPoint **value);
531 [propget] HRESULT KeyModifiers([out, retval] Windows.System.VirtualKeyModifiers *value);
532 HRESULT GetIntermediatePoints([out, retval] Windows.Foundation.Collections.IVector<Windows.UI.Input.PointerPoint *> **value);
533 }
534
535 [
536 contract(Windows.Foundation.UniversalApiContract, 1.0),
537 exclusiveto(Windows.UI.Core.TouchHitTestingEventArgs),
538 uuid(22f3b823-0b7c-424e-9df7-33d4f962931b)
539 ]
540 interface ITouchHitTestingEventArgs : IInspectable
541 requires Windows.UI.Core.ICoreWindowEventArgs
542 {
543 [propget] HRESULT ProximityEvaluation([out, retval] Windows.UI.Core.CoreProximityEvaluation *value);
544 [propput] HRESULT ProximityEvaluation([in] Windows.UI.Core.CoreProximityEvaluation value);
545 [propget] HRESULT Point([out, retval] Windows.Foundation.Point *value);
546 [propget] HRESULT BoundingBox([out, retval] Windows.Foundation.Rect *value);
547 [default_overload] [overload("EvaluateProximity")] HRESULT EvaluateProximityToRect([in] Windows.Foundation.Rect bounding_box, [out, retval] Windows.UI.Core.CoreProximityEvaluation *evaluation);
548 [overload("EvaluateProximity")] HRESULT EvaluateProximityToPolygon([in] UINT32 vertice_size, [in] [size_is(vertice_size)] Windows.Foundation.Point *vertices, [out, retval] Windows.UI.Core.CoreProximityEvaluation *evaluation);
549 }
550
551 [
552 contract(Windows.Foundation.UniversalApiContract, 1.0),
553 exclusiveto(Windows.UI.Core.VisibilityChangedEventArgs),
554 uuid(bf9918ea-d801-4564-a495-b1e84f8ad085)
555 ]
556 interface IVisibilityChangedEventArgs : IInspectable
557 requires Windows.UI.Core.ICoreWindowEventArgs
558 {
559 [propget] HRESULT Visible([out, retval] boolean *value);
560 }
561
562 [
563 contract(Windows.Foundation.UniversalApiContract, 1.0),
564 exclusiveto(Windows.UI.Core.WindowActivatedEventArgs),
565 uuid(179d65e7-4658-4cb6-aa13-41d094ea255e)
566 ]
567 interface IWindowActivatedEventArgs : IInspectable
568 requires Windows.UI.Core.ICoreWindowEventArgs
569 {
570 [propget] HRESULT WindowActivationState([out, retval] Windows.UI.Core.CoreWindowActivationState *value);
571 }
572
573 [
574 contract(Windows.Foundation.UniversalApiContract, 1.0),
575 exclusiveto(Windows.UI.Core.WindowSizeChangedEventArgs),
576 uuid(5a200ec7-0426-47dc-b86c-6f475915e451)
577 ]
578 interface IWindowSizeChangedEventArgs : IInspectable
579 requires Windows.UI.Core.ICoreWindowEventArgs
580 {
581 [propget] HRESULT Size([out, retval] Windows.Foundation.Size *value);
582 }
583
584 [
585 contract(Windows.Foundation.UniversalApiContract, 1.0),
586 marshaling_behavior(agile)
587 ]
588 runtimeclass AcceleratorKeyEventArgs
589 {
590 [default] interface Windows.UI.Core.IAcceleratorKeyEventArgs;
591 interface Windows.UI.Core.ICoreWindowEventArgs;
592 }
593
594 [
595 contract(Windows.Foundation.UniversalApiContract, 1.0),
596 marshaling_behavior(standard)
597 ]
598 runtimeclass AutomationProviderRequestedEventArgs
599 {
600 [default] interface Windows.UI.Core.IAutomationProviderRequestedEventArgs;
601 interface Windows.UI.Core.ICoreWindowEventArgs;
602 }
603
604 [
605 contract(Windows.Foundation.UniversalApiContract, 1.0),
606 marshaling_behavior(standard)
607 ]
608 runtimeclass CharacterReceivedEventArgs
609 {
610 [default] interface Windows.UI.Core.ICharacterReceivedEventArgs;
611 interface Windows.UI.Core.ICoreWindowEventArgs;
612 }
613
614 [
615 contract(Windows.Foundation.UniversalApiContract, 3.0),
616 marshaling_behavior(standard)
617 ]
618 runtimeclass ClosestInteractiveBoundsRequestedEventArgs
619 {
620 [default] interface Windows.UI.Core.IClosestInteractiveBoundsRequestedEventArgs;
621 }
622
623 [
624 activatable(Windows.UI.Core.ICoreCursorFactory, Windows.Foundation.UniversalApiContract, 1.0),
625 contract(Windows.Foundation.UniversalApiContract, 1.0),
626 marshaling_behavior(agile)
627 ]
628 runtimeclass CoreCursor
629 {
630 [default] interface Windows.UI.Core.ICoreCursor;
631 }
632
633 [
634 contract(Windows.Foundation.UniversalApiContract, 1.0),
635 marshaling_behavior(agile)
636 ]
637 runtimeclass CoreDispatcher
638 {
639 [default] interface Windows.UI.Core.ICoreDispatcher;
640 interface Windows.UI.Core.ICoreAcceleratorKeys;
641 /* [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.UI.Core.ICoreDispatcherWithTaskPriority; */
642 /* [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.UI.Core.ICoreDispatcher2; */
643 }
644
645 [
646 contract(Windows.Foundation.UniversalApiContract, 1.0),
647 marshaling_behavior(standard),
648 static(Windows.UI.Core.ICoreWindowStatic, Windows.Foundation.UniversalApiContract, 1.0)
649 ]
650 runtimeclass CoreWindow
651 {
652 [default] interface Windows.UI.Core.ICoreWindow;
653 [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.UI.Core.ICoreWindow2;
654 /* [contract(Windows.Foundation.UniversalApiContract, 2.0)] interface Windows.UI.Core.ICorePointerRedirector; */
655 [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.UI.Core.ICoreWindow3;
656 [contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.UI.Core.ICoreWindow4;
657 [contract(Windows.Foundation.UniversalApiContract, 5.0)] interface Windows.UI.Core.ICoreWindow5;
658 /* [contract(Windows.Foundation.UniversalApiContract, 8.0)] interface Windows.UI.Core.ICoreWindowWithContext; */
659 }
660
661 [
662 contract(Windows.Foundation.UniversalApiContract, 1.0),
663 marshaling_behavior(standard)
664 ]
665 runtimeclass CoreWindowEventArgs
666 {
667 [default] interface Windows.UI.Core.ICoreWindowEventArgs;
668 }
669
670 [
671 contract(Windows.Foundation.UniversalApiContract, 1.0),
672 marshaling_behavior(standard)
673 ]
674 runtimeclass IdleDispatchedHandlerArgs
675 {
676 [default] interface Windows.UI.Core.IIdleDispatchedHandlerArgs;
677 }
678
679 [
680 contract(Windows.Foundation.UniversalApiContract, 1.0),
681 marshaling_behavior(standard)
682 ]
683 runtimeclass InputEnabledEventArgs
684 {
685 [default] interface Windows.UI.Core.IInputEnabledEventArgs;
686 interface Windows.UI.Core.ICoreWindowEventArgs;
687 }
688
689 [
690 contract(Windows.Foundation.UniversalApiContract, 1.0),
691 marshaling_behavior(standard)
692 ]
693 runtimeclass KeyEventArgs
694 {
695 [default] interface Windows.UI.Core.IKeyEventArgs;
696 interface Windows.UI.Core.ICoreWindowEventArgs;
697 [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.UI.Core.IKeyEventArgs2;
698 }
699
700 [
701 contract(Windows.Foundation.UniversalApiContract, 1.0),
702 marshaling_behavior(standard)
703 ]
704 runtimeclass PointerEventArgs
705 {
706 [default] interface Windows.UI.Core.IPointerEventArgs;
707 interface Windows.UI.Core.ICoreWindowEventArgs;
708 }
709
710 [
711 contract(Windows.Foundation.UniversalApiContract, 1.0),
712 marshaling_behavior(standard)
713 ]
714 runtimeclass TouchHitTestingEventArgs
715 {
716 [default] interface Windows.UI.Core.ITouchHitTestingEventArgs;
717 interface Windows.UI.Core.ICoreWindowEventArgs;
718 }
719
720 [
721 contract(Windows.Foundation.UniversalApiContract, 1.0),
722 marshaling_behavior(standard)
723 ]
724 runtimeclass VisibilityChangedEventArgs
725 {
726 [default] interface Windows.UI.Core.IVisibilityChangedEventArgs;
727 interface Windows.UI.Core.ICoreWindowEventArgs;
728 }
729
730 [
731 contract(Windows.Foundation.UniversalApiContract, 1.0),
732 marshaling_behavior(standard)
733 ]
734 runtimeclass WindowActivatedEventArgs
735 {
736 [default] interface Windows.UI.Core.IWindowActivatedEventArgs;
737 interface Windows.UI.Core.ICoreWindowEventArgs;
738 }
739
740 [
741 contract(Windows.Foundation.UniversalApiContract, 1.0),
742 marshaling_behavior(standard)
743 ]
744 runtimeclass WindowSizeChangedEventArgs
745 {
746 [default] interface Windows.UI.Core.IWindowSizeChangedEventArgs;
747 interface Windows.UI.Core.ICoreWindowEventArgs;
748 }
749 }