winrt-Windows.UI.Shell 3.2.0__tar.gz → 4!10.0.28000.2705__tar.gz

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.
Files changed (24) hide show
  1. winrt_windows_ui_shell-4!10.0.28000.2705/.gitignore +5 -0
  2. winrt_windows_ui_shell-4!10.0.28000.2705/LICENSE +22 -0
  3. winrt_windows_ui_shell-4!10.0.28000.2705/PKG-INFO +52 -0
  4. winrt_windows_ui_shell-4!10.0.28000.2705/README.md +17 -0
  5. winrt_windows_ui_shell-4!10.0.28000.2705/pyproject.toml +64 -0
  6. winrt_windows_ui_shell-4!10.0.28000.2705/winrt/windows/ui/shell/__init__.py +35 -0
  7. winrt_windows_ui_shell-3.2.0/winrt/_winrt_windows_ui_shell.pyi → winrt_windows_ui_shell-4!10.0.28000.2705/winrt/windows/ui/shell/__init__.pyi +120 -50
  8. winrt_windows_ui_shell-4!10.0.28000.2705/winrt/windows/ui/shell/_table.pywinrt.txt +806 -0
  9. winrt_windows_ui_shell-3.2.0/PKG-INFO +0 -31
  10. winrt_windows_ui_shell-3.2.0/README.md +0 -7
  11. winrt_windows_ui_shell-3.2.0/all-requirements.txt +0 -9
  12. winrt_windows_ui_shell-3.2.0/py.Windows.UI.Shell.cpp +0 -5532
  13. winrt_windows_ui_shell-3.2.0/pyproject.toml +0 -47
  14. winrt_windows_ui_shell-3.2.0/pywinrt-version.txt +0 -1
  15. winrt_windows_ui_shell-3.2.0/requirements.txt +0 -3
  16. winrt_windows_ui_shell-3.2.0/setup.cfg +0 -4
  17. winrt_windows_ui_shell-3.2.0/setup.py +0 -33
  18. winrt_windows_ui_shell-3.2.0/winrt/windows/ui/shell/__init__.py +0 -73
  19. winrt_windows_ui_shell-3.2.0/winrt_Windows.UI.Shell.egg-info/PKG-INFO +0 -31
  20. winrt_windows_ui_shell-3.2.0/winrt_Windows.UI.Shell.egg-info/SOURCES.txt +0 -15
  21. winrt_windows_ui_shell-3.2.0/winrt_Windows.UI.Shell.egg-info/dependency_links.txt +0 -1
  22. winrt_windows_ui_shell-3.2.0/winrt_Windows.UI.Shell.egg-info/requires.txt +0 -10
  23. winrt_windows_ui_shell-3.2.0/winrt_Windows.UI.Shell.egg-info/top_level.txt +0 -1
  24. {winrt_windows_ui_shell-3.2.0 → winrt_windows_ui_shell-4!10.0.28000.2705}/winrt/windows/ui/shell/py.typed +0 -0
