winrt-Windows.ApplicationModel.DataTransfer.Interop 4.0.0__cp311-abi3-win_arm64.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,4 @@
1
+ from winrt.runtime.interop import InterfaceCapsule
2
+
3
+ def get_for_window(factory: InterfaceCapsule, window: int, /) -> InterfaceCapsule: ...
4
+ def show_share_ui_for_window(factory: InterfaceCapsule, window: int, /) -> None: ...
@@ -0,0 +1,46 @@
1
+ from uuid import UUID
2
+
3
+ import winrt.runtime.interop as _runtime
4
+ import winrt._winrt_windows_applicationmodel_datatransfer_interop as _native
5
+ from winrt.windows.applicationmodel.datatransfer import DataTransferManager
6
+
7
+ __all__ = ["get_for_window", "show_share_ui_for_window"]
8
+
9
+ # what DataTransferManager's activation factory implements for desktop apps
10
+ _IID_IDATATRANSFERMANAGERINTEROP = UUID("3a3dcd6c-3eab-43dc-bcde-45671ce800c8")
11
+
12
+
13
+ def _factory() -> _runtime.InterfaceCapsule:
14
+ return _runtime.get_activation_factory(
15
+ DataTransferManager, _IID_IDATATRANSFERMANAGERINTEROP
16
+ )
17
+
18
+
19
+ def get_for_window(hwnd: int, /) -> DataTransferManager:
20
+ """
21
+ Gets the DataTransferManager of a window, whose data_requested event asks
22
+ for what to share when the share sheet is shown for the window.
23
+
24
+ A packaged app calls DataTransferManager.get_for_current_view(); a desktop
25
+ app, which has no view, calls this with its window.
26
+
27
+ Args:
28
+ hwnd (HWND): The window whose DataTransferManager to get.
29
+
30
+ Returns:
31
+ The DataTransferManager of the window.
32
+ """
33
+ return _runtime.wrap_interface(
34
+ _native.get_for_window(_factory(), hwnd), DataTransferManager
35
+ )
36
+
37
+
38
+ def show_share_ui_for_window(hwnd: int, /) -> None:
39
+ """
40
+ Shows the share sheet for a window. The window's DataTransferManager (see
41
+ get_for_window()) raises data_requested, whose handler fills in what to share.
42
+
43
+ Args:
44
+ hwnd (HWND): The window to show the share sheet for.
45
+ """
46
+ _native.show_share_ui_for_window(_factory(), hwnd)
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: winrt-Windows.ApplicationModel.DataTransfer.Interop
3
+ Version: 4.0.0
4
+ Summary: Gets the DataTransferManager of a window, and shows the share sheet for it, from its handle.
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/interop/winrt-Windows.ApplicationModel.DataTransfer.Interop/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Classifier: Programming Language :: Python :: 3.15
16
+ Classifier: Programming Language :: Python :: Implementation :: CPython
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.11
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: winrt-runtime<5,>=4.0.0
24
+ Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer>=4!10.0.28000.2957
25
+ Dynamic: license-file
26
+
27
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
28
+
29
+ # winrt-Windows.ApplicationModel.DataTransfer.Interop
30
+
31
+ Gets the `DataTransferManager` of a window, and shows the share sheet for it, from its handle.
32
+
33
+ This package provides the `winrt.windows.applicationmodel.datatransfer.interop` module.
34
+
35
+ ```
36
+ pip install winrt-Windows.ApplicationModel.DataTransfer.Interop
37
+ ```
38
+
39
+ installs it with `winrt-Windows.ApplicationModel.DataTransfer`.
@@ -0,0 +1,9 @@
1
+ winrt/_winrt_windows_applicationmodel_datatransfer_interop.pyd,sha256=7YronpaPeIS-vX9ATLeLltd-cyUekj4IxLppkHpS_ng,13312
2
+ winrt/_winrt_windows_applicationmodel_datatransfer_interop.pyi,sha256=6ZlZYfotNDNdY3TNC6zwTi_mZoEg-v1UinQXlieoKjo,224
3
+ winrt/windows/applicationmodel/datatransfer/interop/__init__.py,sha256=3x4GDfv_6Q8sLIjyEkrQUL3F6lR6Go-h3ThyUPgWnIw,1556
4
+ winrt/windows/applicationmodel/datatransfer/interop/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_windows_applicationmodel_datatransfer_interop-4.0.0.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
6
+ winrt_windows_applicationmodel_datatransfer_interop-4.0.0.dist-info/METADATA,sha256=qFxgK_wcXGVukiy8MaHypT-2TD_M-rJb1ZCke31I1Gc,1777
7
+ winrt_windows_applicationmodel_datatransfer_interop-4.0.0.dist-info/WHEEL,sha256=F8aMEGtc8OV6m9qRZDFHgw4OFyVi65yttWn5NLY20DE,100
8
+ winrt_windows_applicationmodel_datatransfer_interop-4.0.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
9
+ winrt_windows_applicationmodel_datatransfer_interop-4.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: false
4
+ Tag: cp311-abi3-win_arm64
5
+
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE