winrt-Windows.Devices.Display.Core 2.2.0__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,409 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.devices.display as windows_devices_display
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+ import winrt.windows.foundation.numerics as windows_foundation_numerics
16
+ import winrt.windows.graphics as windows_graphics
17
+ import winrt.windows.graphics.directx as windows_graphics_directx
18
+ import winrt.windows.graphics.directx.direct3d11 as windows_graphics_directx_direct3d11
19
+ import winrt.windows.storage.streams as windows_storage_streams
20
+
21
+ from winrt.windows.devices.display.core import DisplayBitsPerChannel, DisplayDeviceCapability, DisplayManagerOptions, DisplayManagerResult, DisplayModeQueryOptions, DisplayPathScaling, DisplayPathStatus, DisplayPresentStatus, DisplayRotation, DisplayScanoutOptions, DisplaySourceStatus, DisplayStateApplyOptions, DisplayStateFunctionalizeOptions, DisplayStateOperationStatus, DisplayTargetPersistence, DisplayTaskSignalKind, DisplayWireFormatColorSpace, DisplayWireFormatEotf, DisplayWireFormatHdrMetadata, DisplayWireFormatPixelEncoding
22
+
23
+ Self = typing.TypeVar('Self')
24
+
25
+ @typing.final
26
+ class DisplayPresentationRate:
27
+ vertical_sync_rate: windows_foundation_numerics.Rational
28
+ vertical_syncs_per_presentation: winrt.system.Int32
29
+ def __init__(self, vertical_sync_rate: windows_foundation_numerics.Rational, vertical_syncs_per_presentation: winrt.system.Int32) -> None: ...
30
+
31
+ @typing.final
32
+ class DisplayAdapter_Static(type):
33
+ def from_id(cls, id: windows_graphics.DisplayAdapterId, /) -> typing.Optional[DisplayAdapter]: ...
34
+
35
+ @typing.final
36
+ class DisplayAdapter(winrt.system.Object, metaclass=DisplayAdapter_Static):
37
+ @staticmethod
38
+ def _from(obj: winrt.system.Object, /) -> DisplayAdapter: ...
39
+ @_property
40
+ def device_interface_path(self) -> str: ...
41
+ @_property
42
+ def id(self) -> windows_graphics.DisplayAdapterId: ...
43
+ @_property
44
+ def pci_device_id(self) -> winrt.system.UInt32: ...
45
+ @_property
46
+ def pci_revision(self) -> winrt.system.UInt32: ...
47
+ @_property
48
+ def pci_sub_system_id(self) -> winrt.system.UInt32: ...
49
+ @_property
50
+ def pci_vendor_id(self) -> winrt.system.UInt32: ...
51
+ @_property
52
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[_uuid.UUID, winrt.system.Object]]: ...
53
+ @_property
54
+ def source_count(self) -> winrt.system.UInt32: ...
55
+
56
+ @typing.final
57
+ class DisplayDevice(winrt.system.Object):
58
+ @staticmethod
59
+ def _from(obj: winrt.system.Object, /) -> DisplayDevice: ...
60
+ def create_periodic_fence(self, target: typing.Optional[DisplayTarget], offset_from_v_blank: datetime.timedelta, /) -> typing.Optional[DisplayFence]: ...
61
+ def create_primary(self, target: typing.Optional[DisplayTarget], desc: typing.Optional[DisplayPrimaryDescription], /) -> typing.Optional[DisplaySurface]: ...
62
+ def create_scanout_source(self, target: typing.Optional[DisplayTarget], /) -> typing.Optional[DisplaySource]: ...
63
+ def create_simple_scanout(self, p_source: typing.Optional[DisplaySource], p_surface: typing.Optional[DisplaySurface], sub_resource_index: winrt.system.UInt32, sync_interval: winrt.system.UInt32, /) -> typing.Optional[DisplayScanout]: ...
64
+ def create_simple_scanout_with_dirty_rects_and_options(self, source: typing.Optional[DisplaySource], surface: typing.Optional[DisplaySurface], subresource_index: winrt.system.UInt32, sync_interval: winrt.system.UInt32, dirty_rects: typing.Iterable[windows_graphics.RectInt32], options: DisplayScanoutOptions, /) -> typing.Optional[DisplayScanout]: ...
65
+ def create_task_pool(self) -> typing.Optional[DisplayTaskPool]: ...
66
+ def is_capability_supported(self, capability: DisplayDeviceCapability, /) -> bool: ...
67
+ def wait_for_v_blank(self, source: typing.Optional[DisplaySource], /) -> None: ...
68
+
69
+ @typing.final
70
+ class DisplayFence(winrt.system.Object):
71
+ @staticmethod
72
+ def _from(obj: winrt.system.Object, /) -> DisplayFence: ...
73
+
74
+ @typing.final
75
+ class DisplayManager_Static(type):
76
+ def create(cls, options: DisplayManagerOptions, /) -> typing.Optional[DisplayManager]: ...
77
+
78
+ @typing.final
79
+ class DisplayManager(winrt.system.Object, metaclass=DisplayManager_Static):
80
+ def __enter__(self: Self) -> Self: ...
81
+ def __exit__(self, *args) -> None: ...
82
+ @staticmethod
83
+ def _from(obj: winrt.system.Object, /) -> DisplayManager: ...
84
+ def close(self) -> None: ...
85
+ def create_display_device(self, adapter: typing.Optional[DisplayAdapter], /) -> typing.Optional[DisplayDevice]: ...
86
+ def get_current_adapters(self) -> typing.Optional[windows_foundation_collections.IVectorView[DisplayAdapter]]: ...
87
+ def get_current_targets(self) -> typing.Optional[windows_foundation_collections.IVectorView[DisplayTarget]]: ...
88
+ def release_target(self, target: typing.Optional[DisplayTarget], /) -> None: ...
89
+ def start(self) -> None: ...
90
+ def stop(self) -> None: ...
91
+ def try_acquire_target(self, target: typing.Optional[DisplayTarget], /) -> DisplayManagerResult: ...
92
+ def try_acquire_targets_and_create_empty_state(self, targets: typing.Iterable[DisplayTarget], /) -> typing.Optional[DisplayManagerResultWithState]: ...
93
+ def try_acquire_targets_and_create_substate(self, existing_state: typing.Optional[DisplayState], targets: typing.Iterable[DisplayTarget], /) -> typing.Optional[DisplayManagerResultWithState]: ...
94
+ def try_acquire_targets_and_read_current_state(self, targets: typing.Iterable[DisplayTarget], /) -> typing.Optional[DisplayManagerResultWithState]: ...
95
+ def try_read_current_state_for_all_targets(self) -> typing.Optional[DisplayManagerResultWithState]: ...
96
+ def add_changed(self, handler: windows_foundation.TypedEventHandler[DisplayManager, DisplayManagerChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
97
+ def remove_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
98
+ def add_disabled(self, handler: windows_foundation.TypedEventHandler[DisplayManager, DisplayManagerDisabledEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
99
+ def remove_disabled(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
100
+ def add_enabled(self, handler: windows_foundation.TypedEventHandler[DisplayManager, DisplayManagerEnabledEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
101
+ def remove_enabled(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
102
+ def add_paths_failed_or_invalidated(self, handler: windows_foundation.TypedEventHandler[DisplayManager, DisplayManagerPathsFailedOrInvalidatedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
103
+ def remove_paths_failed_or_invalidated(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
104
+
105
+ @typing.final
106
+ class DisplayManagerChangedEventArgs(winrt.system.Object):
107
+ @staticmethod
108
+ def _from(obj: winrt.system.Object, /) -> DisplayManagerChangedEventArgs: ...
109
+ def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
110
+ @_property
111
+ def handled(self) -> bool: ...
112
+ @handled.setter
113
+ def handled(self, value: bool) -> None: ...
114
+
115
+ @typing.final
116
+ class DisplayManagerDisabledEventArgs(winrt.system.Object):
117
+ @staticmethod
118
+ def _from(obj: winrt.system.Object, /) -> DisplayManagerDisabledEventArgs: ...
119
+ def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
120
+ @_property
121
+ def handled(self) -> bool: ...
122
+ @handled.setter
123
+ def handled(self, value: bool) -> None: ...
124
+
125
+ @typing.final
126
+ class DisplayManagerEnabledEventArgs(winrt.system.Object):
127
+ @staticmethod
128
+ def _from(obj: winrt.system.Object, /) -> DisplayManagerEnabledEventArgs: ...
129
+ def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
130
+ @_property
131
+ def handled(self) -> bool: ...
132
+ @handled.setter
133
+ def handled(self, value: bool) -> None: ...
134
+
135
+ @typing.final
136
+ class DisplayManagerPathsFailedOrInvalidatedEventArgs(winrt.system.Object):
137
+ @staticmethod
138
+ def _from(obj: winrt.system.Object, /) -> DisplayManagerPathsFailedOrInvalidatedEventArgs: ...
139
+ def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
140
+ @_property
141
+ def handled(self) -> bool: ...
142
+ @handled.setter
143
+ def handled(self, value: bool) -> None: ...
144
+
145
+ @typing.final
146
+ class DisplayManagerResultWithState(winrt.system.Object):
147
+ @staticmethod
148
+ def _from(obj: winrt.system.Object, /) -> DisplayManagerResultWithState: ...
149
+ @_property
150
+ def error_code(self) -> DisplayManagerResult: ...
151
+ @_property
152
+ def extended_error_code(self) -> windows_foundation.HResult: ...
153
+ @_property
154
+ def state(self) -> typing.Optional[DisplayState]: ...
155
+
156
+ @typing.final
157
+ class DisplayModeInfo(winrt.system.Object):
158
+ @staticmethod
159
+ def _from(obj: winrt.system.Object, /) -> DisplayModeInfo: ...
160
+ def get_wire_format_supported_bits_per_channel(self, encoding: DisplayWireFormatPixelEncoding, /) -> DisplayBitsPerChannel: ...
161
+ def is_wire_format_supported(self, wire_format: typing.Optional[DisplayWireFormat], /) -> bool: ...
162
+ @_property
163
+ def is_interlaced(self) -> bool: ...
164
+ @_property
165
+ def is_stereo(self) -> bool: ...
166
+ @_property
167
+ def presentation_rate(self) -> DisplayPresentationRate: ...
168
+ @_property
169
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[_uuid.UUID, winrt.system.Object]]: ...
170
+ @_property
171
+ def source_pixel_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
172
+ @_property
173
+ def source_resolution(self) -> windows_graphics.SizeInt32: ...
174
+ @_property
175
+ def target_resolution(self) -> windows_graphics.SizeInt32: ...
176
+ @_property
177
+ def physical_presentation_rate(self) -> DisplayPresentationRate: ...
178
+
179
+ @typing.final
180
+ class DisplayPath(winrt.system.Object):
181
+ @staticmethod
182
+ def _from(obj: winrt.system.Object, /) -> DisplayPath: ...
183
+ def apply_properties_from_mode(self, mode_result: typing.Optional[DisplayModeInfo], /) -> None: ...
184
+ def find_modes(self, flags: DisplayModeQueryOptions, /) -> typing.Optional[windows_foundation_collections.IVectorView[DisplayModeInfo]]: ...
185
+ @_property
186
+ def wire_format(self) -> typing.Optional[DisplayWireFormat]: ...
187
+ @wire_format.setter
188
+ def wire_format(self, value: typing.Optional[DisplayWireFormat]) -> None: ...
189
+ @_property
190
+ def target_resolution(self) -> typing.Optional[typing.Optional[windows_graphics.SizeInt32]]: ...
191
+ @target_resolution.setter
192
+ def target_resolution(self, value: typing.Optional[typing.Optional[windows_graphics.SizeInt32]]) -> None: ...
193
+ @_property
194
+ def source_resolution(self) -> typing.Optional[typing.Optional[windows_graphics.SizeInt32]]: ...
195
+ @source_resolution.setter
196
+ def source_resolution(self, value: typing.Optional[typing.Optional[windows_graphics.SizeInt32]]) -> None: ...
197
+ @_property
198
+ def source_pixel_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
199
+ @source_pixel_format.setter
200
+ def source_pixel_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
201
+ @_property
202
+ def scaling(self) -> DisplayPathScaling: ...
203
+ @scaling.setter
204
+ def scaling(self, value: DisplayPathScaling) -> None: ...
205
+ @_property
206
+ def rotation(self) -> DisplayRotation: ...
207
+ @rotation.setter
208
+ def rotation(self, value: DisplayRotation) -> None: ...
209
+ @_property
210
+ def presentation_rate(self) -> typing.Optional[typing.Optional[DisplayPresentationRate]]: ...
211
+ @presentation_rate.setter
212
+ def presentation_rate(self, value: typing.Optional[typing.Optional[DisplayPresentationRate]]) -> None: ...
213
+ @_property
214
+ def is_stereo(self) -> bool: ...
215
+ @is_stereo.setter
216
+ def is_stereo(self, value: bool) -> None: ...
217
+ @_property
218
+ def is_interlaced(self) -> typing.Optional[typing.Optional[bool]]: ...
219
+ @is_interlaced.setter
220
+ def is_interlaced(self, value: typing.Optional[typing.Optional[bool]]) -> None: ...
221
+ @_property
222
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMap[_uuid.UUID, winrt.system.Object]]: ...
223
+ @_property
224
+ def status(self) -> DisplayPathStatus: ...
225
+ @_property
226
+ def target(self) -> typing.Optional[DisplayTarget]: ...
227
+ @_property
228
+ def view(self) -> typing.Optional[DisplayView]: ...
229
+ @_property
230
+ def physical_presentation_rate(self) -> typing.Optional[typing.Optional[DisplayPresentationRate]]: ...
231
+ @physical_presentation_rate.setter
232
+ def physical_presentation_rate(self, value: typing.Optional[typing.Optional[DisplayPresentationRate]]) -> None: ...
233
+
234
+ @typing.final
235
+ class DisplayPrimaryDescription_Static(type):
236
+ def create_with_properties(cls, extra_properties: typing.Iterable[windows_foundation_collections.IKeyValuePair[_uuid.UUID, winrt.system.Object]], width: winrt.system.UInt32, height: winrt.system.UInt32, pixel_format: windows_graphics_directx.DirectXPixelFormat, color_space: windows_graphics_directx.DirectXColorSpace, is_stereo: bool, multisample_description: windows_graphics_directx_direct3d11.Direct3DMultisampleDescription, /) -> typing.Optional[DisplayPrimaryDescription]: ...
237
+
238
+ @typing.final
239
+ class DisplayPrimaryDescription(winrt.system.Object, metaclass=DisplayPrimaryDescription_Static):
240
+ @staticmethod
241
+ def _from(obj: winrt.system.Object, /) -> DisplayPrimaryDescription: ...
242
+ def __new__(cls: typing.Type[DisplayPrimaryDescription], width: winrt.system.UInt32, height: winrt.system.UInt32, pixel_format: windows_graphics_directx.DirectXPixelFormat, color_space: windows_graphics_directx.DirectXColorSpace, is_stereo: bool, multisample_description: windows_graphics_directx_direct3d11.Direct3DMultisampleDescription) -> DisplayPrimaryDescription: ...
243
+ @_property
244
+ def color_space(self) -> windows_graphics_directx.DirectXColorSpace: ...
245
+ @_property
246
+ def format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
247
+ @_property
248
+ def height(self) -> winrt.system.UInt32: ...
249
+ @_property
250
+ def is_stereo(self) -> bool: ...
251
+ @_property
252
+ def multisample_description(self) -> windows_graphics_directx_direct3d11.Direct3DMultisampleDescription: ...
253
+ @_property
254
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[_uuid.UUID, winrt.system.Object]]: ...
255
+ @_property
256
+ def width(self) -> winrt.system.UInt32: ...
257
+
258
+ @typing.final
259
+ class DisplayScanout(winrt.system.Object):
260
+ @staticmethod
261
+ def _from(obj: winrt.system.Object, /) -> DisplayScanout: ...
262
+
263
+ @typing.final
264
+ class DisplaySource(winrt.system.Object):
265
+ @staticmethod
266
+ def _from(obj: winrt.system.Object, /) -> DisplaySource: ...
267
+ def get_metadata(self, key: _uuid.UUID, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
268
+ def add_status_changed(self, handler: windows_foundation.TypedEventHandler[DisplaySource, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
269
+ def remove_status_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
270
+ @_property
271
+ def adapter_id(self) -> windows_graphics.DisplayAdapterId: ...
272
+ @_property
273
+ def source_id(self) -> winrt.system.UInt32: ...
274
+ @_property
275
+ def status(self) -> DisplaySourceStatus: ...
276
+
277
+ @typing.final
278
+ class DisplayState(winrt.system.Object):
279
+ @staticmethod
280
+ def _from(obj: winrt.system.Object, /) -> DisplayState: ...
281
+ def can_connect_target_to_view(self, target: typing.Optional[DisplayTarget], view: typing.Optional[DisplayView], /) -> bool: ...
282
+ def clone(self) -> typing.Optional[DisplayState]: ...
283
+ @typing.overload
284
+ def connect_target(self, target: typing.Optional[DisplayTarget], /) -> typing.Optional[DisplayPath]: ...
285
+ @typing.overload
286
+ def connect_target(self, target: typing.Optional[DisplayTarget], view: typing.Optional[DisplayView], /) -> typing.Optional[DisplayPath]: ...
287
+ def disconnect_target(self, target: typing.Optional[DisplayTarget], /) -> None: ...
288
+ def get_path_for_target(self, target: typing.Optional[DisplayTarget], /) -> typing.Optional[DisplayPath]: ...
289
+ def get_view_for_target(self, target: typing.Optional[DisplayTarget], /) -> typing.Optional[DisplayView]: ...
290
+ def try_apply(self, options: DisplayStateApplyOptions, /) -> typing.Optional[DisplayStateOperationResult]: ...
291
+ def try_functionalize(self, options: DisplayStateFunctionalizeOptions, /) -> typing.Optional[DisplayStateOperationResult]: ...
292
+ @_property
293
+ def is_read_only(self) -> bool: ...
294
+ @_property
295
+ def is_stale(self) -> bool: ...
296
+ @_property
297
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMap[_uuid.UUID, winrt.system.Object]]: ...
298
+ @_property
299
+ def targets(self) -> typing.Optional[windows_foundation_collections.IVectorView[DisplayTarget]]: ...
300
+ @_property
301
+ def views(self) -> typing.Optional[windows_foundation_collections.IVectorView[DisplayView]]: ...
302
+
303
+ @typing.final
304
+ class DisplayStateOperationResult(winrt.system.Object):
305
+ @staticmethod
306
+ def _from(obj: winrt.system.Object, /) -> DisplayStateOperationResult: ...
307
+ @_property
308
+ def extended_error_code(self) -> windows_foundation.HResult: ...
309
+ @_property
310
+ def status(self) -> DisplayStateOperationStatus: ...
311
+
312
+ @typing.final
313
+ class DisplaySurface(winrt.system.Object):
314
+ @staticmethod
315
+ def _from(obj: winrt.system.Object, /) -> DisplaySurface: ...
316
+
317
+ @typing.final
318
+ class DisplayTarget(winrt.system.Object):
319
+ @staticmethod
320
+ def _from(obj: winrt.system.Object, /) -> DisplayTarget: ...
321
+ def is_equal(self, other_target: typing.Optional[DisplayTarget], /) -> bool: ...
322
+ def is_same(self, other_target: typing.Optional[DisplayTarget], /) -> bool: ...
323
+ def try_get_monitor(self) -> typing.Optional[windows_devices_display.DisplayMonitor]: ...
324
+ @_property
325
+ def adapter(self) -> typing.Optional[DisplayAdapter]: ...
326
+ @_property
327
+ def adapter_relative_id(self) -> winrt.system.UInt32: ...
328
+ @_property
329
+ def device_interface_path(self) -> str: ...
330
+ @_property
331
+ def is_connected(self) -> bool: ...
332
+ @_property
333
+ def is_stale(self) -> bool: ...
334
+ @_property
335
+ def is_virtual_mode_enabled(self) -> bool: ...
336
+ @_property
337
+ def is_virtual_topology_enabled(self) -> bool: ...
338
+ @_property
339
+ def monitor_persistence(self) -> DisplayTargetPersistence: ...
340
+ @_property
341
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[_uuid.UUID, winrt.system.Object]]: ...
342
+ @_property
343
+ def stable_monitor_id(self) -> str: ...
344
+ @_property
345
+ def usage_kind(self) -> windows_devices_display.DisplayMonitorUsageKind: ...
346
+
347
+ @typing.final
348
+ class DisplayTask(winrt.system.Object):
349
+ @staticmethod
350
+ def _from(obj: winrt.system.Object, /) -> DisplayTask: ...
351
+ def set_scanout(self, scanout: typing.Optional[DisplayScanout], /) -> None: ...
352
+ def set_signal(self, signal_kind: DisplayTaskSignalKind, fence: typing.Optional[DisplayFence], /) -> None: ...
353
+ def set_wait(self, ready_fence: typing.Optional[DisplayFence], ready_fence_value: winrt.system.UInt64, /) -> None: ...
354
+
355
+ @typing.final
356
+ class DisplayTaskPool(winrt.system.Object):
357
+ @staticmethod
358
+ def _from(obj: winrt.system.Object, /) -> DisplayTaskPool: ...
359
+ def create_task(self) -> typing.Optional[DisplayTask]: ...
360
+ def execute_task(self, task: typing.Optional[DisplayTask], /) -> None: ...
361
+ def try_execute_task(self, task: typing.Optional[DisplayTask], /) -> typing.Optional[DisplayTaskResult]: ...
362
+
363
+ @typing.final
364
+ class DisplayTaskResult(winrt.system.Object):
365
+ @staticmethod
366
+ def _from(obj: winrt.system.Object, /) -> DisplayTaskResult: ...
367
+ @_property
368
+ def present_id(self) -> winrt.system.UInt64: ...
369
+ @_property
370
+ def present_status(self) -> DisplayPresentStatus: ...
371
+ @_property
372
+ def source_status(self) -> DisplaySourceStatus: ...
373
+
374
+ @typing.final
375
+ class DisplayView(winrt.system.Object):
376
+ @staticmethod
377
+ def _from(obj: winrt.system.Object, /) -> DisplayView: ...
378
+ def set_primary_path(self, path: typing.Optional[DisplayPath], /) -> None: ...
379
+ @_property
380
+ def content_resolution(self) -> typing.Optional[typing.Optional[windows_graphics.SizeInt32]]: ...
381
+ @content_resolution.setter
382
+ def content_resolution(self, value: typing.Optional[typing.Optional[windows_graphics.SizeInt32]]) -> None: ...
383
+ @_property
384
+ def paths(self) -> typing.Optional[windows_foundation_collections.IVectorView[DisplayPath]]: ...
385
+ @_property
386
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMap[_uuid.UUID, winrt.system.Object]]: ...
387
+
388
+ @typing.final
389
+ class DisplayWireFormat_Static(type):
390
+ def create_with_properties(cls, extra_properties: typing.Iterable[windows_foundation_collections.IKeyValuePair[_uuid.UUID, winrt.system.Object]], pixel_encoding: DisplayWireFormatPixelEncoding, bits_per_channel: winrt.system.Int32, color_space: DisplayWireFormatColorSpace, eotf: DisplayWireFormatEotf, hdr_metadata: DisplayWireFormatHdrMetadata, /) -> typing.Optional[DisplayWireFormat]: ...
391
+
392
+ @typing.final
393
+ class DisplayWireFormat(winrt.system.Object, metaclass=DisplayWireFormat_Static):
394
+ @staticmethod
395
+ def _from(obj: winrt.system.Object, /) -> DisplayWireFormat: ...
396
+ def __new__(cls: typing.Type[DisplayWireFormat], pixel_encoding: DisplayWireFormatPixelEncoding, bits_per_channel: winrt.system.Int32, color_space: DisplayWireFormatColorSpace, eotf: DisplayWireFormatEotf, hdr_metadata: DisplayWireFormatHdrMetadata) -> DisplayWireFormat: ...
397
+ @_property
398
+ def bits_per_channel(self) -> winrt.system.Int32: ...
399
+ @_property
400
+ def color_space(self) -> DisplayWireFormatColorSpace: ...
401
+ @_property
402
+ def eotf(self) -> DisplayWireFormatEotf: ...
403
+ @_property
404
+ def hdr_metadata(self) -> DisplayWireFormatHdrMetadata: ...
405
+ @_property
406
+ def pixel_encoding(self) -> DisplayWireFormatPixelEncoding: ...
407
+ @_property
408
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[_uuid.UUID, winrt.system.Object]]: ...
409
+
@@ -0,0 +1,200 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_devices_display_core
7
+
8
+ __all__ = [
9
+ "DisplayBitsPerChannel",
10
+ "DisplayDeviceCapability",
11
+ "DisplayManagerOptions",
12
+ "DisplayManagerResult",
13
+ "DisplayModeQueryOptions",
14
+ "DisplayPathScaling",
15
+ "DisplayPathStatus",
16
+ "DisplayPresentStatus",
17
+ "DisplayRotation",
18
+ "DisplayScanoutOptions",
19
+ "DisplaySourceStatus",
20
+ "DisplayStateApplyOptions",
21
+ "DisplayStateFunctionalizeOptions",
22
+ "DisplayStateOperationStatus",
23
+ "DisplayTargetPersistence",
24
+ "DisplayTaskSignalKind",
25
+ "DisplayWireFormatColorSpace",
26
+ "DisplayWireFormatEotf",
27
+ "DisplayWireFormatHdrMetadata",
28
+ "DisplayWireFormatPixelEncoding",
29
+ "DisplayPresentationRate",
30
+ "DisplayAdapter",
31
+ "DisplayDevice",
32
+ "DisplayFence",
33
+ "DisplayManager",
34
+ "DisplayManagerChangedEventArgs",
35
+ "DisplayManagerDisabledEventArgs",
36
+ "DisplayManagerEnabledEventArgs",
37
+ "DisplayManagerPathsFailedOrInvalidatedEventArgs",
38
+ "DisplayManagerResultWithState",
39
+ "DisplayModeInfo",
40
+ "DisplayPath",
41
+ "DisplayPrimaryDescription",
42
+ "DisplayScanout",
43
+ "DisplaySource",
44
+ "DisplayState",
45
+ "DisplayStateOperationResult",
46
+ "DisplaySurface",
47
+ "DisplayTarget",
48
+ "DisplayTask",
49
+ "DisplayTaskPool",
50
+ "DisplayTaskResult",
51
+ "DisplayView",
52
+ "DisplayWireFormat",
53
+ ]
54
+
55
+ class DisplayBitsPerChannel(enum.IntFlag):
56
+ NONE = 0x0
57
+ BPC6 = 0x1
58
+ BPC8 = 0x2
59
+ BPC10 = 0x4
60
+ BPC12 = 0x8
61
+ BPC14 = 0x10
62
+ BPC16 = 0x20
63
+
64
+ class DisplayDeviceCapability(enum.IntEnum):
65
+ FLIP_OVERRIDE = 0
66
+
67
+ class DisplayManagerOptions(enum.IntFlag):
68
+ NONE = 0x0
69
+ ENFORCE_SOURCE_OWNERSHIP = 0x1
70
+ VIRTUAL_REFRESH_RATE_AWARE = 0x2
71
+
72
+ class DisplayManagerResult(enum.IntEnum):
73
+ SUCCESS = 0
74
+ UNKNOWN_FAILURE = 1
75
+ TARGET_ACCESS_DENIED = 2
76
+ TARGET_STALE = 3
77
+ REMOTE_SESSION_NOT_SUPPORTED = 4
78
+
79
+ class DisplayModeQueryOptions(enum.IntFlag):
80
+ NONE = 0x0
81
+ ONLY_PREFERRED_RESOLUTION = 0x1
82
+
83
+ class DisplayPathScaling(enum.IntEnum):
84
+ IDENTITY = 0
85
+ CENTERED = 1
86
+ STRETCHED = 2
87
+ ASPECT_RATIO_STRETCHED = 3
88
+ CUSTOM = 4
89
+ DRIVER_PREFERRED = 5
90
+
91
+ class DisplayPathStatus(enum.IntEnum):
92
+ UNKNOWN = 0
93
+ SUCCEEDED = 1
94
+ PENDING = 2
95
+ FAILED = 3
96
+ FAILED_ASYNC = 4
97
+ INVALIDATED_ASYNC = 5
98
+
99
+ class DisplayPresentStatus(enum.IntEnum):
100
+ SUCCESS = 0
101
+ SOURCE_STATUS_PREVENTED_PRESENT = 1
102
+ SCANOUT_INVALID = 2
103
+ SOURCE_INVALID = 3
104
+ DEVICE_INVALID = 4
105
+ UNKNOWN_FAILURE = 5
106
+
107
+ class DisplayRotation(enum.IntEnum):
108
+ NONE = 0
109
+ CLOCKWISE90_DEGREES = 1
110
+ CLOCKWISE180_DEGREES = 2
111
+ CLOCKWISE270_DEGREES = 3
112
+
113
+ class DisplayScanoutOptions(enum.IntFlag):
114
+ NONE = 0x0
115
+ ALLOW_TEARING = 0x2
116
+
117
+ class DisplaySourceStatus(enum.IntEnum):
118
+ ACTIVE = 0
119
+ POWERED_OFF = 1
120
+ INVALID = 2
121
+ OWNED_BY_ANOTHER_DEVICE = 3
122
+ UNOWNED = 4
123
+
124
+ class DisplayStateApplyOptions(enum.IntFlag):
125
+ NONE = 0x0
126
+ FAIL_IF_STATE_CHANGED = 0x1
127
+ FORCE_REAPPLY = 0x2
128
+ FORCE_MODE_ENUMERATION = 0x4
129
+
130
+ class DisplayStateFunctionalizeOptions(enum.IntFlag):
131
+ NONE = 0x0
132
+ FAIL_IF_STATE_CHANGED = 0x1
133
+ VALIDATE_TOPOLOGY_ONLY = 0x2
134
+
135
+ class DisplayStateOperationStatus(enum.IntEnum):
136
+ SUCCESS = 0
137
+ PARTIAL_FAILURE = 1
138
+ UNKNOWN_FAILURE = 2
139
+ TARGET_OWNERSHIP_LOST = 3
140
+ SYSTEM_STATE_CHANGED = 4
141
+ TOO_MANY_PATHS_FOR_ADAPTER = 5
142
+ MODES_NOT_SUPPORTED = 6
143
+ REMOTE_SESSION_NOT_SUPPORTED = 7
144
+
145
+ class DisplayTargetPersistence(enum.IntEnum):
146
+ NONE = 0
147
+ BOOT_PERSISTED = 1
148
+ TEMPORARY_PERSISTED = 2
149
+ PATH_PERSISTED = 3
150
+
151
+ class DisplayTaskSignalKind(enum.IntEnum):
152
+ ON_PRESENT_FLIP_AWAY = 0
153
+ ON_PRESENT_FLIP_TO = 1
154
+
155
+ class DisplayWireFormatColorSpace(enum.IntEnum):
156
+ B_T709 = 0
157
+ B_T2020 = 1
158
+ PROFILE_DEFINED_WIDE_COLOR_GAMUT = 2
159
+
160
+ class DisplayWireFormatEotf(enum.IntEnum):
161
+ SDR = 0
162
+ HDR_SMPTE2084 = 1
163
+
164
+ class DisplayWireFormatHdrMetadata(enum.IntEnum):
165
+ NONE = 0
166
+ HDR10 = 1
167
+ HDR10_PLUS = 2
168
+ DOLBY_VISION_LOW_LATENCY = 3
169
+
170
+ class DisplayWireFormatPixelEncoding(enum.IntEnum):
171
+ RGB444 = 0
172
+ YCC444 = 1
173
+ YCC422 = 2
174
+ YCC420 = 3
175
+ INTENSITY = 4
176
+
177
+ DisplayPresentationRate = _winrt_windows_devices_display_core.DisplayPresentationRate
178
+ DisplayAdapter = _winrt_windows_devices_display_core.DisplayAdapter
179
+ DisplayDevice = _winrt_windows_devices_display_core.DisplayDevice
180
+ DisplayFence = _winrt_windows_devices_display_core.DisplayFence
181
+ DisplayManager = _winrt_windows_devices_display_core.DisplayManager
182
+ DisplayManagerChangedEventArgs = _winrt_windows_devices_display_core.DisplayManagerChangedEventArgs
183
+ DisplayManagerDisabledEventArgs = _winrt_windows_devices_display_core.DisplayManagerDisabledEventArgs
184
+ DisplayManagerEnabledEventArgs = _winrt_windows_devices_display_core.DisplayManagerEnabledEventArgs
185
+ DisplayManagerPathsFailedOrInvalidatedEventArgs = _winrt_windows_devices_display_core.DisplayManagerPathsFailedOrInvalidatedEventArgs
186
+ DisplayManagerResultWithState = _winrt_windows_devices_display_core.DisplayManagerResultWithState
187
+ DisplayModeInfo = _winrt_windows_devices_display_core.DisplayModeInfo
188
+ DisplayPath = _winrt_windows_devices_display_core.DisplayPath
189
+ DisplayPrimaryDescription = _winrt_windows_devices_display_core.DisplayPrimaryDescription
190
+ DisplayScanout = _winrt_windows_devices_display_core.DisplayScanout
191
+ DisplaySource = _winrt_windows_devices_display_core.DisplaySource
192
+ DisplayState = _winrt_windows_devices_display_core.DisplayState
193
+ DisplayStateOperationResult = _winrt_windows_devices_display_core.DisplayStateOperationResult
194
+ DisplaySurface = _winrt_windows_devices_display_core.DisplaySurface
195
+ DisplayTarget = _winrt_windows_devices_display_core.DisplayTarget
196
+ DisplayTask = _winrt_windows_devices_display_core.DisplayTask
197
+ DisplayTaskPool = _winrt_windows_devices_display_core.DisplayTaskPool
198
+ DisplayTaskResult = _winrt_windows_devices_display_core.DisplayTaskResult
199
+ DisplayView = _winrt_windows_devices_display_core.DisplayView
200
+ DisplayWireFormat = _winrt_windows_devices_display_core.DisplayWireFormat
File without changes
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Devices.Display.Core
3
+ Version: 2.2.0
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.14,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime ==2.2.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Devices.Display[all] ==2.2.0 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
20
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all] ==2.2.0 ; extra == 'all'
21
+ Requires-Dist: winrt-Windows.Graphics[all] ==2.2.0 ; extra == 'all'
22
+ Requires-Dist: winrt-Windows.Graphics.DirectX[all] ==2.2.0 ; extra == 'all'
23
+ Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all] ==2.2.0 ; extra == 'all'
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
25
+
26
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
27
+
28
+ # winrt-Windows.Devices.Display.Core
29
+
30
+ Windows Runtime (WinRT) APIs for for the `Windows.Devices.Display.Core` namespace.
31
+
32
+ This package provides the `winrt.windows.devices.display.core` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_devices_display_core.cp313-win_amd64.pyd,sha256=WG9u96xrbYzu_BMI8VpXC8-8aGiY6g2afBzzTLekMgE,345088
2
+ winrt/_winrt_windows_devices_display_core.pyi,sha256=BTTHZMv3A4GTakiqEei37_KTrj9QOm6pMINQVs7-VMw,22160
3
+ winrt/windows/devices/display/core/__init__.py,sha256=cP-1mrZXdiHrRTmeEZQFdlxUhQ72krCTAa8ZkPbA9AU,6067
4
+ winrt/windows/devices/display/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_Windows.Devices.Display.Core-2.2.0.dist-info/METADATA,sha256=U3XGb0ej0Luh6VgMbRfxlvBaPUm8VWL9ouGNYzFIyGA,1612
6
+ winrt_Windows.Devices.Display.Core-2.2.0.dist-info/WHEEL,sha256=CdxowNJ2RPRCxUxJWAQ4R_o8uA51cjotGywc47Ht6wA,101
7
+ winrt_Windows.Devices.Display.Core-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_Windows.Devices.Display.Core-2.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (73.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_amd64
5
+