@@ -0,0 +1,5 @@
1
+ *.egg-info
2
+ *.tar.gz
3
+ *.whl
4
+ build/
5
+ dist/
@@ -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
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.UI.Shell
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.UI.Shell namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation-collections>=4!10.0.28000.2705
24
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
25
+ Requires-Dist: winrt-windows-storage-streams>=4!10.0.28000.2705
26
+ Provides-Extra: all
27
+ Requires-Dist: winrt-windows-applicationmodel-core[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
29
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
30
+ Requires-Dist: winrt-windows-graphics-imaging[all]>=4!10.0.28000.2705; extra == 'all'
31
+ Requires-Dist: winrt-windows-storage-streams[all]>=4!10.0.28000.2705; extra == 'all'
32
+ Requires-Dist: winrt-windows-ui-startscreen[all]>=4!10.0.28000.2705; extra == 'all'
33
+ Requires-Dist: winrt-windows-ui[all]>=4!10.0.28000.2705; extra == 'all'
34
+ Description-Content-Type: text/markdown
35
+
36
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
37
+
38
+ # winrt-Windows.UI.Shell
39
+
40
+ Windows Runtime (WinRT) APIs for the `Windows.UI.Shell` namespace.
41
+
42
+ This package provides the `winrt.windows.ui.shell` module.
43
+
44
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
45
+ `Microsoft.Windows.SDK.CPP` NuGet package.
46
+
47
+ ```
48
+ pip install winrt-Windows.UI.Shell
49
+ ```
50
+
51
+ Other WinRT namespaces are packages of their own, so install the package of
52
+ each namespace your code imports from.
@@ -0,0 +1,17 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.UI.Shell
4
+
5
+ Windows Runtime (WinRT) APIs for the `Windows.UI.Shell` namespace.
6
+
7
+ This package provides the `winrt.windows.ui.shell` module.
8
+
9
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
10
+ `Microsoft.Windows.SDK.CPP` NuGet package.
11
+
12
+ ```
13
+ pip install winrt-Windows.UI.Shell
14
+ ```
15
+
16
+ Other WinRT namespaces are packages of their own, so install the package of
17
+ each namespace your code imports from.
@@ -0,0 +1,64 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ [build-system]
4
+ requires = ["hatchling", "winrt-table-compiler>=4.0.0,<5"]
5
+ build-backend = "hatchling.build"
6
+
7
+ [project]
8
+ name = "winrt-Windows.UI.Shell"
9
+ version = "4!10.0.28000.2705"
10
+ description = "PyWinRT projection of the Windows.UI.Shell namespace"
11
+ readme = "README.md"
12
+ license = "MIT"
13
+ license-files = ["LICENSE"]
14
+ classifiers = [
15
+ "Operating System :: Microsoft :: Windows",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ "Programming Language :: Python :: 3.14",
21
+ "Programming Language :: Python :: 3.15",
22
+ "Programming Language :: Python :: Implementation :: CPython",
23
+ "Intended Audience :: Developers",
24
+ "Programming Language :: Python :: Free Threading :: 2 - Beta",
25
+ "Typing :: Typed",
26
+ ]
27
+ requires-python = ">=3.11"
28
+ dependencies = [
29
+ "winrt-runtime>=4.0.0,<5",
30
+ "winrt-Windows.Foundation>=4!10.0.28000.2705",
31
+ "winrt-Windows.Foundation.Collections>=4!10.0.28000.2705",
32
+ "winrt-Windows.Storage.Streams>=4!10.0.28000.2705",
33
+ ]
34
+
35
+ [project.optional-dependencies]
36
+ all = [
37
+ "winrt-Windows.ApplicationModel.Core[all]>=4!10.0.28000.2705",
38
+ "winrt-Windows.Foundation[all]>=4!10.0.28000.2705",
39
+ "winrt-Windows.Foundation.Collections[all]>=4!10.0.28000.2705",
40
+ "winrt-Windows.Graphics.Imaging[all]>=4!10.0.28000.2705",
41
+ "winrt-Windows.Storage.Streams[all]>=4!10.0.28000.2705",
42
+ "winrt-Windows.UI[all]>=4!10.0.28000.2705",
43
+ "winrt-Windows.UI.StartScreen[all]>=4!10.0.28000.2705",
44
+ ]
45
+
46
+ [project.urls]
47
+ Documentation = "https://pywinrt.readthedocs.io"
48
+ Repository = "https://github.com/pywinrt/pywinrt"
49
+ Changelog = "https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md"
50
+
51
+ [tool.hatch.build.targets.sdist]
52
+ # The text form of the table is what the source distribution carries, and the
53
+ # compiled form is build output wherever it turns up. Hatchling reads no
54
+ # .gitignore above the package, so it has to be told about the latter.
55
+ only-include = ["winrt", "LICENSE", "README.md"]
56
+ exclude = ["**/_table.pywinrt"]
57
+
58
+ [tool.hatch.build.targets.wheel]
59
+ packages = ["winrt"]
60
+ exclude = ["**/_table.pywinrt.txt"]
61
+
62
+ # winrt.table.build_hooks in winrt-table-compiler, which compiles each table
63
+ # the package carries and puts the result beside the __init__.py that loads it.
64
+ [tool.hatch.build.targets.wheel.hooks.winrt-table-compiler]
@@ -0,0 +1,35 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "SecurityAppKind",
10
+ "SecurityAppState",
11
+ "SecurityAppSubstatus",
12
+ "ShareWindowCommand",
13
+ "AdaptiveCardBuilder",
14
+ "FocusSession",
15
+ "FocusSessionManager",
16
+ "SecurityAppManager",
17
+ "ShareWindowCommandEventArgs",
18
+ "ShareWindowCommandSource",
19
+ "TaskbarManager",
20
+ "WindowTab",
21
+ "WindowTabCloseRequestedEventArgs",
22
+ "WindowTabCollection",
23
+ "WindowTabGroup",
24
+ "WindowTabIcon",
25
+ "WindowTabManager",
26
+ "WindowTabSwitchRequestedEventArgs",
27
+ "WindowTabTearOutRequestedEventArgs",
28
+ "WindowTabThumbnailRequestedEventArgs",
29
+ "IAdaptiveCard",
30
+ "IAdaptiveCardBuilderStatics",
31
+ ]
32
+
33
+ winrt.runtime._internals.mixin_mutable_sequence(WindowTabCollection)
34
+ winrt.runtime._internals.alias_method(FocusSessionManager, "try_start_focus_session2", "try_start_focus_session")
35
+ winrt.runtime._internals.alias_static_method(WindowTabIcon, "create_from_font_glyph_with_uri", "create_from_font_glyph")
@@ -1,14 +1,14 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
2
 
