]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Devices/Display/Core/mod.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Devices / Display / Core / mod.rs
CommitLineData
5e7ed085
FG
1#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2pub type DisplayAdapter = *mut ::core::ffi::c_void;
04454e1e 3#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
4#[repr(transparent)]
5pub struct DisplayBitsPerChannel(pub u32);
6impl 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}
15impl ::core::marker::Copy for DisplayBitsPerChannel {}
16impl ::core::clone::Clone for DisplayBitsPerChannel {
17 fn clone(&self) -> Self {
18 *self
19 }
20}
21pub type DisplayDevice = *mut ::core::ffi::c_void;
04454e1e 22#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
23#[repr(transparent)]
24pub struct DisplayDeviceCapability(pub i32);
25impl DisplayDeviceCapability {
26 pub const FlipOverride: Self = Self(0i32);
27}
28impl ::core::marker::Copy for DisplayDeviceCapability {}
29impl ::core::clone::Clone for DisplayDeviceCapability {
30 fn clone(&self) -> Self {
31 *self
32 }
33}
34pub type DisplayFence = *mut ::core::ffi::c_void;
35pub type DisplayManager = *mut ::core::ffi::c_void;
36pub type DisplayManagerChangedEventArgs = *mut ::core::ffi::c_void;
37pub type DisplayManagerDisabledEventArgs = *mut ::core::ffi::c_void;
38pub type DisplayManagerEnabledEventArgs = *mut ::core::ffi::c_void;
04454e1e 39#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
40#[repr(transparent)]
41pub struct DisplayManagerOptions(pub u32);
42impl DisplayManagerOptions {
43 pub const None: Self = Self(0u32);
44 pub const EnforceSourceOwnership: Self = Self(1u32);
45 pub const VirtualRefreshRateAware: Self = Self(2u32);
46}
47impl ::core::marker::Copy for DisplayManagerOptions {}
48impl ::core::clone::Clone for DisplayManagerOptions {
49 fn clone(&self) -> Self {
50 *self
51 }
52}
53pub type DisplayManagerPathsFailedOrInvalidatedEventArgs = *mut ::core::ffi::c_void;
04454e1e 54#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
55#[repr(transparent)]
56pub struct DisplayManagerResult(pub i32);
57impl 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}
64impl ::core::marker::Copy for DisplayManagerResult {}
65impl ::core::clone::Clone for DisplayManagerResult {
66 fn clone(&self) -> Self {
67 *self
68 }
69}
70pub type DisplayManagerResultWithState = *mut ::core::ffi::c_void;
71pub type DisplayModeInfo = *mut ::core::ffi::c_void;
04454e1e 72#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
73#[repr(transparent)]
74pub struct DisplayModeQueryOptions(pub u32);
75impl DisplayModeQueryOptions {
76 pub const None: Self = Self(0u32);
77 pub const OnlyPreferredResolution: Self = Self(1u32);
78}
79impl ::core::marker::Copy for DisplayModeQueryOptions {}
80impl ::core::clone::Clone for DisplayModeQueryOptions {
81 fn clone(&self) -> Self {
82 *self
83 }
84}
85pub type DisplayPath = *mut ::core::ffi::c_void;
04454e1e 86#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
87#[repr(transparent)]
88pub struct DisplayPathScaling(pub i32);
89impl 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}
97impl ::core::marker::Copy for DisplayPathScaling {}
98impl ::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)]
105pub struct DisplayPathStatus(pub i32);
106impl 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}
114impl ::core::marker::Copy for DisplayPathStatus {}
115impl ::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)]
122pub struct DisplayPresentStatus(pub i32);
123impl 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}
131impl ::core::marker::Copy for DisplayPresentStatus {}
132impl ::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")]
140pub struct DisplayPresentationRate {
141 pub VerticalSyncRate: super::super::super::Foundation::Numerics::Rational,
142 pub VerticalSyncsPerPresentation: i32,
143}
144#[cfg(feature = "Foundation_Numerics")]
145impl ::core::marker::Copy for DisplayPresentationRate {}
146#[cfg(feature = "Foundation_Numerics")]
147impl ::core::clone::Clone for DisplayPresentationRate {
148 fn clone(&self) -> Self {
149 *self
150 }
151}
152pub type DisplayPrimaryDescription = *mut ::core::ffi::c_void;
04454e1e 153#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
154#[repr(transparent)]
155pub struct DisplayRotation(pub i32);
156impl 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}
162impl ::core::marker::Copy for DisplayRotation {}
163impl ::core::clone::Clone for DisplayRotation {
164 fn clone(&self) -> Self {
165 *self
166 }
167}
168pub type DisplayScanout = *mut ::core::ffi::c_void;
04454e1e 169#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
170#[repr(transparent)]
171pub struct DisplayScanoutOptions(pub u32);
172impl DisplayScanoutOptions {
173 pub const None: Self = Self(0u32);
174 pub const AllowTearing: Self = Self(2u32);
175}
176impl ::core::marker::Copy for DisplayScanoutOptions {}
177impl ::core::clone::Clone for DisplayScanoutOptions {
178 fn clone(&self) -> Self {
179 *self
180 }
181}
182pub type DisplaySource = *mut ::core::ffi::c_void;
04454e1e 183#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
184#[repr(transparent)]
185pub struct DisplaySourceStatus(pub i32);
186impl 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}
193impl ::core::marker::Copy for DisplaySourceStatus {}
194impl ::core::clone::Clone for DisplaySourceStatus {
195 fn clone(&self) -> Self {
196 *self
197 }
198}
199pub type DisplayState = *mut ::core::ffi::c_void;
04454e1e 200#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
201#[repr(transparent)]
202pub struct DisplayStateApplyOptions(pub u32);
203impl 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}
209impl ::core::marker::Copy for DisplayStateApplyOptions {}
210impl ::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)]
217pub struct DisplayStateFunctionalizeOptions(pub u32);
218impl DisplayStateFunctionalizeOptions {
219 pub const None: Self = Self(0u32);
220 pub const FailIfStateChanged: Self = Self(1u32);
221 pub const ValidateTopologyOnly: Self = Self(2u32);
222}
223impl ::core::marker::Copy for DisplayStateFunctionalizeOptions {}
224impl ::core::clone::Clone for DisplayStateFunctionalizeOptions {
225 fn clone(&self) -> Self {
226 *self
227 }
228}
229pub type DisplayStateOperationResult = *mut ::core::ffi::c_void;
04454e1e 230#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
231#[repr(transparent)]
232pub struct DisplayStateOperationStatus(pub i32);
233impl 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}
243impl ::core::marker::Copy for DisplayStateOperationStatus {}
244impl ::core::clone::Clone for DisplayStateOperationStatus {
245 fn clone(&self) -> Self {
246 *self
247 }
248}
249pub type DisplaySurface = *mut ::core::ffi::c_void;
250pub type DisplayTarget = *mut ::core::ffi::c_void;
04454e1e 251#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
252#[repr(transparent)]
253pub struct DisplayTargetPersistence(pub i32);
254impl 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}
260impl ::core::marker::Copy for DisplayTargetPersistence {}
261impl ::core::clone::Clone for DisplayTargetPersistence {
262 fn clone(&self) -> Self {
263 *self
264 }
265}
266pub type DisplayTask = *mut ::core::ffi::c_void;
267pub type DisplayTaskPool = *mut ::core::ffi::c_void;
268pub type DisplayTaskResult = *mut ::core::ffi::c_void;
04454e1e 269#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
270#[repr(transparent)]
271pub struct DisplayTaskSignalKind(pub i32);
272impl DisplayTaskSignalKind {
273 pub const OnPresentFlipAway: Self = Self(0i32);
274 pub const OnPresentFlipTo: Self = Self(1i32);
275}
276impl ::core::marker::Copy for DisplayTaskSignalKind {}
277impl ::core::clone::Clone for DisplayTaskSignalKind {
278 fn clone(&self) -> Self {
279 *self
280 }
281}
282pub type DisplayView = *mut ::core::ffi::c_void;
283pub type DisplayWireFormat = *mut ::core::ffi::c_void;
04454e1e 284#[doc = "*Required features: `\"Devices_Display_Core\"`*"]
5e7ed085
FG
285#[repr(transparent)]
286pub struct DisplayWireFormatColorSpace(pub i32);
287impl DisplayWireFormatColorSpace {
288 pub const BT709: Self = Self(0i32);
289 pub const BT2020: Self = Self(1i32);
290 pub const ProfileDefinedWideColorGamut: Self = Self(2i32);
291}
292impl ::core::marker::Copy for DisplayWireFormatColorSpace {}
293impl ::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)]
300pub struct DisplayWireFormatEotf(pub i32);
301impl DisplayWireFormatEotf {
302 pub const Sdr: Self = Self(0i32);
303 pub const HdrSmpte2084: Self = Self(1i32);
304}
305impl ::core::marker::Copy for DisplayWireFormatEotf {}
306impl ::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)]
313pub struct DisplayWireFormatHdrMetadata(pub i32);
314impl 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}
320impl ::core::marker::Copy for DisplayWireFormatHdrMetadata {}
321impl ::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)]
328pub struct DisplayWireFormatPixelEncoding(pub i32);
329impl 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}
336impl ::core::marker::Copy for DisplayWireFormatPixelEncoding {}
337impl ::core::clone::Clone for DisplayWireFormatPixelEncoding {
338 fn clone(&self) -> Self {
339 *self
340 }
341}