winrt-Windows.ApplicationModel.Core 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.
- winrt/windows/applicationmodel/core/__init__.py +23 -0
- winrt/windows/applicationmodel/core/__init__.pyi +261 -0
- winrt/windows/applicationmodel/core/_table.pywinrt +0 -0
- winrt/windows/applicationmodel/core/py.typed +0 -0
- winrt_windows_applicationmodel_core-4!10.0.28000.2705.dist-info/METADATA +50 -0
- winrt_windows_applicationmodel_core-4!10.0.28000.2705.dist-info/RECORD +8 -0
- winrt_windows_applicationmodel_core-4!10.0.28000.2705.dist-info/WHEEL +4 -0
- winrt_windows_applicationmodel_core-4!10.0.28000.2705.dist-info/licenses/LICENSE +22 -0
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
"AppRestartFailureReason",
|
|
10
|
+
"AppListEntry",
|
|
11
|
+
"CoreApplication",
|
|
12
|
+
"CoreApplicationView",
|
|
13
|
+
"CoreApplicationViewTitleBar",
|
|
14
|
+
"HostedViewClosingEventArgs",
|
|
15
|
+
"UnhandledError",
|
|
16
|
+
"UnhandledErrorDetectedEventArgs",
|
|
17
|
+
"ICoreApplicationUnhandledError",
|
|
18
|
+
"IFrameworkView",
|
|
19
|
+
"IFrameworkViewSource",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
winrt.runtime._internals.alias_static_method(CoreApplication, "create_new_view_from_main_view", "create_new_view")
|
|
23
|
+
winrt.runtime._internals.alias_static_method(CoreApplication, "create_new_view_with_view_source", "create_new_view")
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
|
+
|
|
3
|
+
import collections.abc as _cabc
|
|
4
|
+
import enum
|
|
5
|
+
import typing
|
|
6
|
+
from builtins import property as _property
|
|
7
|
+
from abc import abstractmethod
|
|
8
|
+
from typing_extensions import deprecated
|
|
9
|
+
|
|
10
|
+
import winrt.system
|
|
11
|
+
import winrt.windows.applicationmodel as windows_applicationmodel
|
|
12
|
+
import winrt.windows.applicationmodel.activation as windows_applicationmodel_activation
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
|
+
import winrt.windows.system as windows_system
|
|
16
|
+
import winrt.windows.ui.core as windows_ui_core
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"AppRestartFailureReason",
|
|
20
|
+
"AppListEntry",
|
|
21
|
+
"CoreApplication",
|
|
22
|
+
"CoreApplicationView",
|
|
23
|
+
"CoreApplicationViewTitleBar",
|
|
24
|
+
"HostedViewClosingEventArgs",
|
|
25
|
+
"UnhandledError",
|
|
26
|
+
"UnhandledErrorDetectedEventArgs",
|
|
27
|
+
"ICoreApplicationUnhandledError",
|
|
28
|
+
"IFrameworkView",
|
|
29
|
+
"IFrameworkViewSource",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
class AppRestartFailureReason(enum.IntEnum):
|
|
33
|
+
RESTART_PENDING = 0
|
|
34
|
+
NOT_IN_FOREGROUND = 1
|
|
35
|
+
INVALID_USER = 2
|
|
36
|
+
OTHER = 3
|
|
37
|
+
|
|
38
|
+
@typing.final
|
|
39
|
+
class AppListEntry(winrt.system.Object):
|
|
40
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
41
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
42
|
+
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.ApplicationModel.Core.AppListEntry::LaunchAsync()
|
|
43
|
+
def launch_async(self) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
44
|
+
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.ApplicationModel.Core.AppListEntry::LaunchForUserAsync(Windows.System.User)
|
|
45
|
+
def launch_for_user_async(self, user: windows_system.User, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
46
|
+
# Windows.ApplicationModel.AppDisplayInfo Windows.ApplicationModel.Core.AppListEntry::get_DisplayInfo()
|
|
47
|
+
@_property
|
|
48
|
+
def display_info(self) -> windows_applicationmodel.AppDisplayInfo: ...
|
|
49
|
+
# System.String Windows.ApplicationModel.Core.AppListEntry::get_AppUserModelId()
|
|
50
|
+
@_property
|
|
51
|
+
def app_user_model_id(self) -> str: ...
|
|
52
|
+
# Windows.ApplicationModel.AppInfo Windows.ApplicationModel.Core.AppListEntry::get_AppInfo()
|
|
53
|
+
@_property
|
|
54
|
+
def app_info(self) -> windows_applicationmodel.AppInfo: ...
|
|
55
|
+
|
|
56
|
+
@typing.final
|
|
57
|
+
class CoreApplication_Static(winrt.system.Object_Static):
|
|
58
|
+
@typing.overload
|
|
59
|
+
# Windows.ApplicationModel.Core.CoreApplicationView Windows.ApplicationModel.Core.CoreApplication::CreateNewView()
|
|
60
|
+
def create_new_view(cls) -> CoreApplicationView: ...
|
|
61
|
+
@typing.overload
|
|
62
|
+
# Windows.ApplicationModel.Core.CoreApplicationView Windows.ApplicationModel.Core.CoreApplication::CreateNewView(Windows.ApplicationModel.Core.IFrameworkViewSource)
|
|
63
|
+
def create_new_view(cls, view_source: IFrameworkViewSource, /) -> CoreApplicationView: ...
|
|
64
|
+
@typing.overload
|
|
65
|
+
# Windows.ApplicationModel.Core.CoreApplicationView Windows.ApplicationModel.Core.CoreApplication::CreateNewView(System.String,System.String)
|
|
66
|
+
def create_new_view(cls, runtime_type: str, entry_point: str, /) -> CoreApplicationView: ...
|
|
67
|
+
# Deprecated alias of create_new_view() for pywinrt v3.x compatibility.
|
|
68
|
+
# Windows.ApplicationModel.Core.CoreApplicationView Windows.ApplicationModel.Core.CoreApplication::CreateNewView()
|
|
69
|
+
@deprecated("Use create_new_view() instead.")
|
|
70
|
+
def create_new_view_from_main_view(cls) -> CoreApplicationView: ...
|
|
71
|
+
# Deprecated alias of create_new_view() for pywinrt v3.x compatibility.
|
|
72
|
+
# Windows.ApplicationModel.Core.CoreApplicationView Windows.ApplicationModel.Core.CoreApplication::CreateNewView(Windows.ApplicationModel.Core.IFrameworkViewSource)
|
|
73
|
+
@deprecated("Use create_new_view() instead.")
|
|
74
|
+
def create_new_view_with_view_source(cls, view_source: IFrameworkViewSource, /) -> CoreApplicationView: ...
|
|
75
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::DecrementApplicationUseCount()
|
|
76
|
+
def decrement_application_use_count(cls) -> None: ...
|
|
77
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::EnablePrelaunch(System.Boolean)
|
|
78
|
+
def enable_prelaunch(cls, value: bool, /) -> None: ...
|
|
79
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::Exit()
|
|
80
|
+
def exit(cls) -> None: ...
|
|
81
|
+
# Windows.ApplicationModel.Core.CoreApplicationView Windows.ApplicationModel.Core.CoreApplication::GetCurrentView()
|
|
82
|
+
def get_current_view(cls) -> CoreApplicationView: ...
|
|
83
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::IncrementApplicationUseCount()
|
|
84
|
+
def increment_application_use_count(cls) -> None: ...
|
|
85
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Core.AppRestartFailureReason> Windows.ApplicationModel.Core.CoreApplication::RequestRestartAsync(System.String)
|
|
86
|
+
def request_restart_async(cls, launch_arguments: str, /) -> windows_foundation.IAsyncOperation[AppRestartFailureReason]: ...
|
|
87
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Core.AppRestartFailureReason> Windows.ApplicationModel.Core.CoreApplication::RequestRestartForUserAsync(Windows.System.User,System.String)
|
|
88
|
+
def request_restart_for_user_async(cls, user: windows_system.User, launch_arguments: str, /) -> windows_foundation.IAsyncOperation[AppRestartFailureReason]: ...
|
|
89
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::Run(Windows.ApplicationModel.Core.IFrameworkViewSource)
|
|
90
|
+
def run(cls, view_source: IFrameworkViewSource, /) -> None: ...
|
|
91
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::RunWithActivationFactories(Windows.Foundation.IGetActivationFactory)
|
|
92
|
+
def run_with_activation_factories(cls, activation_factory_callback: windows_foundation.IGetActivationFactory, /) -> None: ...
|
|
93
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplication::add_UnhandledErrorDetected(Windows.Foundation.EventHandler`1<Windows.ApplicationModel.Core.UnhandledErrorDetectedEventArgs>)
|
|
94
|
+
def add_unhandled_error_detected(cls, handler: windows_foundation.EventHandler[UnhandledErrorDetectedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
95
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::remove_UnhandledErrorDetected(Windows.Foundation.EventRegistrationToken)
|
|
96
|
+
def remove_unhandled_error_detected(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
97
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplication::add_Exiting(Windows.Foundation.EventHandler`1<System.Object>)
|
|
98
|
+
def add_exiting(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
99
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::remove_Exiting(Windows.Foundation.EventRegistrationToken)
|
|
100
|
+
def remove_exiting(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
101
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplication::add_BackgroundActivated(Windows.Foundation.EventHandler`1<Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs>)
|
|
102
|
+
def add_background_activated(cls, handler: windows_foundation.EventHandler[windows_applicationmodel_activation.BackgroundActivatedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
103
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::remove_BackgroundActivated(Windows.Foundation.EventRegistrationToken)
|
|
104
|
+
def remove_background_activated(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
105
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplication::add_EnteredBackground(Windows.Foundation.EventHandler`1<Windows.ApplicationModel.EnteredBackgroundEventArgs>)
|
|
106
|
+
def add_entered_background(cls, handler: windows_foundation.EventHandler[windows_applicationmodel.EnteredBackgroundEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
107
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::remove_EnteredBackground(Windows.Foundation.EventRegistrationToken)
|
|
108
|
+
def remove_entered_background(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
109
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplication::add_LeavingBackground(Windows.Foundation.EventHandler`1<Windows.ApplicationModel.LeavingBackgroundEventArgs>)
|
|
110
|
+
def add_leaving_background(cls, handler: windows_foundation.EventHandler[windows_applicationmodel.LeavingBackgroundEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
111
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::remove_LeavingBackground(Windows.Foundation.EventRegistrationToken)
|
|
112
|
+
def remove_leaving_background(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
113
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplication::add_Resuming(Windows.Foundation.EventHandler`1<System.Object>)
|
|
114
|
+
def add_resuming(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
115
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::remove_Resuming(Windows.Foundation.EventRegistrationToken)
|
|
116
|
+
def remove_resuming(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
117
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplication::add_Suspending(Windows.Foundation.EventHandler`1<Windows.ApplicationModel.SuspendingEventArgs>)
|
|
118
|
+
def add_suspending(cls, handler: windows_foundation.EventHandler[windows_applicationmodel.SuspendingEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
119
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplication::remove_Suspending(Windows.Foundation.EventRegistrationToken)
|
|
120
|
+
def remove_suspending(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
121
|
+
# System.String Windows.ApplicationModel.Core.CoreApplication::get_Id()
|
|
122
|
+
@_property
|
|
123
|
+
def id(cls) -> str: ...
|
|
124
|
+
# Windows.Foundation.Collections.IPropertySet Windows.ApplicationModel.Core.CoreApplication::get_Properties()
|
|
125
|
+
@_property
|
|
126
|
+
def properties(cls) -> windows_foundation_collections.IPropertySet: ...
|
|
127
|
+
# Windows.ApplicationModel.Core.CoreApplicationView Windows.ApplicationModel.Core.CoreApplication::get_MainView()
|
|
128
|
+
@_property
|
|
129
|
+
def main_view(cls) -> CoreApplicationView: ...
|
|
130
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Core.CoreApplicationView> Windows.ApplicationModel.Core.CoreApplication::get_Views()
|
|
131
|
+
@_property
|
|
132
|
+
def views(cls) -> _cabc.Sequence[CoreApplicationView]: ...
|
|
133
|
+
|
|
134
|
+
@typing.final
|
|
135
|
+
class CoreApplication(winrt.system.Object, metaclass=CoreApplication_Static):
|
|
136
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
137
|
+
"""A class of static members only, so there is nothing to create."""
|
|
138
|
+
|
|
139
|
+
@typing.final
|
|
140
|
+
class CoreApplicationView(winrt.system.Object):
|
|
141
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
142
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
143
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplicationView::add_Activated(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Core.CoreApplicationView,Windows.ApplicationModel.Activation.IActivatedEventArgs>)
|
|
144
|
+
def add_activated(self, handler: windows_foundation.TypedEventHandler[CoreApplicationView, windows_applicationmodel_activation.IActivatedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
145
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplicationView::remove_Activated(Windows.Foundation.EventRegistrationToken)
|
|
146
|
+
def remove_activated(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
147
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplicationView::add_HostedViewClosing(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Core.CoreApplicationView,Windows.ApplicationModel.Core.HostedViewClosingEventArgs>)
|
|
148
|
+
def add_hosted_view_closing(self, handler: windows_foundation.TypedEventHandler[CoreApplicationView, HostedViewClosingEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
149
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplicationView::remove_HostedViewClosing(Windows.Foundation.EventRegistrationToken)
|
|
150
|
+
def remove_hosted_view_closing(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
151
|
+
# Windows.UI.Core.CoreWindow Windows.ApplicationModel.Core.CoreApplicationView::get_CoreWindow()
|
|
152
|
+
@_property
|
|
153
|
+
def core_window(self) -> windows_ui_core.CoreWindow: ...
|
|
154
|
+
# System.Boolean Windows.ApplicationModel.Core.CoreApplicationView::get_IsHosted()
|
|
155
|
+
@_property
|
|
156
|
+
def is_hosted(self) -> bool: ...
|
|
157
|
+
# System.Boolean Windows.ApplicationModel.Core.CoreApplicationView::get_IsMain()
|
|
158
|
+
@_property
|
|
159
|
+
def is_main(self) -> bool: ...
|
|
160
|
+
# Windows.UI.Core.CoreDispatcher Windows.ApplicationModel.Core.CoreApplicationView::get_Dispatcher()
|
|
161
|
+
@_property
|
|
162
|
+
def dispatcher(self) -> windows_ui_core.CoreDispatcher: ...
|
|
163
|
+
# System.Boolean Windows.ApplicationModel.Core.CoreApplicationView::get_IsComponent()
|
|
164
|
+
@_property
|
|
165
|
+
def is_component(self) -> bool: ...
|
|
166
|
+
# Windows.ApplicationModel.Core.CoreApplicationViewTitleBar Windows.ApplicationModel.Core.CoreApplicationView::get_TitleBar()
|
|
167
|
+
@_property
|
|
168
|
+
def title_bar(self) -> CoreApplicationViewTitleBar: ...
|
|
169
|
+
# Windows.Foundation.Collections.IPropertySet Windows.ApplicationModel.Core.CoreApplicationView::get_Properties()
|
|
170
|
+
@_property
|
|
171
|
+
def properties(self) -> windows_foundation_collections.IPropertySet: ...
|
|
172
|
+
# Windows.System.DispatcherQueue Windows.ApplicationModel.Core.CoreApplicationView::get_DispatcherQueue()
|
|
173
|
+
@_property
|
|
174
|
+
def dispatcher_queue(self) -> windows_system.DispatcherQueue: ...
|
|
175
|
+
|
|
176
|
+
@typing.final
|
|
177
|
+
class CoreApplicationViewTitleBar(winrt.system.Object):
|
|
178
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
179
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
180
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::add_IsVisibleChanged(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Core.CoreApplicationViewTitleBar,System.Object>)
|
|
181
|
+
def add_is_visible_changed(self, handler: windows_foundation.TypedEventHandler[CoreApplicationViewTitleBar, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
182
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::remove_IsVisibleChanged(Windows.Foundation.EventRegistrationToken)
|
|
183
|
+
def remove_is_visible_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
184
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::add_LayoutMetricsChanged(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Core.CoreApplicationViewTitleBar,System.Object>)
|
|
185
|
+
def add_layout_metrics_changed(self, handler: windows_foundation.TypedEventHandler[CoreApplicationViewTitleBar, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
186
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::remove_LayoutMetricsChanged(Windows.Foundation.EventRegistrationToken)
|
|
187
|
+
def remove_layout_metrics_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
188
|
+
# System.Boolean Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::get_ExtendViewIntoTitleBar()
|
|
189
|
+
@_property
|
|
190
|
+
def extend_view_into_title_bar(self) -> bool: ...
|
|
191
|
+
# System.Void Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::put_ExtendViewIntoTitleBar(System.Boolean)
|
|
192
|
+
@extend_view_into_title_bar.setter
|
|
193
|
+
def extend_view_into_title_bar(self, value: bool) -> None: ...
|
|
194
|
+
# System.Double Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::get_Height()
|
|
195
|
+
@_property
|
|
196
|
+
def height(self) -> winrt.system.Double: ...
|
|
197
|
+
# System.Boolean Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::get_IsVisible()
|
|
198
|
+
@_property
|
|
199
|
+
def is_visible(self) -> bool: ...
|
|
200
|
+
# System.Double Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::get_SystemOverlayLeftInset()
|
|
201
|
+
@_property
|
|
202
|
+
def system_overlay_left_inset(self) -> winrt.system.Double: ...
|
|
203
|
+
# System.Double Windows.ApplicationModel.Core.CoreApplicationViewTitleBar::get_SystemOverlayRightInset()
|
|
204
|
+
@_property
|
|
205
|
+
def system_overlay_right_inset(self) -> winrt.system.Double: ...
|
|
206
|
+
|
|
207
|
+
@typing.final
|
|
208
|
+
class HostedViewClosingEventArgs(winrt.system.Object):
|
|
209
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
210
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
211
|
+
# Windows.Foundation.Deferral Windows.ApplicationModel.Core.HostedViewClosingEventArgs::GetDeferral()
|
|
212
|
+
def get_deferral(self) -> windows_foundation.Deferral: ...
|
|
213
|
+
|
|
214
|
+
@typing.final
|
|
215
|
+
class UnhandledError(winrt.system.Object):
|
|
216
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
217
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
218
|
+
# System.Void Windows.ApplicationModel.Core.UnhandledError::Propagate()
|
|
219
|
+
def propagate(self) -> None: ...
|
|
220
|
+
# System.Boolean Windows.ApplicationModel.Core.UnhandledError::get_Handled()
|
|
221
|
+
@_property
|
|
222
|
+
def handled(self) -> bool: ...
|
|
223
|
+
|
|
224
|
+
@typing.final
|
|
225
|
+
class UnhandledErrorDetectedEventArgs(winrt.system.Object):
|
|
226
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
227
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
228
|
+
# Windows.ApplicationModel.Core.UnhandledError Windows.ApplicationModel.Core.UnhandledErrorDetectedEventArgs::get_UnhandledError()
|
|
229
|
+
@_property
|
|
230
|
+
def unhandled_error(self) -> UnhandledError: ...
|
|
231
|
+
|
|
232
|
+
class ICoreApplicationUnhandledError(winrt.system.Object):
|
|
233
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Core.ICoreApplicationUnhandledError::add_UnhandledErrorDetected(Windows.Foundation.EventHandler`1<Windows.ApplicationModel.Core.UnhandledErrorDetectedEventArgs>)
|
|
234
|
+
@abstractmethod
|
|
235
|
+
def add_unhandled_error_detected(self, handler: windows_foundation.EventHandler[UnhandledErrorDetectedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
236
|
+
# System.Void Windows.ApplicationModel.Core.ICoreApplicationUnhandledError::remove_UnhandledErrorDetected(Windows.Foundation.EventRegistrationToken)
|
|
237
|
+
@abstractmethod
|
|
238
|
+
def remove_unhandled_error_detected(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
239
|
+
|
|
240
|
+
class IFrameworkView(winrt.system.Object):
|
|
241
|
+
# System.Void Windows.ApplicationModel.Core.IFrameworkView::Initialize(Windows.ApplicationModel.Core.CoreApplicationView)
|
|
242
|
+
@abstractmethod
|
|
243
|
+
def initialize(self, application_view: CoreApplicationView, /) -> None: ...
|
|
244
|
+
# System.Void Windows.ApplicationModel.Core.IFrameworkView::Load(System.String)
|
|
245
|
+
@abstractmethod
|
|
246
|
+
def load(self, entry_point: str, /) -> None: ...
|
|
247
|
+
# System.Void Windows.ApplicationModel.Core.IFrameworkView::Run()
|
|
248
|
+
@abstractmethod
|
|
249
|
+
def run(self) -> None: ...
|
|
250
|
+
# System.Void Windows.ApplicationModel.Core.IFrameworkView::SetWindow(Windows.UI.Core.CoreWindow)
|
|
251
|
+
@abstractmethod
|
|
252
|
+
def set_window(self, window: windows_ui_core.CoreWindow, /) -> None: ...
|
|
253
|
+
# System.Void Windows.ApplicationModel.Core.IFrameworkView::Uninitialize()
|
|
254
|
+
@abstractmethod
|
|
255
|
+
def uninitialize(self) -> None: ...
|
|
256
|
+
|
|
257
|
+
class IFrameworkViewSource(winrt.system.Object):
|
|
258
|
+
# Windows.ApplicationModel.Core.IFrameworkView Windows.ApplicationModel.Core.IFrameworkViewSource::CreateView()
|
|
259
|
+
@abstractmethod
|
|
260
|
+
def create_view(self) -> IFrameworkView: ...
|
|
261
|
+
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.Core
|
|
3
|
+
Version: 4!10.0.28000.2705
|
|
4
|
+
Summary: PyWinRT projection of the Windows.ApplicationModel.Core 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
|
+
Provides-Extra: all
|
|
26
|
+
Requires-Dist: winrt-windows-applicationmodel-activation[all]>=4!10.0.28000.2705; extra == 'all'
|
|
27
|
+
Requires-Dist: winrt-windows-applicationmodel[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-system[all]>=4!10.0.28000.2705; extra == 'all'
|
|
31
|
+
Requires-Dist: winrt-windows-ui-core[all]>=4!10.0.28000.2705; extra == 'all'
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
35
|
+
|
|
36
|
+
# winrt-Windows.ApplicationModel.Core
|
|
37
|
+
|
|
38
|
+
Windows Runtime (WinRT) APIs for the `Windows.ApplicationModel.Core` namespace.
|
|
39
|
+
|
|
40
|
+
This package provides the `winrt.windows.applicationmodel.core` module.
|
|
41
|
+
|
|
42
|
+
The WinRT APIs in it are those of version 10.0.28000.2705 of the
|
|
43
|
+
`Microsoft.Windows.SDK.CPP` NuGet package.
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
pip install winrt-Windows.ApplicationModel.Core
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
50
|
+
each namespace your code imports from.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/windows/applicationmodel/core/__init__.py,sha256=o1y__R0OnuUlGB9YobAKedaCvL7t1Pp83qFLz2huJ9Q,745
|
|
2
|
+
winrt/windows/applicationmodel/core/__init__.pyi,sha256=omuIgG3ImoonmpqtVrEkODjZ4_UqBB2hAvEFvDEw8A4,19830
|
|
3
|
+
winrt/windows/applicationmodel/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
winrt/windows/applicationmodel/core/_table.pywinrt,sha256=2QmHc9BaEEgsUT6zycT1DcePdnPqByjOutuWAH4DUzA,25192
|
|
5
|
+
winrt_windows_applicationmodel_core-4!10.0.28000.2705.dist-info/METADATA,sha256=dcUYLE9FskeM6QpQVeQoKvagICHVQ90Ps0egyEEzvNM,2319
|
|
6
|
+
winrt_windows_applicationmodel_core-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
7
|
+
winrt_windows_applicationmodel_core-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
|
|
8
|
+
winrt_windows_applicationmodel_core-4!10.0.28000.2705.dist-info/RECORD,,
|
|
@@ -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
|