3
+ import collections.abc as _cabc
3
4
  import datetime
4
- import sys
5
- import types
5
+ import enum
6
6
  import typing
7
7
  import uuid as _uuid
8
8
  from builtins import property as _property
9
9
  from abc import abstractmethod
10
+ from typing_extensions import deprecated
10
11
 
11
- import winrt._winrt
12
12
  import winrt.system
13
13
  import winrt.windows.applicationmodel.core as windows_applicationmodel_core
14
14
  import winrt.windows.foundation as windows_foundation
@@ -18,21 +18,63 @@ import winrt.windows.storage.streams as windows_storage_streams
18
18
  import winrt.windows.ui as windows_ui
19
19
  import winrt.windows.ui.startscreen as windows_ui_startscreen
20
20
 
21
- from winrt.windows.ui.shell import SecurityAppKind, SecurityAppState, SecurityAppSubstatus, ShareWindowCommand
21
+ __all__ = [
22
+ "SecurityAppKind",
23
+ "SecurityAppState",
24
+ "SecurityAppSubstatus",
25
+ "ShareWindowCommand",
26
+ "AdaptiveCardBuilder",
27
+ "FocusSession",
28
+ "FocusSessionManager",
29
+ "SecurityAppManager",
30
+ "ShareWindowCommandEventArgs",
31
+ "ShareWindowCommandSource",
32
+ "TaskbarManager",
33
+ "WindowTab",
34
+ "WindowTabCloseRequestedEventArgs",
35
+ "WindowTabCollection",
36
+ "WindowTabGroup",
37
+ "WindowTabIcon",
38
+ "WindowTabManager",
39
+ "WindowTabSwitchRequestedEventArgs",
40
+ "WindowTabTearOutRequestedEventArgs",
41
+ "WindowTabThumbnailRequestedEventArgs",
42
+ "IAdaptiveCard",
43
+ "IAdaptiveCardBuilderStatics",
44
+ ]
22
45
 
23
- Self = typing.TypeVar('Self')
46
+ class SecurityAppKind(enum.IntEnum):
47
+ WEB_PROTECTION = 0
48
+
49
+ class SecurityAppState(enum.IntEnum):
50
+ DISABLED = 0
51
+ ENABLED = 1
52
+
53
+ class SecurityAppSubstatus(enum.IntEnum):
54
+ UNDETERMINED = 0
55
+ NO_ACTION_NEEDED = 1
56
+ ACTION_RECOMMENDED = 2
57
+ ACTION_NEEDED = 3
58
+
59
+ class ShareWindowCommand(enum.IntEnum):
60
+ NONE = 0
61
+ START_SHARING = 1
62
+ STOP_SHARING = 2
24
63
 
25
64
  @typing.final
26
- class AdaptiveCardBuilder_Static(winrt._winrt.IInspectable_Static):
65
+ class AdaptiveCardBuilder_Static(winrt.system.Object_Static):
27
66
  # Windows.UI.Shell.IAdaptiveCard Windows.UI.Shell.AdaptiveCardBuilder::CreateAdaptiveCardFromJson(System.String)
28
67
  def create_adaptive_card_from_json(cls, value: str, /) -> IAdaptiveCard: ...
29
68
 
30
69
  @typing.final
31
70
  class AdaptiveCardBuilder(winrt.system.Object, metaclass=AdaptiveCardBuilder_Static):
32
- pass
71
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
72
+ """A class of static members only, so there is nothing to create."""
33
73
 
34
74
  @typing.final
35
75
  class FocusSession(winrt.system.Object):
76
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
77
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
36
78
  # System.Void Windows.UI.Shell.FocusSession::End()
37
79
  def end(self) -> None: ...
38
80
  # System.String Windows.UI.Shell.FocusSession::get_Id()
@@ -40,7 +82,7 @@ class FocusSession(winrt.system.Object):
40
82
  def id(self) -> str: ...
41
83
 
42
84
  @typing.final
43
- class FocusSessionManager_Static(winrt._winrt.IInspectable_Static):
85
+ class FocusSessionManager_Static(winrt.system.Object_Static):
44
86
  # Windows.UI.Shell.FocusSessionManager Windows.UI.Shell.FocusSessionManager::GetDefault()
45
87
  def get_default(cls) -> FocusSessionManager: ...
46
88
  # System.Boolean Windows.UI.Shell.FocusSessionManager::get_IsSupported()
@@ -49,25 +91,33 @@ class FocusSessionManager_Static(winrt._winrt.IInspectable_Static):
49
91
 
