]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] |
2 | pub type DisplayAdapter = *mut ::core::ffi::c_void; | |
04454e1e | 3 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
4 | #[repr(transparent)] |
5 | pub struct DisplayBitsPerChannel(pub u32); | |
6 | impl DisplayBitsPerChannel { | |
7 | pub const None: Self = Self(0u32); | |
8 | pub const Bpc6: Self = Self(1u32); | |
9 | pub const Bpc8: Self = Self(2u32); | |
10 | pub const Bpc10: Self = Self(4u32); | |
11 | pub const Bpc12: Self = Self(8u32); | |
12 | pub const Bpc14: Self = Self(16u32); | |
13 | pub const Bpc16: Self = Self(32u32); | |
14 | } | |
15 | impl ::core::marker::Copy for DisplayBitsPerChannel {} | |
16 | impl ::core::clone::Clone for DisplayBitsPerChannel { | |
17 | fn clone(&self) -> Self { | |
18 | *self | |
19 | } | |
20 | } | |
21 | pub type DisplayDevice = *mut ::core::ffi::c_void; | |
04454e1e | 22 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
23 | #[repr(transparent)] |
24 | pub struct DisplayDeviceCapability(pub i32); | |
25 | impl DisplayDeviceCapability { | |
26 | pub const FlipOverride: Self = Self(0i32); | |
27 | } | |
28 | impl ::core::marker::Copy for DisplayDeviceCapability {} | |
29 | impl ::core::clone::Clone for DisplayDeviceCapability { | |
30 | fn clone(&self) -> Self { | |
31 | *self | |
32 | } | |
33 | } | |
34 | pub type DisplayFence = *mut ::core::ffi::c_void; | |
35 | pub type DisplayManager = *mut ::core::ffi::c_void; | |
36 | pub type DisplayManagerChangedEventArgs = *mut ::core::ffi::c_void; | |
37 | pub type DisplayManagerDisabledEventArgs = *mut ::core::ffi::c_void; | |
38 | pub type DisplayManagerEnabledEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 39 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
40 | #[repr(transparent)] |
41 | pub struct DisplayManagerOptions(pub u32); | |
42 | impl DisplayManagerOptions { | |
43 | pub const None: Self = Self(0u32); | |
44 | pub const EnforceSourceOwnership: Self = Self(1u32); | |
45 | pub const VirtualRefreshRateAware: Self = Self(2u32); | |
46 | } | |
47 | impl ::core::marker::Copy for DisplayManagerOptions {} | |
48 | impl ::core::clone::Clone for DisplayManagerOptions { | |
49 | fn clone(&self) -> Self { | |
50 | *self | |
51 | } | |
52 | } | |
53 | pub type DisplayManagerPathsFailedOrInvalidatedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 54 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
55 | #[repr(transparent)] |
56 | pub struct DisplayManagerResult(pub i32); | |
57 | impl DisplayManagerResult { | |
58 | pub const Success: Self = Self(0i32); | |
59 | pub const UnknownFailure: Self = Self(1i32); | |
60 | pub const TargetAccessDenied: Self = Self(2i32); | |
61 | pub const TargetStale: Self = Self(3i32); | |
62 | pub const RemoteSessionNotSupported: Self = Self(4i32); | |
63 | } | |
64 | impl ::core::marker::Copy for DisplayManagerResult {} | |
65 | impl ::core::clone::Clone for DisplayManagerResult { | |
66 | fn clone(&self) -> Self { | |
67 | *self | |
68 | } | |
69 | } | |
70 | pub type DisplayManagerResultWithState = *mut ::core::ffi::c_void; | |
71 | pub type DisplayModeInfo = *mut ::core::ffi::c_void; | |
04454e1e | 72 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
73 | #[repr(transparent)] |
74 | pub struct DisplayModeQueryOptions(pub u32); | |
75 | impl DisplayModeQueryOptions { | |
76 | pub const None: Self = Self(0u32); | |
77 | pub const OnlyPreferredResolution: Self = Self(1u32); | |
78 | } | |
79 | impl ::core::marker::Copy for DisplayModeQueryOptions {} | |
80 | impl ::core::clone::Clone for DisplayModeQueryOptions { | |
81 | fn clone(&self) -> Self { | |
82 | *self | |
83 | } | |
84 | } | |
85 | pub type DisplayPath = *mut ::core::ffi::c_void; | |
04454e1e | 86 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
87 | #[repr(transparent)] |
88 | pub struct DisplayPathScaling(pub i32); | |
89 | impl DisplayPathScaling { | |
90 | pub const Identity: Self = Self(0i32); | |
91 | pub const Centered: Self = Self(1i32); | |
92 | pub const Stretched: Self = Self(2i32); | |
93 | pub const AspectRatioStretched: Self = Self(3i32); | |
94 | pub const Custom: Self = Self(4i32); | |
95 | pub const DriverPreferred: Self = Self(5i32); | |
96 | } | |
97 | impl ::core::marker::Copy for DisplayPathScaling {} | |
98 | impl ::core::clone::Clone for DisplayPathScaling { | |
99 | fn clone(&self) -> Self { | |
100 | *self | |
101 | } | |
102 | } | |
04454e1e | 103 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
104 | #[repr(transparent)] |
105 | pub struct DisplayPathStatus(pub i32); | |
106 | impl DisplayPathStatus { | |
107 | pub const Unknown: Self = Self(0i32); | |
108 | pub const Succeeded: Self = Self(1i32); | |
109 | pub const Pending: Self = Self(2i32); | |
110 | pub const Failed: Self = Self(3i32); | |
111 | pub const FailedAsync: Self = Self(4i32); | |
112 | pub const InvalidatedAsync: Self = Self(5i32); | |
113 | } | |
114 | impl ::core::marker::Copy for DisplayPathStatus {} | |
115 | impl ::core::clone::Clone for DisplayPathStatus { | |
116 | fn clone(&self) -> Self { | |
117 | *self | |
118 | } | |
119 | } | |
04454e1e | 120 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
121 | #[repr(transparent)] |
122 | pub struct DisplayPresentStatus(pub i32); | |
123 | impl DisplayPresentStatus { | |
124 | pub const Success: Self = Self(0i32); | |
125 | pub const SourceStatusPreventedPresent: Self = Self(1i32); | |
126 | pub const ScanoutInvalid: Self = Self(2i32); | |
127 | pub const SourceInvalid: Self = Self(3i32); | |
128 | pub const DeviceInvalid: Self = Self(4i32); | |
129 | pub const UnknownFailure: Self = Self(5i32); | |
130 | } | |
131 | impl ::core::marker::Copy for DisplayPresentStatus {} | |
132 | impl ::core::clone::Clone for DisplayPresentStatus { | |
133 | fn clone(&self) -> Self { | |
134 | *self | |
135 | } | |
136 | } | |
137 | #[repr(C)] | |
04454e1e | 138 | #[doc = "*Required features: `\"Devices_Display_Core\"`, `\"Foundation_Numerics\"`*"] |
5e7ed085 FG |
139 | #[cfg(feature = "Foundation_Numerics")] |
140 | pub struct DisplayPresentationRate { | |
141 | pub VerticalSyncRate: super::super::super::Foundation::Numerics::Rational, | |
142 | pub VerticalSyncsPerPresentation: i32, | |
143 | } | |
144 | #[cfg(feature = "Foundation_Numerics")] | |
145 | impl ::core::marker::Copy for DisplayPresentationRate {} | |
146 | #[cfg(feature = "Foundation_Numerics")] | |
147 | impl ::core::clone::Clone for DisplayPresentationRate { | |
148 | fn clone(&self) -> Self { | |
149 | *self | |
150 | } | |
151 | } | |
152 | pub type DisplayPrimaryDescription = *mut ::core::ffi::c_void; | |
04454e1e | 153 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
154 | #[repr(transparent)] |
155 | pub struct DisplayRotation(pub i32); | |
156 | impl DisplayRotation { | |
157 | pub const None: Self = Self(0i32); | |
158 | pub const Clockwise90Degrees: Self = Self(1i32); | |
159 | pub const Clockwise180Degrees: Self = Self(2i32); | |
160 | pub const Clockwise270Degrees: Self = Self(3i32); | |
161 | } | |
162 | impl ::core::marker::Copy for DisplayRotation {} | |
163 | impl ::core::clone::Clone for DisplayRotation { | |
164 | fn clone(&self) -> Self { | |
165 | *self | |
166 | } | |
167 | } | |
168 | pub type DisplayScanout = *mut ::core::ffi::c_void; | |
04454e1e | 169 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
170 | #[repr(transparent)] |
171 | pub struct DisplayScanoutOptions(pub u32); | |
172 | impl DisplayScanoutOptions { | |
173 | pub const None: Self = Self(0u32); | |
174 | pub const AllowTearing: Self = Self(2u32); | |
175 | } | |
176 | impl ::core::marker::Copy for DisplayScanoutOptions {} | |
177 | impl ::core::clone::Clone for DisplayScanoutOptions { | |
178 | fn clone(&self) -> Self { | |
179 | *self | |
180 | } | |
181 | } | |
182 | pub type DisplaySource = *mut ::core::ffi::c_void; | |
04454e1e | 183 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
184 | #[repr(transparent)] |
185 | pub struct DisplaySourceStatus(pub i32); | |
186 | impl DisplaySourceStatus { | |
187 | pub const Active: Self = Self(0i32); | |
188 | pub const PoweredOff: Self = Self(1i32); | |
189 | pub const Invalid: Self = Self(2i32); | |
190 | pub const OwnedByAnotherDevice: Self = Self(3i32); | |
191 | pub const Unowned: Self = Self(4i32); | |
192 | } | |
193 | impl ::core::marker::Copy for DisplaySourceStatus {} | |
194 | impl ::core::clone::Clone for DisplaySourceStatus { | |
195 | fn clone(&self) -> Self { | |
196 | *self | |
197 | } | |
198 | } | |
199 | pub type DisplayState = *mut ::core::ffi::c_void; | |
04454e1e | 200 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
201 | #[repr(transparent)] |
202 | pub struct DisplayStateApplyOptions(pub u32); | |
203 | impl DisplayStateApplyOptions { | |
204 | pub const None: Self = Self(0u32); | |
205 | pub const FailIfStateChanged: Self = Self(1u32); | |
206 | pub const ForceReapply: Self = Self(2u32); | |
207 | pub const ForceModeEnumeration: Self = Self(4u32); | |
208 | } | |
209 | impl ::core::marker::Copy for DisplayStateApplyOptions {} | |
210 | impl ::core::clone::Clone for DisplayStateApplyOptions { | |
211 | fn clone(&self) -> Self { | |
212 | *self | |
213 | } | |
214 | } | |
04454e1e | 215 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
216 | #[repr(transparent)] |
217 | pub struct DisplayStateFunctionalizeOptions(pub u32); | |
218 | impl DisplayStateFunctionalizeOptions { | |
219 | pub const None: Self = Self(0u32); | |
220 | pub const FailIfStateChanged: Self = Self(1u32); | |
221 | pub const ValidateTopologyOnly: Self = Self(2u32); | |
222 | } | |
223 | impl ::core::marker::Copy for DisplayStateFunctionalizeOptions {} | |
224 | impl ::core::clone::Clone for DisplayStateFunctionalizeOptions { | |
225 | fn clone(&self) -> Self { | |
226 | *self | |
227 | } | |
228 | } | |
229 | pub type DisplayStateOperationResult = *mut ::core::ffi::c_void; | |
04454e1e | 230 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
231 | #[repr(transparent)] |
232 | pub struct DisplayStateOperationStatus(pub i32); | |
233 | impl DisplayStateOperationStatus { | |
234 | pub const Success: Self = Self(0i32); | |
235 | pub const PartialFailure: Self = Self(1i32); | |
236 | pub const UnknownFailure: Self = Self(2i32); | |
237 | pub const TargetOwnershipLost: Self = Self(3i32); | |
238 | pub const SystemStateChanged: Self = Self(4i32); | |
239 | pub const TooManyPathsForAdapter: Self = Self(5i32); | |
240 | pub const ModesNotSupported: Self = Self(6i32); | |
241 | pub const RemoteSessionNotSupported: Self = Self(7i32); | |
242 | } | |
243 | impl ::core::marker::Copy for DisplayStateOperationStatus {} | |
244 | impl ::core::clone::Clone for DisplayStateOperationStatus { | |
245 | fn clone(&self) -> Self { | |
246 | *self | |
247 | } | |
248 | } | |
249 | pub type DisplaySurface = *mut ::core::ffi::c_void; | |
250 | pub type DisplayTarget = *mut ::core::ffi::c_void; | |
04454e1e | 251 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
252 | #[repr(transparent)] |
253 | pub struct DisplayTargetPersistence(pub i32); | |
254 | impl DisplayTargetPersistence { | |
255 | pub const None: Self = Self(0i32); | |
256 | pub const BootPersisted: Self = Self(1i32); | |
257 | pub const TemporaryPersisted: Self = Self(2i32); | |
258 | pub const PathPersisted: Self = Self(3i32); | |
259 | } | |
260 | impl ::core::marker::Copy for DisplayTargetPersistence {} | |
261 | impl ::core::clone::Clone for DisplayTargetPersistence { | |
262 | fn clone(&self) -> Self { | |
263 | *self | |
264 | } | |
265 | } | |
266 | pub type DisplayTask = *mut ::core::ffi::c_void; | |
267 | pub type DisplayTaskPool = *mut ::core::ffi::c_void; | |
268 | pub type DisplayTaskResult = *mut ::core::ffi::c_void; | |
04454e1e | 269 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
270 | #[repr(transparent)] |
271 | pub struct DisplayTaskSignalKind(pub i32); | |
272 | impl DisplayTaskSignalKind { | |
273 | pub const OnPresentFlipAway: Self = Self(0i32); | |
274 | pub const OnPresentFlipTo: Self = Self(1i32); | |
275 | } | |
276 | impl ::core::marker::Copy for DisplayTaskSignalKind {} | |
277 | impl ::core::clone::Clone for DisplayTaskSignalKind { | |
278 | fn clone(&self) -> Self { | |
279 | *self | |
280 | } | |
281 | } | |
282 | pub type DisplayView = *mut ::core::ffi::c_void; | |
283 | pub type DisplayWireFormat = *mut ::core::ffi::c_void; | |
04454e1e | 284 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
285 | #[repr(transparent)] |
286 | pub struct DisplayWireFormatColorSpace(pub i32); | |
287 | impl DisplayWireFormatColorSpace { | |
288 | pub const BT709: Self = Self(0i32); | |
289 | pub const BT2020: Self = Self(1i32); | |
290 | pub const ProfileDefinedWideColorGamut: Self = Self(2i32); | |
291 | } | |
292 | impl ::core::marker::Copy for DisplayWireFormatColorSpace {} | |
293 | impl ::core::clone::Clone for DisplayWireFormatColorSpace { | |
294 | fn clone(&self) -> Self { | |
295 | *self | |
296 | } | |
297 | } | |
04454e1e | 298 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
299 | #[repr(transparent)] |
300 | pub struct DisplayWireFormatEotf(pub i32); | |
301 | impl DisplayWireFormatEotf { | |
302 | pub const Sdr: Self = Self(0i32); | |
303 | pub const HdrSmpte2084: Self = Self(1i32); | |
304 | } | |
305 | impl ::core::marker::Copy for DisplayWireFormatEotf {} | |
306 | impl ::core::clone::Clone for DisplayWireFormatEotf { | |
307 | fn clone(&self) -> Self { | |
308 | *self | |
309 | } | |
310 | } | |
04454e1e | 311 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
312 | #[repr(transparent)] |
313 | pub struct DisplayWireFormatHdrMetadata(pub i32); | |
314 | impl DisplayWireFormatHdrMetadata { | |
315 | pub const None: Self = Self(0i32); | |
316 | pub const Hdr10: Self = Self(1i32); | |
317 | pub const Hdr10Plus: Self = Self(2i32); | |
318 | pub const DolbyVisionLowLatency: Self = Self(3i32); | |
319 | } | |
320 | impl ::core::marker::Copy for DisplayWireFormatHdrMetadata {} | |
321 | impl ::core::clone::Clone for DisplayWireFormatHdrMetadata { | |
322 | fn clone(&self) -> Self { | |
323 | *self | |
324 | } | |
325 | } | |
04454e1e | 326 | #[doc = "*Required features: `\"Devices_Display_Core\"`*"] |
5e7ed085 FG |
327 | #[repr(transparent)] |
328 | pub struct DisplayWireFormatPixelEncoding(pub i32); | |
329 | impl DisplayWireFormatPixelEncoding { | |
330 | pub const Rgb444: Self = Self(0i32); | |
331 | pub const Ycc444: Self = Self(1i32); | |
332 | pub const Ycc422: Self = Self(2i32); | |
333 | pub const Ycc420: Self = Self(3i32); | |
334 | pub const Intensity: Self = Self(4i32); | |
335 | } | |
336 | impl ::core::marker::Copy for DisplayWireFormatPixelEncoding {} | |
337 | impl ::core::clone::Clone for DisplayWireFormatPixelEncoding { | |
338 | fn clone(&self) -> Self { | |
339 | *self | |
340 | } | |
341 | } |