Debian Codegraph @

mingw-w64-headers/include/windows.ui.windowmanagement.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.system.idl";
29 import "windows.ui.idl";
30 import "windows.ui.composition.idl";
31
32 namespace Windows.UI.WindowManagement
33 {
34 typedef enum WindowingEnvironmentKind WindowingEnvironmentKind;
35
36 interface IDisplayRegion;
37 interface IWindowingEnvironment;
38 interface IWindowingEnvironmentAddedEventArgs;
39 interface IWindowingEnvironmentChangedEventArgs;
40 interface IWindowingEnvironmentRemovedEventArgs;
41 interface IWindowingEnvironmentStatics;
42
43 runtimeclass DisplayRegion;
44 runtimeclass WindowingEnvironment;
45 runtimeclass WindowingEnvironmentAddedEventArgs;
46 runtimeclass WindowingEnvironmentChangedEventArgs;
47 runtimeclass WindowingEnvironmentRemovedEventArgs;
48
49 declare {
50 interface Windows.Foundation.Collections.IIterable<Windows.UI.WindowManagement.DisplayRegion *>;
51 interface Windows.Foundation.Collections.IIterable<Windows.UI.WindowManagement.WindowingEnvironment *>;
52 interface Windows.Foundation.Collections.IIterator<Windows.UI.WindowManagement.DisplayRegion *>;
53 interface Windows.Foundation.Collections.IIterator<Windows.UI.WindowManagement.WindowingEnvironment *>;
54 interface Windows.Foundation.Collections.IVectorView<Windows.UI.WindowManagement.DisplayRegion *>;
55 interface Windows.Foundation.Collections.IVectorView<Windows.UI.WindowManagement.WindowingEnvironment *>;
56 interface Windows.Foundation.TypedEventHandler<Windows.UI.WindowManagement.DisplayRegion *, IInspectable *>;
57 interface Windows.Foundation.TypedEventHandler<Windows.UI.WindowManagement.WindowingEnvironment *, Windows.UI.WindowManagement.WindowingEnvironmentChangedEventArgs *>;
58 }
59
60 [
61 contract(Windows.Foundation.UniversalApiContract, 8.0)
62 ]
63 enum WindowingEnvironmentKind
64 {
65 Unknown = 0,
66 Overlapped = 1,
67 Tiled = 2,
68 };
69
70 [
71 contract(Windows.Foundation.UniversalApiContract, 8.0),
72 exclusiveto(Windows.UI.WindowManagement.DisplayRegion),
73 uuid(db50c3a2-4094-5f47-8cb1-ea01ddafaa94)
74 ]
75 interface IDisplayRegion : IInspectable
76 {
77 [propget] HRESULT DisplayMonitorDeviceId([out, retval] HSTRING *value);
78 [propget] HRESULT IsVisible([out, retval] boolean *value);
79 [propget] HRESULT WorkAreaOffset([out, retval] Windows.Foundation.Point *value);
80 [propget] HRESULT WorkAreaSize([out, retval] Windows.Foundation.Size *value);
81 [propget] HRESULT WindowingEnvironment([out, retval] Windows.UI.WindowManagement.WindowingEnvironment **value);
82 [eventadd] HRESULT Changed([in] Windows.Foundation.TypedEventHandler<Windows.UI.WindowManagement.DisplayRegion *, IInspectable *> *handler, [out, retval] EventRegistrationToken *token);
83 [eventremove] HRESULT Changed([in] EventRegistrationToken token);
84 }
85
86 [
87 contract(Windows.Foundation.UniversalApiContract, 8.0),
88 exclusiveto(Windows.UI.WindowManagement.WindowingEnvironment),
89 uuid(264363c0-2a49-5417-b3ae-48a71c63a3bd)
90 ]
91 interface IWindowingEnvironment : IInspectable
92 {
93 [propget] HRESULT IsEnabled([out, retval] boolean *value);
94 [propget] HRESULT Kind([out, retval] Windows.UI.WindowManagement.WindowingEnvironmentKind *value);
95 HRESULT GetDisplayRegions([out, retval] Windows.Foundation.Collections.IVectorView<Windows.UI.WindowManagement.DisplayRegion *> **result);
96 [eventadd] HRESULT Changed([in] Windows.Foundation.TypedEventHandler<Windows.UI.WindowManagement.WindowingEnvironment *, Windows.UI.WindowManagement.WindowingEnvironmentChangedEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
97 [eventremove] HRESULT Changed([in] EventRegistrationToken token);
98 }
99
100 [
101 contract(Windows.Foundation.UniversalApiContract, 8.0),
102 exclusiveto(Windows.UI.WindowManagement.WindowingEnvironmentAddedEventArgs),
103 uuid(ff2a5b7f-f183-5c66-99b2-429082069299)
104 ]
105 interface IWindowingEnvironmentAddedEventArgs : IInspectable
106 {
107 [propget] HRESULT WindowingEnvironment([out, retval] Windows.UI.WindowManagement.WindowingEnvironment **value);
108 }
109
110 [
111 contract(Windows.Foundation.UniversalApiContract, 8.0),
112 exclusiveto(Windows.UI.WindowManagement.WindowingEnvironmentChangedEventArgs),
113 uuid(4160cfc6-023d-5e9a-b431-350e67dc978a)
114 ]
115 interface IWindowingEnvironmentChangedEventArgs : IInspectable
116 {
117 }
118
119 [
120 contract(Windows.Foundation.UniversalApiContract, 8.0),
121 exclusiveto(Windows.UI.WindowManagement.WindowingEnvironmentRemovedEventArgs),
122 uuid(2e5b5473-beff-5e53-9316-7e775fe568b3)
123 ]
124 interface IWindowingEnvironmentRemovedEventArgs : IInspectable
125 {
126 [propget] HRESULT WindowingEnvironment([out, retval] Windows.UI.WindowManagement.WindowingEnvironment **value);
127 }
128
129 [
130 contract(Windows.Foundation.UniversalApiContract, 8.0),
131 exclusiveto(Windows.UI.WindowManagement.WindowingEnvironment),
132 uuid(874e9fb7-c642-55ab-8aa2-162f734a9a72)
133 ]
134 interface IWindowingEnvironmentStatics : IInspectable
135 {
136 [overload("FindAll")] HRESULT FindAll([out, retval] Windows.Foundation.Collections.IVectorView<Windows.UI.WindowManagement.WindowingEnvironment *> **result);
137 [overload("FindAll")] HRESULT FindAllWithKind([in] Windows.UI.WindowManagement.WindowingEnvironmentKind kind, [out, retval] Windows.Foundation.Collections.IVectorView<Windows.UI.WindowManagement.WindowingEnvironment *> **result);
138 }
139
140 [
141 contract(Windows.Foundation.UniversalApiContract, 8.0),
142 marshaling_behavior(agile)
143 ]
144 runtimeclass DisplayRegion
145 {
146 [default] interface Windows.UI.WindowManagement.IDisplayRegion;
147 }
148
149 [
150 contract(Windows.Foundation.UniversalApiContract, 8.0),
151 marshaling_behavior(agile),
152 static(Windows.UI.WindowManagement.IWindowingEnvironmentStatics, Windows.Foundation.UniversalApiContract, 8.0),
153 threading(both)
154 ]
155 runtimeclass WindowingEnvironment
156 {
157 [default] interface Windows.UI.WindowManagement.IWindowingEnvironment;
158 }
159
160 [
161 contract(Windows.Foundation.UniversalApiContract, 8.0),
162 marshaling_behavior(agile)
163 ]
164 runtimeclass WindowingEnvironmentAddedEventArgs
165 {
166 [default] interface Windows.UI.WindowManagement.IWindowingEnvironmentAddedEventArgs;
167 }
168
169 [
170 contract(Windows.Foundation.UniversalApiContract, 8.0),
171 marshaling_behavior(agile)
172 ]
173 runtimeclass WindowingEnvironmentChangedEventArgs
174 {
175 [default] interface Windows.UI.WindowManagement.IWindowingEnvironmentChangedEventArgs;
176 }
177
178 [
179 contract(Windows.Foundation.UniversalApiContract, 8.0),
180 marshaling_behavior(agile)
181 ]
182 runtimeclass WindowingEnvironmentRemovedEventArgs
183 {
184 [default] interface Windows.UI.WindowManagement.IWindowingEnvironmentRemovedEventArgs;
185 }
186 }