50
92
  @typing.final
51
93
  class FocusSessionManager(winrt.system.Object, metaclass=FocusSessionManager_Static):
94
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
95
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
52
96
  # System.Void Windows.UI.Shell.FocusSessionManager::DeactivateFocus()
53
97
  def deactivate_focus(self) -> None: ...
54
98
  # Windows.UI.Shell.FocusSession Windows.UI.Shell.FocusSessionManager::GetSession(System.String)
55
99
  def get_session(self, id: str, /) -> FocusSession: ...
100
+ @typing.overload
56
101
  # Windows.UI.Shell.FocusSession Windows.UI.Shell.FocusSessionManager::TryStartFocusSession()
57
- def try_start_focus_session(self) -> typing.Optional[FocusSession]: ...
102
+ def try_start_focus_session(self) -> FocusSession | None: ...
103
+ @typing.overload
104
+ # Windows.UI.Shell.FocusSession Windows.UI.Shell.FocusSessionManager::TryStartFocusSession(Windows.Foundation.DateTime)
105
+ def try_start_focus_session(self, end_time: datetime.datetime, /) -> FocusSession | None: ...
106
+ # Deprecated alias of try_start_focus_session() for pywinrt v3.x compatibility.
58
107
  # Windows.UI.Shell.FocusSession Windows.UI.Shell.FocusSessionManager::TryStartFocusSession(Windows.Foundation.DateTime)
59
- def try_start_focus_session2(self, end_time: datetime.datetime, /) -> typing.Optional[FocusSession]: ...
108
+ @deprecated("Use try_start_focus_session() instead.")
109
+ def try_start_focus_session2(self, end_time: datetime.datetime, /) -> FocusSession | None: ...
60
110
  # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.FocusSessionManager::add_IsFocusActiveChanged(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.FocusSessionManager,System.Object>)
