winrt-Windows.ApplicationModel.Resources.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.
@@ -0,0 +1,40 @@
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
+ "ResourceCandidateKind",
10
+ "ResourceQualifierPersistence",
11
+ "ResourceLayoutInfo",
12
+ "NamedResource",
13
+ "ResourceCandidate",
14
+ "ResourceCandidateVectorView",
15
+ "ResourceContext",
16
+ "ResourceContextLanguagesVectorView",
17
+ "ResourceManager",
18
+ "ResourceMap",
19
+ "ResourceMapIterator",
20
+ "ResourceMapMapView",
21
+ "ResourceMapMapViewIterator",
22
+ "ResourceQualifier",
23
+ "ResourceQualifierMapView",
24
+ "ResourceQualifierObservableMap",
25
+ "ResourceQualifierVectorView",
26
+ ]
27
+
28
+ winrt.runtime._internals.mixin_sequence(ResourceCandidateVectorView)
29
+ winrt.runtime._internals.mixin_sequence(ResourceContextLanguagesVectorView)
30
+ winrt.runtime._internals.mixin_mapping(ResourceMap)
31
+ winrt.runtime._internals.mixin_mapping(ResourceMapMapView)
32
+ winrt.runtime._internals.mixin_mapping(ResourceQualifierMapView)
33
+ winrt.runtime._internals.mixin_mutable_mapping(ResourceQualifierObservableMap)
34
+ winrt.runtime._internals.mixin_sequence(ResourceQualifierVectorView)
35
+ winrt.runtime._internals.alias_method(NamedResource, "resolve_for_context", "resolve")
36
+ winrt.runtime._internals.alias_method(NamedResource, "resolve_all_for_context", "resolve_all")
37
+ winrt.runtime._internals.alias_method(ResourceContext, "reset_qualifier_values", "reset")
38
+ winrt.runtime._internals.alias_static_method(ResourceContext, "reset_global_qualifier_values_for_specified_qualifiers", "reset_global_qualifier_values")
39
+ winrt.runtime._internals.alias_static_method(ResourceContext, "set_global_qualifier_value_with_persistence", "set_global_qualifier_value")
40
+ winrt.runtime._internals.alias_method(ResourceMap, "get_value_for_context", "get_value")
@@ -0,0 +1,440 @@
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 typing_extensions import deprecated
8
+
9
+ import winrt.system
10
+ import winrt.windows.foundation as windows_foundation
11
+ import winrt.windows.foundation.collections as windows_foundation_collections
12
+ import winrt.windows.storage as windows_storage
13
+ import winrt.windows.storage.streams as windows_storage_streams
14
+ import winrt.windows.ui as windows_ui
15
+
16
+ __all__ = [
17
+ "ResourceCandidateKind",
18
+ "ResourceQualifierPersistence",
19
+ "ResourceLayoutInfo",
20
+ "NamedResource",
21
+ "ResourceCandidate",
22
+ "ResourceCandidateVectorView",
23
+ "ResourceContext",
24
+ "ResourceContextLanguagesVectorView",
25
+ "ResourceManager",
26
+ "ResourceMap",
27
+ "ResourceMapIterator",
28
+ "ResourceMapMapView",
29
+ "ResourceMapMapViewIterator",
30
+ "ResourceQualifier",
31
+ "ResourceQualifierMapView",
32
+ "ResourceQualifierObservableMap",
33
+ "ResourceQualifierVectorView",
34
+ ]
35
+
36
+ class ResourceCandidateKind(enum.IntEnum):
37
+ STRING = 0
38
+ FILE = 1
39
+ EMBEDDED_DATA = 2
40
+
41
+ class ResourceQualifierPersistence(enum.IntEnum):
42
+ NONE = 0
43
+ LOCAL_MACHINE = 1
44
+
45
+ @typing.final
46
+ class ResourceLayoutInfo:
47
+ __match_args__ = ("major_version", "minor_version", "resource_subtree_count", "named_resource_count", "checksum")
48
+ @_property
49
+ def major_version(self) -> winrt.system.UInt32: ...
50
+ @_property
51
+ def minor_version(self) -> winrt.system.UInt32: ...
52
+ @_property
53
+ def resource_subtree_count(self) -> winrt.system.UInt32: ...
54
+ @_property
55
+ def named_resource_count(self) -> winrt.system.UInt32: ...
56
+ @_property
57
+ def checksum(self) -> winrt.system.Int32: ...
58
+ def __new__(cls, major_version: winrt.system.UInt32 | typing.SupportsIndex = 0, minor_version: winrt.system.UInt32 | typing.SupportsIndex = 0, resource_subtree_count: winrt.system.UInt32 | typing.SupportsIndex = 0, named_resource_count: winrt.system.UInt32 | typing.SupportsIndex = 0, checksum: winrt.system.Int32 | typing.SupportsIndex = 0) -> ResourceLayoutInfo: ...
59
+ def __replace__(self, /, **changes: typing.Any) -> ResourceLayoutInfo: ...
60
+ def unpack(self) -> tuple[winrt.system.UInt32, winrt.system.UInt32, winrt.system.UInt32, winrt.system.UInt32, winrt.system.Int32]: ...
61
+
62
+ @typing.final
63
+ class NamedResource(winrt.system.Object):
64
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
65
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
66
+ @typing.overload
67
+ # Windows.ApplicationModel.Resources.Core.ResourceCandidate Windows.ApplicationModel.Resources.Core.NamedResource::Resolve()
68
+ def resolve(self) -> ResourceCandidate: ...
69
+ @typing.overload
70
+ # Windows.ApplicationModel.Resources.Core.ResourceCandidate Windows.ApplicationModel.Resources.Core.NamedResource::Resolve(Windows.ApplicationModel.Resources.Core.ResourceContext)
71
+ def resolve(self, resource_context: ResourceContext, /) -> ResourceCandidate: ...
72
+ # Deprecated alias of resolve() for pywinrt v3.x compatibility.
73
+ # Windows.ApplicationModel.Resources.Core.ResourceCandidate Windows.ApplicationModel.Resources.Core.NamedResource::Resolve(Windows.ApplicationModel.Resources.Core.ResourceContext)
74
+ @deprecated("Use resolve() instead.")
75
+ def resolve_for_context(self, resource_context: ResourceContext, /) -> ResourceCandidate: ...
76
+ @typing.overload
77
+ # Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Resources.Core.ResourceCandidate> Windows.ApplicationModel.Resources.Core.NamedResource::ResolveAll()
78
+ def resolve_all(self) -> _cabc.Sequence[ResourceCandidate]: ...
79
+ @typing.overload
80
+ # Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Resources.Core.ResourceCandidate> Windows.ApplicationModel.Resources.Core.NamedResource::ResolveAll(Windows.ApplicationModel.Resources.Core.ResourceContext)
81
+ def resolve_all(self, resource_context: ResourceContext, /) -> _cabc.Sequence[ResourceCandidate]: ...
82
+ # Deprecated alias of resolve_all() for pywinrt v3.x compatibility.
83
+ # Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Resources.Core.ResourceCandidate> Windows.ApplicationModel.Resources.Core.NamedResource::ResolveAll(Windows.ApplicationModel.Resources.Core.ResourceContext)
84
+ @deprecated("Use resolve_all() instead.")
85
+ def resolve_all_for_context(self, resource_context: ResourceContext, /) -> _cabc.Sequence[ResourceCandidate]: ...
86
+ # Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Resources.Core.ResourceCandidate> Windows.ApplicationModel.Resources.Core.NamedResource::get_Candidates()
87
+ @_property
88
+ def candidates(self) -> _cabc.Sequence[ResourceCandidate]: ...
89
+ # Windows.Foundation.Uri Windows.ApplicationModel.Resources.Core.NamedResource::get_Uri()
90
+ @_property
91
+ def uri(self) -> windows_foundation.Uri: ...
92
+
93
+ @typing.final
94
+ class ResourceCandidate(winrt.system.Object):
95
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
96
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
97
+ # System.String Windows.ApplicationModel.Resources.Core.ResourceCandidate::GetQualifierValue(System.String)
98
+ def get_qualifier_value(self, qualifier_name: str, /) -> str: ...
99
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.StorageFile> Windows.ApplicationModel.Resources.Core.ResourceCandidate::GetValueAsFileAsync()
100
+ def get_value_as_file_async(self) -> windows_foundation.IAsyncOperation[windows_storage.StorageFile]: ...
101
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IRandomAccessStream> Windows.ApplicationModel.Resources.Core.ResourceCandidate::GetValueAsStreamAsync()
102
+ def get_value_as_stream_async(self) -> windows_foundation.IAsyncOperation[windows_storage_streams.IRandomAccessStream]: ...
103
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceCandidate::get_IsDefault()
104
+ @_property
105
+ def is_default(self) -> bool: ...
106
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceCandidate::get_IsMatch()
107
+ @_property
108
+ def is_match(self) -> bool: ...
109
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceCandidate::get_IsMatchAsDefault()
110
+ @_property
111
+ def is_match_as_default(self) -> bool: ...
112
+ # Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Resources.Core.ResourceQualifier> Windows.ApplicationModel.Resources.Core.ResourceCandidate::get_Qualifiers()
113
+ @_property
114
+ def qualifiers(self) -> _cabc.Sequence[ResourceQualifier]: ...
115
+ # System.String Windows.ApplicationModel.Resources.Core.ResourceCandidate::get_ValueAsString()
116
+ @_property
117
+ def value_as_string(self) -> str: ...
118
+ # Windows.ApplicationModel.Resources.Core.ResourceCandidateKind Windows.ApplicationModel.Resources.Core.ResourceCandidate::get_Kind()
119
+ @_property
120
+ def kind(self) -> ResourceCandidateKind: ...
121
+
122
+ @typing.final
123
+ class ResourceCandidateVectorView(_cabc.Sequence[ResourceCandidate], winrt.system.Object):
124
+ def __len__(self) -> int: ...
125
+ def __iter__(self) -> _cabc.Iterator[ResourceCandidate]: ...
126
+ @typing.overload
127
+ def __getitem__(self, index: typing.SupportsIndex) -> ResourceCandidate: ...
128
+ @typing.overload
129
+ def __getitem__(self, index: slice) -> winrt.system.Array[ResourceCandidate]: ...
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.Foundation.Collections.IIterator`1<Windows.ApplicationModel.Resources.Core.ResourceCandidate> Windows.ApplicationModel.Resources.Core.ResourceCandidateVectorView::First()
133
+ def first(self) -> windows_foundation_collections.IIterator[ResourceCandidate]: ...
134
+ # Windows.ApplicationModel.Resources.Core.ResourceCandidate Windows.ApplicationModel.Resources.Core.ResourceCandidateVectorView::GetAt(System.UInt32)
135
+ def get_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, /) -> ResourceCandidate: ...
136
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceCandidateVectorView::GetMany(System.UInt32,Windows.ApplicationModel.Resources.Core.ResourceCandidate[])
137
+ def get_many(self, start_index: winrt.system.UInt32 | typing.SupportsIndex, items: winrt.system.Array[ResourceCandidate] | winrt.system.WriteableBuffer, /) -> winrt.system.UInt32: ...
138
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceCandidateVectorView::IndexOf(Windows.ApplicationModel.Resources.Core.ResourceCandidate,System.UInt32&)
139
+ def index_of(self, value: ResourceCandidate, /) -> tuple[bool, winrt.system.UInt32]: ...
140
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceCandidateVectorView::get_Size()
141
+ @_property
142
+ def size(self) -> winrt.system.UInt32: ...
143
+
144
+ @typing.final
145
+ class ResourceContext_Static(winrt.system.Object_Static):
146
+ # Windows.ApplicationModel.Resources.Core.ResourceContext Windows.ApplicationModel.Resources.Core.ResourceContext::CreateMatchingContext(Windows.Foundation.Collections.IIterable`1<Windows.ApplicationModel.Resources.Core.ResourceQualifier>)
147
+ def create_matching_context(cls, result: _cabc.Iterable[ResourceQualifier], /) -> ResourceContext: ...
148
+ # Windows.ApplicationModel.Resources.Core.ResourceContext Windows.ApplicationModel.Resources.Core.ResourceContext::GetForCurrentView()
149
+ def get_for_current_view(cls) -> ResourceContext: ...
150
+ # Windows.ApplicationModel.Resources.Core.ResourceContext Windows.ApplicationModel.Resources.Core.ResourceContext::GetForUIContext(Windows.UI.UIContext)
151
+ def get_for_ui_context(cls, context: windows_ui.UIContext, /) -> ResourceContext: ...
152
+ # Windows.ApplicationModel.Resources.Core.ResourceContext Windows.ApplicationModel.Resources.Core.ResourceContext::GetForViewIndependentUse()
153
+ def get_for_view_independent_use(cls) -> ResourceContext: ...
154
+ @typing.overload
155
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::ResetGlobalQualifierValues()
156
+ def reset_global_qualifier_values(cls) -> None: ...
157
+ @typing.overload
158
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::ResetGlobalQualifierValues(Windows.Foundation.Collections.IIterable`1<System.String>)
159
+ def reset_global_qualifier_values(cls, qualifier_names: _cabc.Iterable[str], /) -> None: ...
160
+ # Deprecated alias of reset_global_qualifier_values() for pywinrt v3.x compatibility.
161
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::ResetGlobalQualifierValues(Windows.Foundation.Collections.IIterable`1<System.String>)
162
+ @deprecated("Use reset_global_qualifier_values() instead.")
163
+ def reset_global_qualifier_values_for_specified_qualifiers(cls, qualifier_names: _cabc.Iterable[str], /) -> None: ...
164
+ @typing.overload
165
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::SetGlobalQualifierValue(System.String,System.String)
166
+ def set_global_qualifier_value(cls, key: str, value: str, /) -> None: ...
167
+ @typing.overload
168
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::SetGlobalQualifierValue(System.String,System.String,Windows.ApplicationModel.Resources.Core.ResourceQualifierPersistence)
169
+ def set_global_qualifier_value(cls, key: str, value: str, persistence: ResourceQualifierPersistence, /) -> None: ...
170
+ # Deprecated alias of set_global_qualifier_value() for pywinrt v3.x compatibility.
171
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::SetGlobalQualifierValue(System.String,System.String,Windows.ApplicationModel.Resources.Core.ResourceQualifierPersistence)
172
+ @deprecated("Use set_global_qualifier_value() instead.")
173
+ def set_global_qualifier_value_with_persistence(cls, key: str, value: str, persistence: ResourceQualifierPersistence, /) -> None: ...
174
+
175
+ @typing.final
176
+ class ResourceContext(winrt.system.Object, metaclass=ResourceContext_Static):
177
+ def __new__(cls) -> typing.Self: ...
178
+ # Windows.ApplicationModel.Resources.Core.ResourceContext Windows.ApplicationModel.Resources.Core.ResourceContext::Clone()
179
+ def clone(self) -> ResourceContext: ...
180
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::OverrideToMatch(Windows.Foundation.Collections.IIterable`1<Windows.ApplicationModel.Resources.Core.ResourceQualifier>)
181
+ def override_to_match(self, result: _cabc.Iterable[ResourceQualifier], /) -> None: ...
182
+ @typing.overload
183
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::Reset()
184
+ def reset(self) -> None: ...
185
+ @typing.overload
186
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::Reset(Windows.Foundation.Collections.IIterable`1<System.String>)
187
+ def reset(self, qualifier_names: _cabc.Iterable[str], /) -> None: ...
188
+ # Deprecated alias of reset() for pywinrt v3.x compatibility.
189
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::Reset(Windows.Foundation.Collections.IIterable`1<System.String>)
190
+ @deprecated("Use reset() instead.")
191
+ def reset_qualifier_values(self, qualifier_names: _cabc.Iterable[str], /) -> None: ...
192
+ # Windows.Foundation.Collections.IVectorView`1<System.String> Windows.ApplicationModel.Resources.Core.ResourceContext::get_Languages()
193
+ @_property
194
+ def languages(self) -> _cabc.Sequence[str]: ...
195
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceContext::put_Languages(Windows.Foundation.Collections.IVectorView`1<System.String>)
196
+ @languages.setter
197
+ def languages(self, value: _cabc.Sequence[str]) -> None: ...
198
+ # Windows.Foundation.Collections.IObservableMap`2<System.String,System.String> Windows.ApplicationModel.Resources.Core.ResourceContext::get_QualifierValues()
199
+ @_property
200
+ def qualifier_values(self) -> windows_foundation_collections.IObservableMap[str, str]: ...
201
+
202
+ @typing.final
203
+ class ResourceContextLanguagesVectorView(_cabc.Sequence[str], winrt.system.Object):
204
+ def __len__(self) -> int: ...
205
+ def __iter__(self) -> _cabc.Iterator[str]: ...
206
+ @typing.overload
207
+ def __getitem__(self, index: typing.SupportsIndex) -> str: ...
208
+ @typing.overload
209
+ def __getitem__(self, index: slice) -> winrt.system.Array[str]: ...
210
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
211
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
212
+ # Windows.Foundation.Collections.IIterator`1<System.String> Windows.ApplicationModel.Resources.Core.ResourceContextLanguagesVectorView::First()
213
+ def first(self) -> windows_foundation_collections.IIterator[str]: ...
214
+ # System.String Windows.ApplicationModel.Resources.Core.ResourceContextLanguagesVectorView::GetAt(System.UInt32)
215
+ def get_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, /) -> str: ...
216
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceContextLanguagesVectorView::GetMany(System.UInt32,System.String[])
217
+ def get_many(self, start_index: winrt.system.UInt32 | typing.SupportsIndex, items: winrt.system.Array[str] | winrt.system.WriteableBuffer, /) -> winrt.system.UInt32: ...
218
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceContextLanguagesVectorView::IndexOf(System.String,System.UInt32&)
219
+ def index_of(self, value: str, /) -> tuple[bool, winrt.system.UInt32]: ...
220
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceContextLanguagesVectorView::get_Size()
221
+ @_property
222
+ def size(self) -> winrt.system.UInt32: ...
223
+
224
+ @typing.final
225
+ class ResourceManager_Static(winrt.system.Object_Static):
226
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceManager::IsResourceReference(System.String)
227
+ def is_resource_reference(cls, resource_reference: str, /) -> bool: ...
228
+ # Windows.ApplicationModel.Resources.Core.ResourceManager Windows.ApplicationModel.Resources.Core.ResourceManager::get_Current()
229
+ @_property
230
+ def current(cls) -> ResourceManager: ...
231
+
232
+ @typing.final
233
+ class ResourceManager(winrt.system.Object, metaclass=ResourceManager_Static):
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.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Resources.Core.NamedResource> Windows.ApplicationModel.Resources.Core.ResourceManager::GetAllNamedResourcesForPackage(System.String,Windows.ApplicationModel.Resources.Core.ResourceLayoutInfo)
237
+ def get_all_named_resources_for_package(self, package_name: str, resource_layout_info: ResourceLayoutInfo | tuple[winrt.system.UInt32 | typing.SupportsIndex, winrt.system.UInt32 | typing.SupportsIndex, winrt.system.UInt32 | typing.SupportsIndex, winrt.system.UInt32 | typing.SupportsIndex, winrt.system.Int32 | typing.SupportsIndex], /) -> _cabc.Sequence[NamedResource]: ...
238
+ # Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Resources.Core.ResourceMap> Windows.ApplicationModel.Resources.Core.ResourceManager::GetAllSubtreesForPackage(System.String,Windows.ApplicationModel.Resources.Core.ResourceLayoutInfo)
239
+ def get_all_subtrees_for_package(self, package_name: str, resource_layout_info: ResourceLayoutInfo | tuple[winrt.system.UInt32 | typing.SupportsIndex, winrt.system.UInt32 | typing.SupportsIndex, winrt.system.UInt32 | typing.SupportsIndex, winrt.system.UInt32 | typing.SupportsIndex, winrt.system.Int32 | typing.SupportsIndex], /) -> _cabc.Sequence[ResourceMap]: ...
240
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceManager::LoadPriFiles(Windows.Foundation.Collections.IIterable`1<Windows.Storage.IStorageFile>)
241
+ def load_pri_files(self, files: _cabc.Iterable[windows_storage.IStorageFile], /) -> None: ...
242
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceManager::UnloadPriFiles(Windows.Foundation.Collections.IIterable`1<Windows.Storage.IStorageFile>)
243
+ def unload_pri_files(self, files: _cabc.Iterable[windows_storage.IStorageFile], /) -> None: ...
244
+ # Windows.Foundation.Collections.IMapView`2<System.String,Windows.ApplicationModel.Resources.Core.ResourceMap> Windows.ApplicationModel.Resources.Core.ResourceManager::get_AllResourceMaps()
245
+ @_property
246
+ def all_resource_maps(self) -> _cabc.Mapping[str, ResourceMap]: ...
247
+ # Windows.ApplicationModel.Resources.Core.ResourceContext Windows.ApplicationModel.Resources.Core.ResourceManager::get_DefaultContext()
248
+ @_property
249
+ def default_context(self) -> ResourceContext: ...
250
+ # Windows.ApplicationModel.Resources.Core.ResourceMap Windows.ApplicationModel.Resources.Core.ResourceManager::get_MainResourceMap()
251
+ @_property
252
+ def main_resource_map(self) -> ResourceMap: ...
253
+
254
+ @typing.final
255
+ class ResourceMap(_cabc.Mapping[str, NamedResource], winrt.system.Object):
256
+ __hash__: typing.ClassVar[None] # type: ignore[assignment]
257
+ def __len__(self) -> int: ...
258
+ def __iter__(self) -> _cabc.Iterator[str]: ...
259
+ def __contains__(self, key: object) -> bool: ...
260
+ def __getitem__(self, key: str) -> NamedResource: ...
261
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
262
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
263
+ # Windows.Foundation.Collections.IIterator`1<Windows.Foundation.Collections.IKeyValuePair`2<System.String,Windows.ApplicationModel.Resources.Core.NamedResource>> Windows.ApplicationModel.Resources.Core.ResourceMap::First()
264
+ def first(self) -> windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, NamedResource]]: ...
265
+ # Windows.ApplicationModel.Resources.Core.ResourceMap Windows.ApplicationModel.Resources.Core.ResourceMap::GetSubtree(System.String)
266
+ def get_subtree(self, reference: str, /) -> ResourceMap: ...
267
+ @typing.overload
268
+ # Windows.ApplicationModel.Resources.Core.ResourceCandidate Windows.ApplicationModel.Resources.Core.ResourceMap::GetValue(System.String)
269
+ def get_value(self, resource: str, /) -> ResourceCandidate: ...
270
+ @typing.overload
271
+ # Windows.ApplicationModel.Resources.Core.ResourceCandidate Windows.ApplicationModel.Resources.Core.ResourceMap::GetValue(System.String,Windows.ApplicationModel.Resources.Core.ResourceContext)
272
+ def get_value(self, resource: str, context: ResourceContext, /) -> ResourceCandidate: ...
273
+ # Deprecated alias of get_value() for pywinrt v3.x compatibility.
274
+ # Windows.ApplicationModel.Resources.Core.ResourceCandidate Windows.ApplicationModel.Resources.Core.ResourceMap::GetValue(System.String,Windows.ApplicationModel.Resources.Core.ResourceContext)
275
+ @deprecated("Use get_value() instead.")
276
+ def get_value_for_context(self, resource: str, context: ResourceContext, /) -> ResourceCandidate: ...
277
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceMap::HasKey(System.String)
278
+ def has_key(self, key: str, /) -> bool: ...
279
+ # Windows.ApplicationModel.Resources.Core.NamedResource Windows.ApplicationModel.Resources.Core.ResourceMap::Lookup(System.String)
280
+ def lookup(self, key: str, /) -> NamedResource: ...
281
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceMap::Split(Windows.Foundation.Collections.IMapView`2<System.String,Windows.ApplicationModel.Resources.Core.NamedResource>&,Windows.Foundation.Collections.IMapView`2<System.String,Windows.ApplicationModel.Resources.Core.NamedResource>&)
282
+ def split(self) -> tuple[_cabc.Mapping[str, NamedResource], _cabc.Mapping[str, NamedResource]]: ...
283
+ # Windows.Foundation.Uri Windows.ApplicationModel.Resources.Core.ResourceMap::get_Uri()
284
+ @_property
285
+ def uri(self) -> windows_foundation.Uri: ...
286
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceMap::get_Size()
287
+ @_property
288
+ def size(self) -> winrt.system.UInt32: ...
289
+
290
+ @typing.final
291
+ class ResourceMapIterator(windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, NamedResource]], winrt.system.Object):
292
+ def __iter__(self) -> typing.Self: ...
293
+ def __next__(self) -> windows_foundation_collections.IKeyValuePair[str, NamedResource]: ...
294
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
295
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
296
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceMapIterator::GetMany(Windows.Foundation.Collections.IKeyValuePair`2<System.String,Windows.ApplicationModel.Resources.Core.NamedResource>[])
297
+ def get_many(self, items: winrt.system.Array[windows_foundation_collections.IKeyValuePair[str, NamedResource]] | winrt.system.WriteableBuffer, /) -> winrt.system.UInt32: ...
298
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceMapIterator::MoveNext()
299
+ def move_next(self) -> bool: ...
300
+ # Windows.Foundation.Collections.IKeyValuePair`2<System.String,Windows.ApplicationModel.Resources.Core.NamedResource> Windows.ApplicationModel.Resources.Core.ResourceMapIterator::get_Current()
301
+ @_property
302
+ def current(self) -> windows_foundation_collections.IKeyValuePair[str, NamedResource]: ...
303
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceMapIterator::get_HasCurrent()
304
+ @_property
305
+ def has_current(self) -> bool: ...
306
+
307
+ @typing.final
308
+ class ResourceMapMapView(_cabc.Mapping[str, ResourceMap], winrt.system.Object):
309
+ __hash__: typing.ClassVar[None] # type: ignore[assignment]
310
+ def __len__(self) -> int: ...
311
+ def __iter__(self) -> _cabc.Iterator[str]: ...
312
+ def __contains__(self, key: object) -> bool: ...
313
+ def __getitem__(self, key: str) -> ResourceMap: ...
314
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
315
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
316
+ # Windows.Foundation.Collections.IIterator`1<Windows.Foundation.Collections.IKeyValuePair`2<System.String,Windows.ApplicationModel.Resources.Core.ResourceMap>> Windows.ApplicationModel.Resources.Core.ResourceMapMapView::First()
317
+ def first(self) -> windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, ResourceMap]]: ...
318
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceMapMapView::HasKey(System.String)
319
+ def has_key(self, key: str, /) -> bool: ...
320
+ # Windows.ApplicationModel.Resources.Core.ResourceMap Windows.ApplicationModel.Resources.Core.ResourceMapMapView::Lookup(System.String)
321
+ def lookup(self, key: str, /) -> ResourceMap: ...
322
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceMapMapView::Split(Windows.Foundation.Collections.IMapView`2<System.String,Windows.ApplicationModel.Resources.Core.ResourceMap>&,Windows.Foundation.Collections.IMapView`2<System.String,Windows.ApplicationModel.Resources.Core.ResourceMap>&)
323
+ def split(self) -> tuple[_cabc.Mapping[str, ResourceMap], _cabc.Mapping[str, ResourceMap]]: ...
324
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceMapMapView::get_Size()
325
+ @_property
326
+ def size(self) -> winrt.system.UInt32: ...
327
+
328
+ @typing.final
329
+ class ResourceMapMapViewIterator(windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, ResourceMap]], winrt.system.Object):
330
+ def __iter__(self) -> typing.Self: ...
331
+ def __next__(self) -> windows_foundation_collections.IKeyValuePair[str, ResourceMap]: ...
332
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
333
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
334
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceMapMapViewIterator::GetMany(Windows.Foundation.Collections.IKeyValuePair`2<System.String,Windows.ApplicationModel.Resources.Core.ResourceMap>[])
335
+ def get_many(self, items: winrt.system.Array[windows_foundation_collections.IKeyValuePair[str, ResourceMap]] | winrt.system.WriteableBuffer, /) -> winrt.system.UInt32: ...
336
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceMapMapViewIterator::MoveNext()
337
+ def move_next(self) -> bool: ...
338
+ # Windows.Foundation.Collections.IKeyValuePair`2<System.String,Windows.ApplicationModel.Resources.Core.ResourceMap> Windows.ApplicationModel.Resources.Core.ResourceMapMapViewIterator::get_Current()
339
+ @_property
340
+ def current(self) -> windows_foundation_collections.IKeyValuePair[str, ResourceMap]: ...
341
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceMapMapViewIterator::get_HasCurrent()
342
+ @_property
343
+ def has_current(self) -> bool: ...
344
+
345
+ @typing.final
346
+ class ResourceQualifier(winrt.system.Object):
347
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
348
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
349
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceQualifier::get_IsDefault()
350
+ @_property
351
+ def is_default(self) -> bool: ...
352
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceQualifier::get_IsMatch()
353
+ @_property
354
+ def is_match(self) -> bool: ...
355
+ # System.String Windows.ApplicationModel.Resources.Core.ResourceQualifier::get_QualifierName()
356
+ @_property
357
+ def qualifier_name(self) -> str: ...
358
+ # System.String Windows.ApplicationModel.Resources.Core.ResourceQualifier::get_QualifierValue()
359
+ @_property
360
+ def qualifier_value(self) -> str: ...
361
+ # System.Double Windows.ApplicationModel.Resources.Core.ResourceQualifier::get_Score()
362
+ @_property
363
+ def score(self) -> winrt.system.Double: ...
364
+
365
+ @typing.final
366
+ class ResourceQualifierMapView(_cabc.Mapping[str, str], winrt.system.Object):
367
+ __hash__: typing.ClassVar[None] # type: ignore[assignment]
368
+ def __len__(self) -> int: ...
369
+ def __iter__(self) -> _cabc.Iterator[str]: ...
370
+ def __contains__(self, key: object) -> bool: ...
371
+ def __getitem__(self, key: str) -> str: ...
372
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
373
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
374
+ # Windows.Foundation.Collections.IIterator`1<Windows.Foundation.Collections.IKeyValuePair`2<System.String,System.String>> Windows.ApplicationModel.Resources.Core.ResourceQualifierMapView::First()
375
+ def first(self) -> windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, str]]: ...
376
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceQualifierMapView::HasKey(System.String)
377
+ def has_key(self, key: str, /) -> bool: ...
378
+ # System.String Windows.ApplicationModel.Resources.Core.ResourceQualifierMapView::Lookup(System.String)
379
+ def lookup(self, key: str, /) -> str: ...
380
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceQualifierMapView::Split(Windows.Foundation.Collections.IMapView`2<System.String,System.String>&,Windows.Foundation.Collections.IMapView`2<System.String,System.String>&)
381
+ def split(self) -> tuple[_cabc.Mapping[str, str], _cabc.Mapping[str, str]]: ...
382
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceQualifierMapView::get_Size()
383
+ @_property
384
+ def size(self) -> winrt.system.UInt32: ...
385
+
386
+ @typing.final
387
+ class ResourceQualifierObservableMap(windows_foundation_collections.IObservableMap[str, str], _cabc.MutableMapping[str, str], winrt.system.Object):
388
+ __hash__: typing.ClassVar[None] # type: ignore[assignment]
389
+ def __len__(self) -> int: ...
390
+ def __iter__(self) -> _cabc.Iterator[str]: ...
391
+ def __contains__(self, key: object) -> bool: ...
392
+ def __getitem__(self, key: str) -> str: ...
393
+ def __setitem__(self, key: str, value: str) -> None: ...
394
+ def __delitem__(self, key: str) -> None: ...
395
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
396
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
397
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::Clear()
398
+ def clear(self) -> None: ...
399
+ # Windows.Foundation.Collections.IIterator`1<Windows.Foundation.Collections.IKeyValuePair`2<System.String,System.String>> Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::First()
400
+ def first(self) -> windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, str]]: ...
401
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.String> Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::GetView()
402
+ def get_view(self) -> _cabc.Mapping[str, str]: ...
403
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::HasKey(System.String)
404
+ def has_key(self, key: str, /) -> bool: ...
405
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::Insert(System.String,System.String)
406
+ def insert(self, key: str, value: str, /) -> bool: ...
407
+ # System.String Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::Lookup(System.String)
408
+ def lookup(self, key: str, /) -> str: ...
409
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::Remove(System.String)
410
+ def remove(self, key: str, /) -> None: ...
411
+ # Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::add_MapChanged(Windows.Foundation.Collections.MapChangedEventHandler`2<System.String,System.String>)
412
+ def add_map_changed(self, vhnd: windows_foundation_collections.MapChangedEventHandler[str, str], /) -> windows_foundation.EventRegistrationToken: ...
413
+ # System.Void Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::remove_MapChanged(Windows.Foundation.EventRegistrationToken)
414
+ def remove_map_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
415
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap::get_Size()
416
+ @_property
417
+ def size(self) -> winrt.system.UInt32: ...
418
+
419
+ @typing.final
420
+ class ResourceQualifierVectorView(_cabc.Sequence[ResourceQualifier], winrt.system.Object):
421
+ def __len__(self) -> int: ...
422
+ def __iter__(self) -> _cabc.Iterator[ResourceQualifier]: ...
423
+ @typing.overload
424
+ def __getitem__(self, index: typing.SupportsIndex) -> ResourceQualifier: ...
425
+ @typing.overload
426
+ def __getitem__(self, index: slice) -> winrt.system.Array[ResourceQualifier]: ...
427
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
428
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
429
+ # Windows.Foundation.Collections.IIterator`1<Windows.ApplicationModel.Resources.Core.ResourceQualifier> Windows.ApplicationModel.Resources.Core.ResourceQualifierVectorView::First()
430
+ def first(self) -> windows_foundation_collections.IIterator[ResourceQualifier]: ...
431
+ # Windows.ApplicationModel.Resources.Core.ResourceQualifier Windows.ApplicationModel.Resources.Core.ResourceQualifierVectorView::GetAt(System.UInt32)
432
+ def get_at(self, index: winrt.system.UInt32 | typing.SupportsIndex, /) -> ResourceQualifier: ...
433
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceQualifierVectorView::GetMany(System.UInt32,Windows.ApplicationModel.Resources.Core.ResourceQualifier[])
434
+ def get_many(self, start_index: winrt.system.UInt32 | typing.SupportsIndex, items: winrt.system.Array[ResourceQualifier] | winrt.system.WriteableBuffer, /) -> winrt.system.UInt32: ...
435
+ # System.Boolean Windows.ApplicationModel.Resources.Core.ResourceQualifierVectorView::IndexOf(Windows.ApplicationModel.Resources.Core.ResourceQualifier,System.UInt32&)
436
+ def index_of(self, value: ResourceQualifier, /) -> tuple[bool, winrt.system.UInt32]: ...
437
+ # System.UInt32 Windows.ApplicationModel.Resources.Core.ResourceQualifierVectorView::get_Size()
438
+ @_property
439
+ def size(self) -> winrt.system.UInt32: ...
440
+
File without changes
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.ApplicationModel.Resources.Core
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.ApplicationModel.Resources.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
+ Requires-Dist: winrt-windows-storage-streams>=4!10.0.28000.2705
26
+ Provides-Extra: all
27
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
29
+ Requires-Dist: winrt-windows-storage-streams[all]>=4!10.0.28000.2705; extra == 'all'
30
+ Requires-Dist: winrt-windows-storage[all]>=4!10.0.28000.2705; extra == 'all'
31
+ Requires-Dist: winrt-windows-ui[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.Resources.Core
37
+
38
+ Windows Runtime (WinRT) APIs for the `Windows.ApplicationModel.Resources.Core` namespace.
39
+
40
+ This package provides the `winrt.windows.applicationmodel.resources.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.Resources.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/resources/core/__init__.py,sha256=zqJUMVCHlAoLJ0SFByPmhQvmSD_GZZlKEXTa-ZMnmFA,1812
2
+ winrt/windows/applicationmodel/resources/core/__init__.pyi,sha256=Lm5TDnyoV6m3m70LuyAs9HwG4Xiv7HARFm-RvVKXU0U,34001
3
+ winrt/windows/applicationmodel/resources/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/applicationmodel/resources/core/_table.pywinrt,sha256=rTY2Dgv0Su118oomOFsPSCPpzzJ21jxu9ay1YqF1itc,41880
5
+ winrt_windows_applicationmodel_resources_core-4!10.0.28000.2705.dist-info/METADATA,sha256=p4ncWQQhjJSRTGsCYeLFz_EmOHdiMWzW10FDeueSEeQ,2341
6
+ winrt_windows_applicationmodel_resources_core-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_applicationmodel_resources_core-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_applicationmodel_resources_core-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