winrt-Windows.Graphics.Capture 3.2.1__cp314-cp314-win32.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.
- winrt/_winrt_windows_graphics_capture.cp314-win32.pyd +0 -0
- winrt/_winrt_windows_graphics_capture.pyi +155 -0
- winrt/windows/graphics/capture/__init__.py +33 -0
- winrt/windows/graphics/capture/py.typed +0 -0
- winrt_windows_graphics_capture-3.2.1.dist-info/METADATA +33 -0
- winrt_windows_graphics_capture-3.2.1.dist-info/RECORD +8 -0
- winrt_windows_graphics_capture-3.2.1.dist-info/WHEEL +5 -0
- winrt_windows_graphics_capture-3.2.1.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
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.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.graphics as windows_graphics
|
|
15
|
+
import winrt.windows.graphics.directx as windows_graphics_directx
|
|
16
|
+
import winrt.windows.graphics.directx.direct3d11 as windows_graphics_directx_direct3d11
|
|
17
|
+
import winrt.windows.security.authorization.appcapabilityaccess as windows_security_authorization_appcapabilityaccess
|
|
18
|
+
import winrt.windows.system as windows_system
|
|
19
|
+
import winrt.windows.ui as windows_ui
|
|
20
|
+
import winrt.windows.ui.composition as windows_ui_composition
|
|
21
|
+
|
|
22
|
+
from winrt.windows.graphics.capture import GraphicsCaptureAccessKind, GraphicsCaptureDirtyRegionMode
|
|
23
|
+
|
|
24
|
+
Self = typing.TypeVar('Self')
|
|
25
|
+
|
|
26
|
+
@typing.final
|
|
27
|
+
class Direct3D11CaptureFrame(winrt.system.Object, windows_foundation.IClosable):
|
|
28
|
+
def __enter__(self: Self) -> Self: ...
|
|
29
|
+
def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
|
|
30
|
+
# System.Void Windows.Graphics.Capture.Direct3D11CaptureFrame::Close()
|
|
31
|
+
def close(self) -> None: ...
|
|
32
|
+
# Windows.Graphics.SizeInt32 Windows.Graphics.Capture.Direct3D11CaptureFrame::get_ContentSize()
|
|
33
|
+
@_property
|
|
34
|
+
def content_size(self) -> windows_graphics.SizeInt32: ...
|
|
35
|
+
# Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface Windows.Graphics.Capture.Direct3D11CaptureFrame::get_Surface()
|
|
36
|
+
@_property
|
|
37
|
+
def surface(self) -> windows_graphics_directx_direct3d11.IDirect3DSurface: ...
|
|
38
|
+
# Windows.Foundation.TimeSpan Windows.Graphics.Capture.Direct3D11CaptureFrame::get_SystemRelativeTime()
|
|
39
|
+
@_property
|
|
40
|
+
def system_relative_time(self) -> datetime.timedelta: ...
|
|
41
|
+
# Windows.Graphics.Capture.GraphicsCaptureDirtyRegionMode Windows.Graphics.Capture.Direct3D11CaptureFrame::get_DirtyRegionMode()
|
|
42
|
+
@_property
|
|
43
|
+
def dirty_region_mode(self) -> GraphicsCaptureDirtyRegionMode: ...
|
|
44
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Graphics.RectInt32> Windows.Graphics.Capture.Direct3D11CaptureFrame::get_DirtyRegions()
|
|
45
|
+
@_property
|
|
46
|
+
def dirty_regions(self) -> typing.Sequence[windows_graphics.RectInt32]: ...
|
|
47
|
+
|
|
48
|
+
@typing.final
|
|
49
|
+
class Direct3D11CaptureFramePool_Static(winrt._winrt.IInspectable_Static):
|
|
50
|
+
# Windows.Graphics.Capture.Direct3D11CaptureFramePool Windows.Graphics.Capture.Direct3D11CaptureFramePool::Create(Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice,Windows.Graphics.DirectX.DirectXPixelFormat,System.Int32,Windows.Graphics.SizeInt32)
|
|
51
|
+
def create(cls, device: windows_graphics_directx_direct3d11.IDirect3DDevice, pixel_format: windows_graphics_directx.DirectXPixelFormat, number_of_buffers: winrt.system.Int32, size: typing.Union[windows_graphics.SizeInt32, typing.Tuple[winrt.system.Int32, winrt.system.Int32]], /) -> Direct3D11CaptureFramePool: ...
|
|
52
|
+
# Windows.Graphics.Capture.Direct3D11CaptureFramePool Windows.Graphics.Capture.Direct3D11CaptureFramePool::CreateFreeThreaded(Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice,Windows.Graphics.DirectX.DirectXPixelFormat,System.Int32,Windows.Graphics.SizeInt32)
|
|
53
|
+
def create_free_threaded(cls, device: windows_graphics_directx_direct3d11.IDirect3DDevice, pixel_format: windows_graphics_directx.DirectXPixelFormat, number_of_buffers: winrt.system.Int32, size: typing.Union[windows_graphics.SizeInt32, typing.Tuple[winrt.system.Int32, winrt.system.Int32]], /) -> Direct3D11CaptureFramePool: ...
|
|
54
|
+
|
|
55
|
+
@typing.final
|
|
56
|
+
class Direct3D11CaptureFramePool(winrt.system.Object, windows_foundation.IClosable, metaclass=Direct3D11CaptureFramePool_Static):
|
|
57
|
+
def __enter__(self: Self) -> Self: ...
|
|
58
|
+
def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
|
|
59
|
+
# System.Void Windows.Graphics.Capture.Direct3D11CaptureFramePool::Close()
|
|
60
|
+
def close(self) -> None: ...
|
|
61
|
+
# Windows.Graphics.Capture.GraphicsCaptureSession Windows.Graphics.Capture.Direct3D11CaptureFramePool::CreateCaptureSession(Windows.Graphics.Capture.GraphicsCaptureItem)
|
|
62
|
+
def create_capture_session(self, item: GraphicsCaptureItem, /) -> GraphicsCaptureSession: ...
|
|
63
|
+
# System.Void Windows.Graphics.Capture.Direct3D11CaptureFramePool::Recreate(Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice,Windows.Graphics.DirectX.DirectXPixelFormat,System.Int32,Windows.Graphics.SizeInt32)
|
|
64
|
+
def recreate(self, device: windows_graphics_directx_direct3d11.IDirect3DDevice, pixel_format: windows_graphics_directx.DirectXPixelFormat, number_of_buffers: winrt.system.Int32, size: typing.Union[windows_graphics.SizeInt32, typing.Tuple[winrt.system.Int32, winrt.system.Int32]], /) -> None: ...
|
|
65
|
+
# Windows.Graphics.Capture.Direct3D11CaptureFrame Windows.Graphics.Capture.Direct3D11CaptureFramePool::TryGetNextFrame()
|
|
66
|
+
def try_get_next_frame(self) -> typing.Optional[Direct3D11CaptureFrame]: ...
|
|
67
|
+
# Windows.Foundation.EventRegistrationToken Windows.Graphics.Capture.Direct3D11CaptureFramePool::add_FrameArrived(Windows.Foundation.TypedEventHandler`2<Windows.Graphics.Capture.Direct3D11CaptureFramePool,System.Object>)
|
|
68
|
+
def add_frame_arrived(self, handler: windows_foundation.TypedEventHandler[Direct3D11CaptureFramePool, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
69
|
+
# System.Void Windows.Graphics.Capture.Direct3D11CaptureFramePool::remove_FrameArrived(Windows.Foundation.EventRegistrationToken)
|
|
70
|
+
def remove_frame_arrived(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
71
|
+
# Windows.System.DispatcherQueue Windows.Graphics.Capture.Direct3D11CaptureFramePool::get_DispatcherQueue()
|
|
72
|
+
@_property
|
|
73
|
+
def dispatcher_queue(self) -> windows_system.DispatcherQueue: ...
|
|
74
|
+
|
|
75
|
+
@typing.final
|
|
76
|
+
class GraphicsCaptureAccess_Static(winrt._winrt.IInspectable_Static):
|
|
77
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authorization.AppCapabilityAccess.AppCapabilityAccessStatus> Windows.Graphics.Capture.GraphicsCaptureAccess::RequestAccessAsync(Windows.Graphics.Capture.GraphicsCaptureAccessKind)
|
|
78
|
+
def request_access_async(cls, request: GraphicsCaptureAccessKind, /) -> windows_foundation.IAsyncOperation[windows_security_authorization_appcapabilityaccess.AppCapabilityAccessStatus]: ...
|
|
79
|
+
|
|
80
|
+
@typing.final
|
|
81
|
+
class GraphicsCaptureAccess(winrt.system.Object, metaclass=GraphicsCaptureAccess_Static):
|
|
82
|
+
pass
|
|
83
|
+
|
|
84
|
+
@typing.final
|
|
85
|
+
class GraphicsCaptureItem_Static(winrt._winrt.IInspectable_Static):
|
|
86
|
+
# Windows.Graphics.Capture.GraphicsCaptureItem Windows.Graphics.Capture.GraphicsCaptureItem::CreateFromVisual(Windows.UI.Composition.Visual)
|
|
87
|
+
def create_from_visual(cls, visual: windows_ui_composition.Visual, /) -> GraphicsCaptureItem: ...
|
|
88
|
+
# Windows.Graphics.Capture.GraphicsCaptureItem Windows.Graphics.Capture.GraphicsCaptureItem::TryCreateFromDisplayId(Windows.Graphics.DisplayId)
|
|
89
|
+
def try_create_from_display_id(cls, display_id: typing.Union[windows_graphics.DisplayId, typing.Tuple[winrt.system.UInt64]], /) -> typing.Optional[GraphicsCaptureItem]: ...
|
|
90
|
+
# Windows.Graphics.Capture.GraphicsCaptureItem Windows.Graphics.Capture.GraphicsCaptureItem::TryCreateFromWindowId(Windows.UI.WindowId)
|
|
91
|
+
def try_create_from_window_id(cls, window_id: typing.Union[windows_ui.WindowId, typing.Tuple[winrt.system.UInt64]], /) -> typing.Optional[GraphicsCaptureItem]: ...
|
|
92
|
+
|
|
93
|
+
@typing.final
|
|
94
|
+
class GraphicsCaptureItem(winrt.system.Object, metaclass=GraphicsCaptureItem_Static):
|
|
95
|
+
# Windows.Foundation.EventRegistrationToken Windows.Graphics.Capture.GraphicsCaptureItem::add_Closed(Windows.Foundation.TypedEventHandler`2<Windows.Graphics.Capture.GraphicsCaptureItem,System.Object>)
|
|
96
|
+
def add_closed(self, handler: windows_foundation.TypedEventHandler[GraphicsCaptureItem, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
97
|
+
# System.Void Windows.Graphics.Capture.GraphicsCaptureItem::remove_Closed(Windows.Foundation.EventRegistrationToken)
|
|
98
|
+
def remove_closed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
99
|
+
# System.String Windows.Graphics.Capture.GraphicsCaptureItem::get_DisplayName()
|
|
100
|
+
@_property
|
|
101
|
+
def display_name(self) -> str: ...
|
|
102
|
+
# Windows.Graphics.SizeInt32 Windows.Graphics.Capture.GraphicsCaptureItem::get_Size()
|
|
103
|
+
@_property
|
|
104
|
+
def size(self) -> windows_graphics.SizeInt32: ...
|
|
105
|
+
|
|
106
|
+
@typing.final
|
|
107
|
+
class GraphicsCapturePicker(winrt.system.Object):
|
|
108
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
109
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Graphics.Capture.GraphicsCaptureItem> Windows.Graphics.Capture.GraphicsCapturePicker::PickSingleItemAsync()
|
|
110
|
+
def pick_single_item_async(self) -> windows_foundation.IAsyncOperation[GraphicsCaptureItem]: ...
|
|
111
|
+
|
|
112
|
+
@typing.final
|
|
113
|
+
class GraphicsCaptureSession_Static(winrt._winrt.IInspectable_Static):
|
|
114
|
+
# System.Boolean Windows.Graphics.Capture.GraphicsCaptureSession::IsSupported()
|
|
115
|
+
def is_supported(cls) -> bool: ...
|
|
116
|
+
|
|
117
|
+
@typing.final
|
|
118
|
+
class GraphicsCaptureSession(winrt.system.Object, windows_foundation.IClosable, metaclass=GraphicsCaptureSession_Static):
|
|
119
|
+
def __enter__(self: Self) -> Self: ...
|
|
120
|
+
def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
|
|
121
|
+
# System.Void Windows.Graphics.Capture.GraphicsCaptureSession::Close()
|
|
122
|
+
def close(self) -> None: ...
|
|
123
|
+
# System.Void Windows.Graphics.Capture.GraphicsCaptureSession::StartCapture()
|
|
124
|
+
def start_capture(self) -> None: ...
|
|
125
|
+
# System.Boolean Windows.Graphics.Capture.GraphicsCaptureSession::get_IsCursorCaptureEnabled()
|
|
126
|
+
@_property
|
|
127
|
+
def is_cursor_capture_enabled(self) -> bool: ...
|
|
128
|
+
# System.Void Windows.Graphics.Capture.GraphicsCaptureSession::put_IsCursorCaptureEnabled(System.Boolean)
|
|
129
|
+
@is_cursor_capture_enabled.setter
|
|
130
|
+
def is_cursor_capture_enabled(self, value: bool) -> None: ...
|
|
131
|
+
# System.Boolean Windows.Graphics.Capture.GraphicsCaptureSession::get_IsBorderRequired()
|
|
132
|
+
@_property
|
|
133
|
+
def is_border_required(self) -> bool: ...
|
|
134
|
+
# System.Void Windows.Graphics.Capture.GraphicsCaptureSession::put_IsBorderRequired(System.Boolean)
|
|
135
|
+
@is_border_required.setter
|
|
136
|
+
def is_border_required(self, value: bool) -> None: ...
|
|
137
|
+
# Windows.Graphics.Capture.GraphicsCaptureDirtyRegionMode Windows.Graphics.Capture.GraphicsCaptureSession::get_DirtyRegionMode()
|
|
138
|
+
@_property
|
|
139
|
+
def dirty_region_mode(self) -> GraphicsCaptureDirtyRegionMode: ...
|
|
140
|
+
# System.Void Windows.Graphics.Capture.GraphicsCaptureSession::put_DirtyRegionMode(Windows.Graphics.Capture.GraphicsCaptureDirtyRegionMode)
|
|
141
|
+
@dirty_region_mode.setter
|
|
142
|
+
def dirty_region_mode(self, value: GraphicsCaptureDirtyRegionMode) -> None: ...
|
|
143
|
+
# Windows.Foundation.TimeSpan Windows.Graphics.Capture.GraphicsCaptureSession::get_MinUpdateInterval()
|
|
144
|
+
@_property
|
|
145
|
+
def min_update_interval(self) -> datetime.timedelta: ...
|
|
146
|
+
# System.Void Windows.Graphics.Capture.GraphicsCaptureSession::put_MinUpdateInterval(Windows.Foundation.TimeSpan)
|
|
147
|
+
@min_update_interval.setter
|
|
148
|
+
def min_update_interval(self, value: datetime.timedelta) -> None: ...
|
|
149
|
+
# System.Boolean Windows.Graphics.Capture.GraphicsCaptureSession::get_IncludeSecondaryWindows()
|
|
150
|
+
@_property
|
|
151
|
+
def include_secondary_windows(self) -> bool: ...
|
|
152
|
+
# System.Void Windows.Graphics.Capture.GraphicsCaptureSession::put_IncludeSecondaryWindows(System.Boolean)
|
|
153
|
+
@include_secondary_windows.setter
|
|
154
|
+
def include_secondary_windows(self, value: bool) -> None: ...
|
|
155
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt._winrt_windows_graphics_capture import (
|
|
7
|
+
Direct3D11CaptureFrame,
|
|
8
|
+
Direct3D11CaptureFramePool,
|
|
9
|
+
GraphicsCaptureAccess,
|
|
10
|
+
GraphicsCaptureItem,
|
|
11
|
+
GraphicsCapturePicker,
|
|
12
|
+
GraphicsCaptureSession,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"GraphicsCaptureAccessKind",
|
|
17
|
+
"GraphicsCaptureDirtyRegionMode",
|
|
18
|
+
"Direct3D11CaptureFrame",
|
|
19
|
+
"Direct3D11CaptureFramePool",
|
|
20
|
+
"GraphicsCaptureAccess",
|
|
21
|
+
"GraphicsCaptureItem",
|
|
22
|
+
"GraphicsCapturePicker",
|
|
23
|
+
"GraphicsCaptureSession",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
class GraphicsCaptureAccessKind(enum.IntEnum):
|
|
27
|
+
BORDERLESS = 0
|
|
28
|
+
PROGRAMMATIC = 1
|
|
29
|
+
|
|
30
|
+
class GraphicsCaptureDirtyRegionMode(enum.IntEnum):
|
|
31
|
+
REPORT_ONLY = 0
|
|
32
|
+
REPORT_AND_RENDER = 1
|
|
33
|
+
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: winrt-Windows.Graphics.Capture
|
|
3
|
+
Version: 3.2.1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License-Expression: 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.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime~=3.2.1.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]~=3.2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Graphics[all]~=3.2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]~=3.2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]~=3.2.1.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]~=3.2.1.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.System[all]~=3.2.1.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.UI[all]~=3.2.1.0; extra == "all"
|
|
25
|
+
Requires-Dist: winrt-Windows.UI.Composition[all]~=3.2.1.0; extra == "all"
|
|
26
|
+
|
|
27
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
28
|
+
|
|
29
|
+
# winrt-Windows.Graphics.Capture
|
|
30
|
+
|
|
31
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Graphics.Capture` namespace.
|
|
32
|
+
|
|
33
|
+
This package provides the `winrt.windows.graphics.capture` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_graphics_capture.cp314-win32.pyd,sha256=NxY2QK_ylGBOJFwKcKClzzp18IuGe1DpDvb2r_-EEeg,139264
|
|
2
|
+
winrt/_winrt_windows_graphics_capture.pyi,sha256=UmqeE48ZOK2Q6zP_MmxMlCDe9x-BYFpjg643eQ3_ufM,11881
|
|
3
|
+
winrt/windows/graphics/capture/__init__.py,sha256=SfAuqAzDw0dkk0klVaMkm_GfOMIVPqAWzMsFsN6wYD0,788
|
|
4
|
+
winrt/windows/graphics/capture/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_windows_graphics_capture-3.2.1.dist-info/METADATA,sha256=hZXG-AOG_UL5qIEIK_3XYPeSdXsVmu_Bx4iOVtIo7qo,1678
|
|
6
|
+
winrt_windows_graphics_capture-3.2.1.dist-info/WHEEL,sha256=avp3B09fSRXVHn4cshTNKc58MtFVN-cVe0NyrqeYT2s,97
|
|
7
|
+
winrt_windows_graphics_capture-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_windows_graphics_capture-3.2.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|