winrt-Windows.UI.Shell 4!10.0.28000.2705__py3-none-any.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,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")
@@ -0,0 +1,415 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import collections.abc as _cabc
4
+ import datetime
5
+ import enum
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+ from abc import abstractmethod
10
+ from typing_extensions import deprecated
11
+
12
+ import winrt.system
13
+ import winrt.windows.applicationmodel.core as windows_applicationmodel_core
14
+ import winrt.windows.foundation as windows_foundation
15
+ import winrt.windows.foundation.collections as windows_foundation_collections
16
+ import winrt.windows.graphics.imaging as windows_graphics_imaging
17
+ import winrt.windows.storage.streams as windows_storage_streams
18
+ import winrt.windows.ui as windows_ui
19
+ import winrt.windows.ui.startscreen as windows_ui_startscreen
20
+
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
+ ]
45
+
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
63
+
64
+ @typing.final
65
+ class AdaptiveCardBuilder_Static(winrt.system.Object_Static):
66
+ # Windows.UI.Shell.IAdaptiveCard Windows.UI.Shell.AdaptiveCardBuilder::CreateAdaptiveCardFromJson(System.String)
67
+ def create_adaptive_card_from_json(cls, value: str, /) -> IAdaptiveCard: ...
68
+
69
+ @typing.final
70
+ class AdaptiveCardBuilder(winrt.system.Object, metaclass=AdaptiveCardBuilder_Static):
71
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
72
+ """A class of static members only, so there is nothing to create."""
73
+
74
+ @typing.final
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."""
78
+ # System.Void Windows.UI.Shell.FocusSession::End()
79
+ def end(self) -> None: ...
80
+ # System.String Windows.UI.Shell.FocusSession::get_Id()
81
+ @_property
82
+ def id(self) -> str: ...
83
+
84
+ @typing.final
85
+ class FocusSessionManager_Static(winrt.system.Object_Static):
86
+ # Windows.UI.Shell.FocusSessionManager Windows.UI.Shell.FocusSessionManager::GetDefault()
87
+ def get_default(cls) -> FocusSessionManager: ...
88
+ # System.Boolean Windows.UI.Shell.FocusSessionManager::get_IsSupported()
89
+ @_property
90
+ def is_supported(cls) -> bool: ...
91
+
92
+ @typing.final
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."""
96
+ # System.Void Windows.UI.Shell.FocusSessionManager::DeactivateFocus()
97
+ def deactivate_focus(self) -> None: ...
98
+ # Windows.UI.Shell.FocusSession Windows.UI.Shell.FocusSessionManager::GetSession(System.String)
99
+ def get_session(self, id: str, /) -> FocusSession: ...
100
+ @typing.overload
101
+ # Windows.UI.Shell.FocusSession Windows.UI.Shell.FocusSessionManager::TryStartFocusSession()
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.
107
+ # Windows.UI.Shell.FocusSession Windows.UI.Shell.FocusSessionManager::TryStartFocusSession(Windows.Foundation.DateTime)
108
+ @deprecated("Use try_start_focus_session() instead.")
109
+ def try_start_focus_session2(self, end_time: datetime.datetime, /) -> FocusSession | None: ...
110
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.FocusSessionManager::add_IsFocusActiveChanged(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.FocusSessionManager,System.Object>)
111
+ def add_is_focus_active_changed(self, handler: windows_foundation.TypedEventHandler[FocusSessionManager, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
112
+ # System.Void Windows.UI.Shell.FocusSessionManager::remove_IsFocusActiveChanged(Windows.Foundation.EventRegistrationToken)
113
+ def remove_is_focus_active_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
114
+ # System.Boolean Windows.UI.Shell.FocusSessionManager::get_IsFocusActive()
115
+ @_property
116
+ def is_focus_active(self) -> bool: ...
117
+
118
+ @typing.final
119
+ class SecurityAppManager(winrt.system.Object):
120
+ def __new__(cls) -> typing.Self: ...
121
+ # System.Guid Windows.UI.Shell.SecurityAppManager::Register(Windows.UI.Shell.SecurityAppKind,System.String,Windows.Foundation.Uri,System.Boolean)
122
+ def register(self, kind: SecurityAppKind, display_name: str, details_uri: windows_foundation.Uri, register_per_user: bool, /) -> _uuid.UUID: ...
123
+ # System.Void Windows.UI.Shell.SecurityAppManager::Unregister(Windows.UI.Shell.SecurityAppKind,System.Guid)
124
+ def unregister(self, kind: SecurityAppKind, guid_registration: _uuid.UUID, /) -> None: ...
125
+ # System.Void Windows.UI.Shell.SecurityAppManager::UpdateState(Windows.UI.Shell.SecurityAppKind,System.Guid,Windows.UI.Shell.SecurityAppState,Windows.UI.Shell.SecurityAppSubstatus,Windows.Foundation.Uri)
126
+ def update_state(self, kind: SecurityAppKind, guid_registration: _uuid.UUID, state: SecurityAppState, substatus: SecurityAppSubstatus, details_uri: windows_foundation.Uri, /) -> None: ...
127
+
128
+ @typing.final
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."""
132
+ # Windows.UI.Shell.ShareWindowCommand Windows.UI.Shell.ShareWindowCommandEventArgs::get_Command()
133
+ @_property
134
+ def command(self) -> ShareWindowCommand: ...
135
+ # System.Void Windows.UI.Shell.ShareWindowCommandEventArgs::put_Command(Windows.UI.Shell.ShareWindowCommand)
136
+ @command.setter
137
+ def command(self, value: ShareWindowCommand) -> None: ...
138
+ # Windows.UI.WindowId Windows.UI.Shell.ShareWindowCommandEventArgs::get_WindowId()
139
+ @_property
140
+ def window_id(self) -> windows_ui.WindowId: ...
141
+
142
+ @typing.final
143
+ class ShareWindowCommandSource_Static(winrt.system.Object_Static):
144
+ # Windows.UI.Shell.ShareWindowCommandSource Windows.UI.Shell.ShareWindowCommandSource::GetForCurrentView()
145
+ def get_for_current_view(cls) -> ShareWindowCommandSource: ...
146
+
147
+ @typing.final
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."""
151
+ # System.Void Windows.UI.Shell.ShareWindowCommandSource::ReportCommandChanged()
152
+ def report_command_changed(self) -> None: ...
153
+ # System.Void Windows.UI.Shell.ShareWindowCommandSource::Start()
154
+ def start(self) -> None: ...
155
+ # System.Void Windows.UI.Shell.ShareWindowCommandSource::Stop()
156
+ def stop(self) -> None: ...
157
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.ShareWindowCommandSource::add_CommandInvoked(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.ShareWindowCommandSource,Windows.UI.Shell.ShareWindowCommandEventArgs>)
158
+ def add_command_invoked(self, handler: windows_foundation.TypedEventHandler[ShareWindowCommandSource, ShareWindowCommandEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
159
+ # System.Void Windows.UI.Shell.ShareWindowCommandSource::remove_CommandInvoked(Windows.Foundation.EventRegistrationToken)
160
+ def remove_command_invoked(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
161
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.ShareWindowCommandSource::add_CommandRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.ShareWindowCommandSource,Windows.UI.Shell.ShareWindowCommandEventArgs>)
162
+ def add_command_requested(self, handler: windows_foundation.TypedEventHandler[ShareWindowCommandSource, ShareWindowCommandEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
163
+ # System.Void Windows.UI.Shell.ShareWindowCommandSource::remove_CommandRequested(Windows.Foundation.EventRegistrationToken)
164
+ def remove_command_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
165
+
166
+ @typing.final
167
+ class TaskbarManager_Static(winrt.system.Object_Static):
168
+ # Windows.UI.Shell.TaskbarManager Windows.UI.Shell.TaskbarManager::GetDefault()
169
+ def get_default(cls) -> TaskbarManager: ...
170
+
171
+ @typing.final
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."""
175
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.UI.Shell.TaskbarManager::IsAppListEntryPinnedAsync(Windows.ApplicationModel.Core.AppListEntry)
176
+ def is_app_list_entry_pinned_async(self, app_list_entry: windows_applicationmodel_core.AppListEntry, /) -> windows_foundation.IAsyncOperation[bool]: ...
177
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.UI.Shell.TaskbarManager::IsCurrentAppPinnedAsync()
178
+ def is_current_app_pinned_async(self) -> windows_foundation.IAsyncOperation[bool]: ...
179
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.UI.Shell.TaskbarManager::IsSecondaryTilePinnedAsync(System.String)
180
+ def is_secondary_tile_pinned_async(self, tile_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
181
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.UI.Shell.TaskbarManager::RequestPinAppListEntryAsync(Windows.ApplicationModel.Core.AppListEntry)
182
+ def request_pin_app_list_entry_async(self, app_list_entry: windows_applicationmodel_core.AppListEntry, /) -> windows_foundation.IAsyncOperation[bool]: ...
183
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.UI.Shell.TaskbarManager::RequestPinCurrentAppAsync()
184
+ def request_pin_current_app_async(self) -> windows_foundation.IAsyncOperation[bool]: ...
185
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.UI.Shell.TaskbarManager::RequestPinSecondaryTileAsync(Windows.UI.StartScreen.SecondaryTile)
186
+ def request_pin_secondary_tile_async(self, secondary_tile: windows_ui_startscreen.SecondaryTile, /) -> windows_foundation.IAsyncOperation[bool]: ...
187
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.UI.Shell.TaskbarManager::TryUnpinSecondaryTileAsync(System.String)
188
+ def try_unpin_secondary_tile_async(self, tile_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
189
+ # System.Boolean Windows.UI.Shell.TaskbarManager::get_IsPinningAllowed()
190
+ @_property
191
+ def is_pinning_allowed(self) -> bool: ...
192
+ # System.Boolean Windows.UI.Shell.TaskbarManager::get_IsSupported()
193
+ @_property
194
+ def is_supported(self) -> bool: ...
195
+
196
+ @typing.final
197
+ class WindowTab(winrt.system.Object):
198
+ def __new__(cls) -> typing.Self: ...
199
+ # System.Void Windows.UI.Shell.WindowTab::ReportThumbnailAvailable()
200
+ def report_thumbnail_available(self) -> None: ...
201
+ # System.String Windows.UI.Shell.WindowTab::get_TreatAsSecondaryTileId()
202
+ @_property
203
+ def treat_as_secondary_tile_id(self) -> str: ...
204
+ # System.Void Windows.UI.Shell.WindowTab::put_TreatAsSecondaryTileId(System.String)
205
+ @treat_as_secondary_tile_id.setter
206
+ def treat_as_secondary_tile_id(self, value: str) -> None: ...
207
+ # System.String Windows.UI.Shell.WindowTab::get_Title()
208
+ @_property
209
+ def title(self) -> str: ...
210
+ # System.Void Windows.UI.Shell.WindowTab::put_Title(System.String)
211
+ @title.setter
212
+ def title(self, value: str) -> None: ...
213
+ # System.Object Windows.UI.Shell.WindowTab::get_Tag()
214
+ @_property
215
+ def tag(self) -> winrt.system.Object: ...
216
+ # System.Void Windows.UI.Shell.WindowTab::put_Tag(System.Object)
217
+ @tag.setter
218
+ def tag(self, value: winrt.system.Object) -> None: ...
219
+ # Windows.UI.Shell.WindowTabIcon Windows.UI.Shell.WindowTab::get_Icon()
220
+ @_property
221
+ def icon(self) -> WindowTabIcon: ...
222
+ # System.Void Windows.UI.Shell.WindowTab::put_Icon(Windows.UI.Shell.WindowTabIcon)
223
+ @icon.setter
224
+ def icon(self, value: WindowTabIcon) -> None: ...
225
+ # Windows.UI.Shell.WindowTabGroup Windows.UI.Shell.WindowTab::get_Group()
226
+ @_property
227
+ def group(self) -> WindowTabGroup: ...
228
+ # System.Void Windows.UI.Shell.WindowTab::put_Group(Windows.UI.Shell.WindowTabGroup)
229
+ @group.setter
230
+ def group(self, value: WindowTabGroup) -> None: ...
231
+
232
+ @typing.final
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."""
236
+ # Windows.UI.Shell.WindowTab Windows.UI.Shell.WindowTabCloseRequestedEventArgs::get_Tab()
237
+ @_property
238
+ def tab(self) -> WindowTab: ...
239
+
240
+ @typing.final
241
+ class WindowTabCollection(_cabc.MutableSequence[WindowTab], winrt.system.Object):
242
+ def __len__(self) -> int: ...
243
+ def __iter__(self) -> _cabc.Iterator[WindowTab]: ...
244
+ @typing.overload # type: ignore[override]
245
+ def __getitem__(self, index: typing.SupportsIndex) -> WindowTab: ...
246
+ @typing.overload
247
+ def __getitem__(self, index: slice) -> winrt.system.Array[WindowTab]: ... # pyright: ignore[reportIncompatibleMethodOverride]
248
+ @typing.overload
249
+ def __delitem__(self, index: typing.SupportsIndex) -> None: ...
250
+ @typing.overload
251
+ def __delitem__(self, index: slice) -> None: ...
252
+ @typing.overload
253
+ def __setitem__(self, index: typing.SupportsIndex, value: WindowTab) -> None: ...
254
+ @typing.overload
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."""
259
+ # System.Void Windows.UI.Shell.WindowTabCollection::Append(Windows.UI.Shell.WindowTab)
260
+ def append(self, value: WindowTab, /) -> None: ...
261
+ # System.Void Windows.UI.Shell.WindowTabCollection::Clear()
262
+ def clear(self) -> None: ...
263
+ # Windows.Foundation.Collections.IIterator`1<Windows.UI.Shell.WindowTab> Windows.UI.Shell.WindowTabCollection::First()
264
+ def first(self) -> windows_foundation_collections.IIterator[WindowTab]: ...
265
+ # Windows.UI.Shell.WindowTab Windows.UI.Shell.WindowTabCollection::GetAt(System.UInt32)
266
+ def get_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, /) -> WindowTab: ...
267
+ # System.UInt32 Windows.UI.Shell.WindowTabCollection::GetMany(System.UInt32,Windows.UI.Shell.WindowTab[])
268
+ def get_many(self, start_index: winrt.system.UInt32 | typing.SupportsIndex, items: winrt.system.Array[WindowTab] | winrt.system.WriteableBuffer, /) -> winrt.system.UInt32: ...
269
+ # Windows.Foundation.Collections.IVectorView`1<Windows.UI.Shell.WindowTab> Windows.UI.Shell.WindowTabCollection::GetView()
270
+ def get_view(self) -> _cabc.Sequence[WindowTab]: ...
271
+ # System.Boolean Windows.UI.Shell.WindowTabCollection::IndexOf(Windows.UI.Shell.WindowTab,System.UInt32&)
272
+ def index_of(self, value: WindowTab, /) -> tuple[bool, winrt.system.UInt32]: ...
273
+ # System.Void Windows.UI.Shell.WindowTabCollection::InsertAt(System.UInt32,Windows.UI.Shell.WindowTab)
274
+ def insert_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, value: WindowTab, /) -> None: ...
275
+ # System.Void Windows.UI.Shell.WindowTabCollection::MoveTab(Windows.UI.Shell.WindowTab,System.UInt32)
276
+ def move_tab(self, tab: WindowTab, index: winrt.system.UInt32 | typing.SupportsIndex, /) -> None: ...
277
+ # System.Void Windows.UI.Shell.WindowTabCollection::RemoveAt(System.UInt32)
278
+ def remove_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, /) -> None: ...
279
+ # System.Void Windows.UI.Shell.WindowTabCollection::RemoveAtEnd()
280
+ def remove_at_end(self) -> None: ...
281
+ # System.Void Windows.UI.Shell.WindowTabCollection::ReplaceAll(Windows.UI.Shell.WindowTab[])
282
+ def replace_all(self, items: winrt.system.Array[WindowTab] | winrt.system.ReadableBuffer, /) -> None: ...
283
+ # System.Void Windows.UI.Shell.WindowTabCollection::SetAt(System.UInt32,Windows.UI.Shell.WindowTab)
284
+ def set_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, value: WindowTab, /) -> None: ...
285
+ # System.UInt32 Windows.UI.Shell.WindowTabCollection::get_Size()
286
+ @_property
287
+ def size(self) -> winrt.system.UInt32: ...
288
+
289
+ @typing.final
290
+ class WindowTabGroup(winrt.system.Object):
291
+ def __new__(cls) -> typing.Self: ...
292
+ # System.String Windows.UI.Shell.WindowTabGroup::get_Title()
293
+ @_property
294
+ def title(self) -> str: ...
295
+ # System.Void Windows.UI.Shell.WindowTabGroup::put_Title(System.String)
296
+ @title.setter
297
+ def title(self, value: str) -> None: ...
298
+ # Windows.UI.Shell.WindowTabIcon Windows.UI.Shell.WindowTabGroup::get_Icon()
299
+ @_property
300
+ def icon(self) -> WindowTabIcon: ...
301
+ # System.Void Windows.UI.Shell.WindowTabGroup::put_Icon(Windows.UI.Shell.WindowTabIcon)
302
+ @icon.setter
303
+ def icon(self, value: WindowTabIcon) -> None: ...
304
+
305
+ @typing.final
306
+ class WindowTabIcon_Static(winrt.system.Object_Static):
307
+ @typing.overload
308
+ # Windows.UI.Shell.WindowTabIcon Windows.UI.Shell.WindowTabIcon::CreateFromFontGlyph(System.String,System.String)
309
+ def create_from_font_glyph(cls, glyph: str, font_family: str, /) -> WindowTabIcon: ...
310
+ @typing.overload
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.")
316
+ def create_from_font_glyph_with_uri(cls, glyph: str, font_family: str, font_uri: windows_foundation.Uri, /) -> WindowTabIcon: ...
317
+ # Windows.UI.Shell.WindowTabIcon Windows.UI.Shell.WindowTabIcon::CreateFromImage(Windows.Storage.Streams.IRandomAccessStreamReference)
318
+ def create_from_image(cls, image: windows_storage_streams.IRandomAccessStreamReference, /) -> WindowTabIcon: ...
319
+
320
+ @typing.final
321
+ class WindowTabIcon(winrt.system.Object, metaclass=WindowTabIcon_Static):
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."""
324
+
325
+ @typing.final
326
+ class WindowTabManager_Static(winrt.system.Object_Static):
327
+ # Windows.UI.Shell.WindowTabManager Windows.UI.Shell.WindowTabManager::GetForWindow(Windows.UI.WindowId)
328
+ def get_for_window(cls, id: windows_ui.WindowId | tuple[winrt.system.UInt64 | typing.SupportsIndex], /) -> WindowTabManager: ...
329
+ # System.Boolean Windows.UI.Shell.WindowTabManager::IsSupported()
330
+ def is_supported(cls) -> bool: ...
331
+ # System.Boolean Windows.UI.Shell.WindowTabManager::IsTabTearOutSupported()
332
+ def is_tab_tear_out_supported(cls) -> bool: ...
333
+
334
+ @typing.final
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."""
338
+ # System.Void Windows.UI.Shell.WindowTabManager::SetActiveTab(Windows.UI.Shell.WindowTab)
339
+ def set_active_tab(self, tab: WindowTab, /) -> None: ...
340
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.WindowTabManager::add_TabCloseRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.WindowTabManager,Windows.UI.Shell.WindowTabCloseRequestedEventArgs>)
341
+ def add_tab_close_requested(self, handler: windows_foundation.TypedEventHandler[WindowTabManager, WindowTabCloseRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
342
+ # System.Void Windows.UI.Shell.WindowTabManager::remove_TabCloseRequested(Windows.Foundation.EventRegistrationToken)
343
+ def remove_tab_close_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
344
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.WindowTabManager::add_TabSwitchRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.WindowTabManager,Windows.UI.Shell.WindowTabSwitchRequestedEventArgs>)
345
+ def add_tab_switch_requested(self, handler: windows_foundation.TypedEventHandler[WindowTabManager, WindowTabSwitchRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
346
+ # System.Void Windows.UI.Shell.WindowTabManager::remove_TabSwitchRequested(Windows.Foundation.EventRegistrationToken)
347
+ def remove_tab_switch_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
348
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.WindowTabManager::add_TabTearOutRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.WindowTabManager,Windows.UI.Shell.WindowTabTearOutRequestedEventArgs>)
349
+ def add_tab_tear_out_requested(self, handler: windows_foundation.TypedEventHandler[WindowTabManager, WindowTabTearOutRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
350
+ # System.Void Windows.UI.Shell.WindowTabManager::remove_TabTearOutRequested(Windows.Foundation.EventRegistrationToken)
351
+ def remove_tab_tear_out_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
352
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Shell.WindowTabManager::add_TabThumbnailRequested(Windows.Foundation.TypedEventHandler`2<Windows.UI.Shell.WindowTabManager,Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs>)
353
+ def add_tab_thumbnail_requested(self, handler: windows_foundation.TypedEventHandler[WindowTabManager, WindowTabThumbnailRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
354
+ # System.Void Windows.UI.Shell.WindowTabManager::remove_TabThumbnailRequested(Windows.Foundation.EventRegistrationToken)
355
+ def remove_tab_thumbnail_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
356
+ # Windows.UI.Shell.WindowTabCollection Windows.UI.Shell.WindowTabManager::get_Tabs()
357
+ @_property
358
+ def tabs(self) -> WindowTabCollection: ...
359
+
360
+ @typing.final
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."""
364
+ # Windows.UI.Shell.WindowTab Windows.UI.Shell.WindowTabSwitchRequestedEventArgs::get_Tab()
365
+ @_property
366
+ def tab(self) -> WindowTab: ...
367
+
368
+ @typing.final
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."""
372
+ # Windows.Foundation.Deferral Windows.UI.Shell.WindowTabTearOutRequestedEventArgs::GetDeferral()
373
+ def get_deferral(self) -> windows_foundation.Deferral: ...
374
+ # System.UInt64 Windows.UI.Shell.WindowTabTearOutRequestedEventArgs::get_WindowId()
375
+ @_property
376
+ def window_id(self) -> winrt.system.UInt64: ...
377
+ # System.Void Windows.UI.Shell.WindowTabTearOutRequestedEventArgs::put_WindowId(System.UInt64)
378
+ @window_id.setter
379
+ def window_id(self, value: winrt.system.UInt64 | typing.SupportsIndex) -> None: ...
380
+ # Windows.UI.Shell.WindowTab Windows.UI.Shell.WindowTabTearOutRequestedEventArgs::get_Tab()
381
+ @_property
382
+ def tab(self) -> WindowTab: ...
383
+
384
+ @typing.final
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."""
388
+ # Windows.Foundation.Deferral Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs::GetDeferral()
389
+ def get_deferral(self) -> windows_foundation.Deferral: ...
390
+ # Windows.Storage.Streams.IRandomAccessStreamReference Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs::get_Image()
391
+ @_property
392
+ def image(self) -> windows_storage_streams.IRandomAccessStreamReference: ...
393
+ # System.Void Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs::put_Image(Windows.Storage.Streams.IRandomAccessStreamReference)
394
+ @image.setter
395
+ def image(self, value: windows_storage_streams.IRandomAccessStreamReference) -> None: ...
396
+ # System.Boolean Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs::get_IsCompositedOnWindow()
397
+ @_property
398
+ def is_composited_on_window(self) -> bool: ...
399
+ # Windows.Graphics.Imaging.BitmapSize Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs::get_RequestedSize()
400
+ @_property
401
+ def requested_size(self) -> windows_graphics_imaging.BitmapSize: ...
402
+ # Windows.UI.Shell.WindowTab Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs::get_Tab()
403
+ @_property
404
+ def tab(self) -> WindowTab: ...
405
+
406
+ class IAdaptiveCard(winrt.system.Object):
407
+ # System.String Windows.UI.Shell.IAdaptiveCard::ToJson()
408
+ @abstractmethod
409
+ def to_json(self) -> str: ...
410
+
411
+ class IAdaptiveCardBuilderStatics(winrt.system.Object):
412
+ # Windows.UI.Shell.IAdaptiveCard Windows.UI.Shell.IAdaptiveCardBuilderStatics::CreateAdaptiveCardFromJson(System.String)
413
+ @abstractmethod
414
+ def create_adaptive_card_from_json(self, value: str, /) -> IAdaptiveCard: ...
415
+
Binary file
File without changes
@@ -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,8 @@
1
+ winrt/windows/ui/shell/__init__.py,sha256=2LN6hFjR9FeElsHH_pMaFfdgscMz_KJyh8VH6Ey9MAA,1122
2
+ winrt/windows/ui/shell/__init__.pyi,sha256=cY1dKp6yBP0rQX51jOaknqCKoeGEomRXctdlF46ZEBw,26509
3
+ winrt/windows/ui/shell/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/ui/shell/_table.pywinrt,sha256=whfVfin1XczhAgHmaCcEdOiE4MK6HYHV30KFwNc-VvI,28120
5
+ winrt_windows_ui_shell-4!10.0.28000.2705.dist-info/METADATA,sha256=LrljWGE43CNR00D_fKM2J_NjM6E5Sz4KibQmWQASOUc,2387
6
+ winrt_windows_ui_shell-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_ui_shell-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_ui_shell-4!10.0.28000.2705.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -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