61
111
  def add_is_focus_active_changed(self, handler: windows_foundation.TypedEventHandler[FocusSessionManager, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
62
112
  # System.Void Windows.UI.Shell.FocusSessionManager::remove_IsFocusActiveChanged(Windows.Foundation.EventRegistrationToken)
63
- def remove_is_focus_active_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
113
+ def remove_is_focus_active_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
64
114
  # System.Boolean Windows.UI.Shell.FocusSessionManager::get_IsFocusActive()
65
115
  @_property
66
116
  def is_focus_active(self) -> bool: ...
67
117
 
68
118
  @typing.final
69
119
  class SecurityAppManager(winrt.system.Object):
70
- def __new__(cls: typing.Type[Self]) -> Self: ...
120
+ def __new__(cls) -> typing.Self: ...
71
121
  # System.Guid Windows.UI.Shell.SecurityAppManager::Register(Windows.UI.Shell.SecurityAppKind,System.String,Windows.Foundation.Uri,System.Boolean)
72
122
  def register(self, kind: SecurityAppKind, display_name: str, details_uri: windows_foundation.Uri, register_per_user: bool, /) -> _uuid.UUID: ...
73
123
  # System.Void Windows.UI.Shell.SecurityAppManager::Unregister(Windows.UI.Shell.SecurityAppKind,System.Guid)
@@ -77,6 +127,8 @@ class SecurityAppManager(winrt.system.Object):
77
127
 
78
128
  @typing.final
79
129
  class ShareWindowCommandEventArgs(winrt.system.Object):
130
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
131
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
80
132
  # Windows.UI.Shell.ShareWindowCommand Windows.UI.Shell.ShareWindowCommandEventArgs::get_Command()
81
133
  @_property
82
134
  def command(self) -> ShareWindowCommand: ...
@@ -88,12 +140,14 @@ class ShareWindowCommandEventArgs(winrt.system.Object):
88
140
  def window_id(self) -> windows_ui.WindowId: ...
89
141
 
90
142
  @typing.final
91
- class ShareWindowCommandSource_Static(winrt._winrt.IInspectable_Static):
143
+ class ShareWindowCommandSource_Static(winrt.system.Object_Static):
92
144
  # Windows.UI.Shell.ShareWindowCommandSource Windows.UI.Shell.ShareWindowCommandSource::GetForCurrentView()
93
145
  def get_for_current_view(cls) -> ShareWindowCommandSource: ...
94
146
 
95
147
  @typing.final
96
148
  class ShareWindowCommandSource(winrt.system.Object, metaclass=ShareWindowCommandSource_Static):
149
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
150
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
97
151
  # System.Void Windows.UI.Shell.ShareWindowCommandSource::ReportCommandChanged()
98
152
  def report_command_changed(self) -> None: ...
99
153
  # System.Void Windows.UI.Shell.ShareWindowCommandSource::Start()
@@ -103,19 +157,21 @@ class ShareWindowCommandSource(winrt.system.Object, metaclass=ShareWindowCommand
103
157
  # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.ShareWindowCommandSource::add_CommandInvoked(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.ShareWindowCommandSource,Windows.UI.Shell.ShareWindowCommandEventArgs>)
104
158
  def add_command_invoked(self, handler: windows_foundation.TypedEventHandler[ShareWindowCommandSource, ShareWindowCommandEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
105
159
  # System.Void Windows.UI.Shell.ShareWindowCommandSource::remove_CommandInvoked(Windows.Foundation.EventRegistrationToken)
106
- def remove_command_invoked(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
160
+ def remove_command_invoked(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
107
161
  # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.ShareWindowCommandSource::add_CommandRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.ShareWindowCommandSource,Windows.UI.Shell.ShareWindowCommandEventArgs>)
108
162
  def add_command_requested(self, handler: windows_foundation.TypedEventHandler[ShareWindowCommandSource, ShareWindowCommandEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
109
163
  # System.Void Windows.UI.Shell.ShareWindowCommandSource::remove_CommandRequested(Windows.Foundation.EventRegistrationToken)
110
- def remove_command_requested(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
164
+ def remove_command_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
111
165
 
112
166
  @typing.final
113
- class TaskbarManager_Static(winrt._winrt.IInspectable_Static):
167
+ class TaskbarManager_Static(winrt.system.Object_Static):
114
168
  # Windows.UI.Shell.TaskbarManager Windows.UI.Shell.TaskbarManager::GetDefault()
115
169
  def get_default(cls) -> TaskbarManager: ...
116
170
 
117
171
  @typing.final
118
172
  class TaskbarManager(winrt.system.Object, metaclass=TaskbarManager_Static):
173
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
174
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
119
175
  # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.UI.Shell.TaskbarManager::IsAppListEntryPinnedAsync(Windows.ApplicationModel.Core.AppListEntry)
120
176
  def is_app_list_entry_pinned_async(self, app_list_entry: windows_applicationmodel_core.AppListEntry, /) -> windows_foundation.IAsyncOperation[bool]: ...
121
177
  # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.UI.Shell.TaskbarManager::IsCurrentAppPinnedAsync()
@@ -139,7 +195,7 @@ class TaskbarManager(winrt.system.Object, metaclass=TaskbarManager_Static):
139
195
 
140
196
  @typing.final
141
197
  class WindowTab(winrt.system.Object):
142
- def __new__(cls: typing.Type[Self]) -> Self: ...
198
+ def __new__(cls) -> typing.Self: ...
143
199
  # System.Void Windows.UI.Shell.WindowTab::ReportThumbnailAvailable()
144
200
  def report_thumbnail_available(self) -> None: ...
145
201
  # System.String Windows.UI.Shell.WindowTab::get_TreatAsSecondaryTileId()
@@ -175,18 +231,20 @@ class WindowTab(winrt.system.Object):
175
231
 
176
232
  @typing.final
177
233
  class WindowTabCloseRequestedEventArgs(winrt.system.Object):
234
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
235
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
178
236
  # Windows.UI.Shell.WindowTab Windows.UI.Shell.WindowTabCloseRequestedEventArgs::get_Tab()
179
237
  @_property
180
238
  def tab(self) -> WindowTab: ...
181
239
 
182
240
  @typing.final
183
- class WindowTabCollection(winrt.system.Object, winrt._winrt.MutableSequence[WindowTab]):
241
+ class WindowTabCollection(_cabc.MutableSequence[WindowTab], winrt.system.Object):
184
242
  def __len__(self) -> int: ...
185
- def __iter__(self) -> typing.Iterator[WindowTab]: ...
186
- @typing.overload
243
+ def __iter__(self) -> _cabc.Iterator[WindowTab]: ...
244
+ @typing.overload # type: ignore[override]
187
245
  def __getitem__(self, index: typing.SupportsIndex) -> WindowTab: ...
188
246
  @typing.overload
189
- def __getitem__(self, index: slice) -> winrt.system.Array[WindowTab]: ...
247
+ def __getitem__(self, index: slice) -> winrt.system.Array[WindowTab]: ... # pyright: ignore[reportIncompatibleMethodOverride]
190
248
  @typing.overload
191
249
  def __delitem__(self, index: typing.SupportsIndex) -> None: ...
192
250
  @typing.overload
@@ -194,7 +252,10 @@ class WindowTabCollection(winrt.system.Object, winrt._winrt.MutableSequence[Wind
194
252
  @typing.overload
195
253
  def __setitem__(self, index: typing.SupportsIndex, value: WindowTab) -> None: ...
196
254
  @typing.overload
197
- def __setitem__(self, index: slice, value: typing.Iterable[WindowTab]) -> None: ...
255
+ def __setitem__(self, index: slice, value: _cabc.Iterable[WindowTab]) -> None: ...
256
+ def insert(self, index: typing.SupportsIndex, value: WindowTab, /) -> None: ...
257
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
258
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
198
259
  # System.Void Windows.UI.Shell.WindowTabCollection::Append(Windows.UI.Shell.WindowTab)
199
260
  def append(self, value: WindowTab, /) -> None: ...
200
261
  # System.Void Windows.UI.Shell.WindowTabCollection::Clear()
@@ -202,32 +263,32 @@ class WindowTabCollection(winrt.system.Object, winrt._winrt.MutableSequence[Wind
202
263
  # Windows.Foundation.Collections.IIterator`1<Windows.UI.Shell.WindowTab> Windows.UI.Shell.WindowTabCollection::First()
203
264
  def first(self) -> windows_foundation_collections.IIterator[WindowTab]: ...
204
265
  # Windows.UI.Shell.WindowTab Windows.UI.Shell.WindowTabCollection::GetAt(System.UInt32)
205
- def get_at(self, index: winrt.system.UInt32, /) -> WindowTab: ...
266
+ def get_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, /) -> WindowTab: ...
206
267
  # System.UInt32 Windows.UI.Shell.WindowTabCollection::GetMany(System.UInt32,Windows.UI.Shell.WindowTab[])
207
- def get_many(self, start_index: winrt.system.UInt32, items: typing.Union[winrt.system.Array[WindowTab], winrt.system.WriteableBuffer], /) -> winrt.system.UInt32: ...
268
+ def get_many(self, start_index: winrt.system.UInt32 | typing.SupportsIndex, items: winrt.system.Array[WindowTab] | winrt.system.WriteableBuffer, /) -> winrt.system.UInt32: ...
208
269
  # Windows.Foundation.Collections.IVectorView`1<Windows.UI.Shell.WindowTab> Windows.UI.Shell.WindowTabCollection::GetView()
209
- def get_view(self) -> typing.Sequence[WindowTab]: ...
270
+ def get_view(self) -> _cabc.Sequence[WindowTab]: ...
210
271
  # System.Boolean Windows.UI.Shell.WindowTabCollection::IndexOf(Windows.UI.Shell.WindowTab,System.UInt32&)
211
- def index_of(self, value: WindowTab, /) -> typing.Tuple[bool, winrt.system.UInt32]: ...
272
+ def index_of(self, value: WindowTab, /) -> tuple[bool, winrt.system.UInt32]: ...
212
273
  # System.Void Windows.UI.Shell.WindowTabCollection::InsertAt(System.UInt32,Windows.UI.Shell.WindowTab)
213
- def insert_at(self, index: winrt.system.UInt32, value: WindowTab, /) -> None: ...
274
+ def insert_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, value: WindowTab, /) -> None: ...
214
275
  # System.Void Windows.UI.Shell.WindowTabCollection::MoveTab(Windows.UI.Shell.WindowTab,System.UInt32)
215
- def move_tab(self, tab: WindowTab, index: winrt.system.UInt32, /) -> None: ...
276
+ def move_tab(self, tab: WindowTab, index: winrt.system.UInt32 | typing.SupportsIndex, /) -> None: ...
216
277
  # System.Void Windows.UI.Shell.WindowTabCollection::RemoveAt(System.UInt32)
217
- def remove_at(self, index: winrt.system.UInt32, /) -> None: ...
278
+ def remove_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, /) -> None: ...
218
279
  # System.Void Windows.UI.Shell.WindowTabCollection::RemoveAtEnd()
219
280
  def remove_at_end(self) -> None: ...
220
281
  # System.Void Windows.UI.Shell.WindowTabCollection::ReplaceAll(Windows.UI.Shell.WindowTab[])
221
- def replace_all(self, items: typing.Union[winrt.system.Array[WindowTab], winrt.system.ReadableBuffer], /) -> None: ...
282
+ def replace_all(self, items: winrt.system.Array[WindowTab] | winrt.system.ReadableBuffer, /) -> None: ...
222
283
  # System.Void Windows.UI.Shell.WindowTabCollection::SetAt(System.UInt32,Windows.UI.Shell.WindowTab)
223
- def set_at(self, index: winrt.system.UInt32, value: WindowTab, /) -> None: ...
284
+ def set_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, value: WindowTab, /) -> None: ...
224
285
  # System.UInt32 Windows.UI.Shell.WindowTabCollection::get_Size()
225
286
  @_property
226
287
  def size(self) -> winrt.system.UInt32: ...
227
288
 
228
289
  @typing.final
229
290
  class WindowTabGroup(winrt.system.Object):
230
- def __new__(cls: typing.Type[Self]) -> Self: ...
291
+ def __new__(cls) -> typing.Self: ...
231
292
  # System.String Windows.UI.Shell.WindowTabGroup::get_Title()
232
293
  @_property
233
294
  def title(self) -> str: ...
@@ -242,22 +303,29 @@ class WindowTabGroup(winrt.system.Object):
242
303
  def icon(self, value: WindowTabIcon) -> None: ...
243
304
 
244
305
  @typing.final
245
- class WindowTabIcon_Static(winrt._winrt.IInspectable_Static):
306
+ class WindowTabIcon_Static(winrt.system.Object_Static):
307
+ @typing.overload
246
308
  # Windows.UI.Shell.WindowTabIcon Windows.UI.Shell.WindowTabIcon::CreateFromFontGlyph(System.String,System.String)
247
309
  def create_from_font_glyph(cls, glyph: str, font_family: str, /) -> WindowTabIcon: ...
310
+ @typing.overload
248
311
  # Windows.UI.Shell.WindowTabIcon Windows.UI.Shell.WindowTabIcon::CreateFromFontGlyph(System.String,System.String,Windows.Foundation.Uri)
312
+ def create_from_font_glyph(cls, glyph: str, font_family: str, font_uri: windows_foundation.Uri, /) -> WindowTabIcon: ...
313
+ # Deprecated alias of create_from_font_glyph() for pywinrt v3.x compatibility.
314
+ # Windows.UI.Shell.WindowTabIcon Windows.UI.Shell.WindowTabIcon::CreateFromFontGlyph(System.String,System.String,Windows.Foundation.Uri)
315
+ @deprecated("Use create_from_font_glyph() instead.")
249
316
  def create_from_font_glyph_with_uri(cls, glyph: str, font_family: str, font_uri: windows_foundation.Uri, /) -> WindowTabIcon: ...
250
317
  # Windows.UI.Shell.WindowTabIcon Windows.UI.Shell.WindowTabIcon::CreateFromImage(Windows.Storage.Streams.IRandomAccessStreamReference)
251
318
  def create_from_image(cls, image: windows_storage_streams.IRandomAccessStreamReference, /) -> WindowTabIcon: ...
252
319
 
253
320
  @typing.final
254
321
  class WindowTabIcon(winrt.system.Object, metaclass=WindowTabIcon_Static):
255
- pass
322
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
323
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
256
324
 
257
325
  @typing.final
258
- class WindowTabManager_Static(winrt._winrt.IInspectable_Static):
326
+ class WindowTabManager_Static(winrt.system.Object_Static):
259
327
  # Windows.UI.Shell.WindowTabManager Windows.UI.Shell.WindowTabManager::GetForWindow(Windows.UI.WindowId)
260
- def get_for_window(cls, id: typing.Union[windows_ui.WindowId, typing.Tuple[winrt.system.UInt64]], /) -> WindowTabManager: ...
328
+ def get_for_window(cls, id: windows_ui.WindowId | tuple[winrt.system.UInt64 | typing.SupportsIndex], /) -> WindowTabManager: ...
261
329
  # System.Boolean Windows.UI.Shell.WindowTabManager::IsSupported()
262
330
  def is_supported(cls) -> bool: ...
263
331
  # System.Boolean Windows.UI.Shell.WindowTabManager::IsTabTearOutSupported()
@@ -265,36 +333,42 @@ class WindowTabManager_Static(winrt._winrt.IInspectable_Static):
265
333
 
266
334
  @typing.final
267
335
  class WindowTabManager(winrt.system.Object, metaclass=WindowTabManager_Static):
336
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
337
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
268
338
  # System.Void Windows.UI.Shell.WindowTabManager::SetActiveTab(Windows.UI.Shell.WindowTab)
269
339
  def set_active_tab(self, tab: WindowTab, /) -> None: ...
270
340
  # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.WindowTabManager::add_TabCloseRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.WindowTabManager,Windows.UI.Shell.WindowTabCloseRequestedEventArgs>)
271
341
  def add_tab_close_requested(self, handler: windows_foundation.TypedEventHandler[WindowTabManager, WindowTabCloseRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
272
342
  # System.Void Windows.UI.Shell.WindowTabManager::remove_TabCloseRequested(Windows.Foundation.EventRegistrationToken)
273
- def remove_tab_close_requested(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
343
+ def remove_tab_close_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
274
344
  # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.WindowTabManager::add_TabSwitchRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.WindowTabManager,Windows.UI.Shell.WindowTabSwitchRequestedEventArgs>)
275
345
  def add_tab_switch_requested(self, handler: windows_foundation.TypedEventHandler[WindowTabManager, WindowTabSwitchRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
276
346
  # System.Void Windows.UI.Shell.WindowTabManager::remove_TabSwitchRequested(Windows.Foundation.EventRegistrationToken)
277
- def remove_tab_switch_requested(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
347
+ def remove_tab_switch_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
278
348
  # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.WindowTabManager::add_TabTearOutRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.WindowTabManager,Windows.UI.Shell.WindowTabTearOutRequestedEventArgs>)
279
349
  def add_tab_tear_out_requested(self, handler: windows_foundation.TypedEventHandler[WindowTabManager, WindowTabTearOutRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
280
350
  # System.Void Windows.UI.Shell.WindowTabManager::remove_TabTearOutRequested(Windows.Foundation.EventRegistrationToken)
281
- def remove_tab_tear_out_requested(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
351
+ def remove_tab_tear_out_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
282
352
  # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.WindowTabManager::add_TabThumbnailRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.WindowTabManager,Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs>)
283
353
  def add_tab_thumbnail_requested(self, handler: windows_foundation.TypedEventHandler[WindowTabManager, WindowTabThumbnailRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
284
354
  # System.Void Windows.UI.Shell.WindowTabManager::remove_TabThumbnailRequested(Windows.Foundation.EventRegistrationToken)
285
- def remove_tab_thumbnail_requested(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
355
+ def remove_tab_thumbnail_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
286
356
  # Windows.UI.Shell.WindowTabCollection Windows.UI.Shell.WindowTabManager::get_Tabs()
287
357
  @_property
288
358
  def tabs(self) -> WindowTabCollection: ...
289
359
 
290
360
  @typing.final
291
361
  class WindowTabSwitchRequestedEventArgs(winrt.system.Object):
362
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
363
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
292
364
  # Windows.UI.Shell.WindowTab Windows.UI.Shell.WindowTabSwitchRequestedEventArgs::get_Tab()
293
365
  @_property
294
366
  def tab(self) -> WindowTab: ...
295
367
 
296
368
  @typing.final
297
369
  class WindowTabTearOutRequestedEventArgs(winrt.system.Object):
370
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
371
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
298
372
  # Windows.Foundation.Deferral Windows.UI.Shell.WindowTabTearOutRequestedEventArgs::GetDeferral()
299
373
  def get_deferral(self) -> windows_foundation.Deferral: ...
300
374
  # System.UInt64 Windows.UI.Shell.WindowTabTearOutRequestedEventArgs::get_WindowId()
@@ -302,13 +376,15 @@ class WindowTabTearOutRequestedEventArgs(winrt.system.Object):
302
376
  def window_id(self) -> winrt.system.UInt64: ...
303
377
  # System.Void Windows.UI.Shell.WindowTabTearOutRequestedEventArgs::put_WindowId(System.UInt64)
304
378
  @window_id.setter
305
- def window_id(self, value: winrt.system.UInt64) -> None: ...
379
+ def window_id(self, value: winrt.system.UInt64 | typing.SupportsIndex) -> None: ...
306
380
  # Windows.UI.Shell.WindowTab Windows.UI.Shell.WindowTabTearOutRequestedEventArgs::get_Tab()
307
381
  @_property
308
382
  def tab(self) -> WindowTab: ...
309
383
 
310
384
  @typing.final
311
385
  class WindowTabThumbnailRequestedEventArgs(winrt.system.Object):
386
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
387
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
312
388
  # Windows.Foundation.Deferral Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs::GetDeferral()
313
389
  def get_deferral(self) -> windows_foundation.Deferral: ...
314
390
  # Windows.Storage.Streams.IRandomAccessStreamReference Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs::get_Image()
@@ -327,18 +403,12 @@ class WindowTabThumbnailRequestedEventArgs(winrt.system.Object):
327
403
  @_property
328
404
  def tab(self) -> WindowTab: ...
329
405
 
330
- @typing.final
331
- class _IAdaptiveCard: ...
332
-
333
- class IAdaptiveCard(winrt._winrt.IInspectable):
406
+ class IAdaptiveCard(winrt.system.Object):
334
407
  # System.String Windows.UI.Shell.IAdaptiveCard::ToJson()
335
408
  @abstractmethod
336
409
  def to_json(self) -> str: ...
337
410
 
338
- @typing.final
339
- class _IAdaptiveCardBuilderStatics: ...
340
-
341
- class IAdaptiveCardBuilderStatics(winrt._winrt.IInspectable):
411
+ class IAdaptiveCardBuilderStatics(winrt.system.Object):
342
412
  # Windows.UI.Shell.IAdaptiveCard Windows.UI.Shell.IAdaptiveCardBuilderStatics::CreateAdaptiveCardFromJson(System.String)
343
413
  @abstractmethod
344
414
  def create_adaptive_card_from_json(self, value: str, /) -> IAdaptiveCard: ...