winrt-Windows.ApplicationModel.Search.Core 2.3.0__tar.gz → 3.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/PKG-INFO +9 -9
- winrt_windows_applicationmodel_search_core-3.1.0/all-requirements.txt +6 -0
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/py.Windows.ApplicationModel.Search.Core.cpp +200 -66
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/pyproject.toml +4 -4
- winrt_windows_applicationmodel_search_core-3.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/setup.py +1 -1
- winrt_windows_applicationmodel_search_core-3.1.0/winrt/_winrt_windows_applicationmodel_search_core.pyi +101 -0
- winrt_windows_applicationmodel_search_core-3.1.0/winrt/windows/applicationmodel/search/core/__init__.py +25 -0
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/PKG-INFO +9 -9
- winrt_windows_applicationmodel_search_core-3.1.0/winrt_Windows.ApplicationModel.Search.Core.egg-info/requires.txt +7 -0
- winrt_windows_applicationmodel_search_core-2.3.0/all-requirements.txt +0 -6
- winrt_windows_applicationmodel_search_core-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_search_core-2.3.0/winrt/_winrt_windows_applicationmodel_search_core.pyi +0 -87
- winrt_windows_applicationmodel_search_core-2.3.0/winrt/windows/applicationmodel/search/core/__init__.py +0 -24
- winrt_windows_applicationmodel_search_core-2.3.0/winrt_Windows.ApplicationModel.Search.Core.egg-info/requires.txt +0 -7
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/README.md +0 -0
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/winrt/windows/applicationmodel/search/core/py.typed +0 -0
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_search_core-2.3.0 → winrt_windows_applicationmodel_search_core-3.1.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Search.Core
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.Search[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Search[all]==3.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.Search.Core.h"
|
|
4
4
|
|
|
@@ -48,20 +48,17 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
48
48
|
static PyMethodDef _methods_RequestingFocusOnKeyboardInputEventArgs[] = {
|
|
49
49
|
{ "_assign_array_", _assign_array_RequestingFocusOnKeyboardInputEventArgs, METH_O | METH_STATIC, nullptr },
|
|
50
50
|
{ "_from", reinterpret_cast<PyCFunction>(_from_RequestingFocusOnKeyboardInputEventArgs), METH_O | METH_STATIC, nullptr },
|
|
51
|
-
{ }
|
|
52
|
-
};
|
|
51
|
+
{ }};
|
|
53
52
|
|
|
54
53
|
static PyGetSetDef _getset_RequestingFocusOnKeyboardInputEventArgs[] = {
|
|
55
|
-
{ }
|
|
56
|
-
};
|
|
54
|
+
{ }};
|
|
57
55
|
|
|
58
56
|
static PyType_Slot _type_slots_RequestingFocusOnKeyboardInputEventArgs[] = {
|
|
59
57
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RequestingFocusOnKeyboardInputEventArgs) },
|
|
60
58
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RequestingFocusOnKeyboardInputEventArgs) },
|
|
61
59
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RequestingFocusOnKeyboardInputEventArgs) },
|
|
62
60
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RequestingFocusOnKeyboardInputEventArgs) },
|
|
63
|
-
{ }
|
|
64
|
-
};
|
|
61
|
+
{ }};
|
|
65
62
|
|
|
66
63
|
static PyType_Spec type_spec_RequestingFocusOnKeyboardInputEventArgs = {
|
|
67
64
|
"winrt._winrt_windows_applicationmodel_search_core.RequestingFocusOnKeyboardInputEventArgs",
|
|
@@ -104,7 +101,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
104
101
|
return nullptr;
|
|
105
102
|
}
|
|
106
103
|
|
|
107
|
-
return py::convert(
|
|
104
|
+
return py::convert([&]()
|
|
105
|
+
{
|
|
106
|
+
auto _gil = release_gil();
|
|
107
|
+
return self->obj.DetailText();
|
|
108
|
+
}());
|
|
108
109
|
}
|
|
109
110
|
catch (...)
|
|
110
111
|
{
|
|
@@ -130,7 +131,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
130
131
|
return nullptr;
|
|
131
132
|
}
|
|
132
133
|
|
|
133
|
-
return py::convert(
|
|
134
|
+
return py::convert([&]()
|
|
135
|
+
{
|
|
136
|
+
auto _gil = release_gil();
|
|
137
|
+
return self->obj.Image();
|
|
138
|
+
}());
|
|
134
139
|
}
|
|
135
140
|
catch (...)
|
|
136
141
|
{
|
|
@@ -156,7 +161,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
156
161
|
return nullptr;
|
|
157
162
|
}
|
|
158
163
|
|
|
159
|
-
return py::convert(
|
|
164
|
+
return py::convert([&]()
|
|
165
|
+
{
|
|
166
|
+
auto _gil = release_gil();
|
|
167
|
+
return self->obj.ImageAlternateText();
|
|
168
|
+
}());
|
|
160
169
|
}
|
|
161
170
|
catch (...)
|
|
162
171
|
{
|
|
@@ -182,7 +191,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
182
191
|
return nullptr;
|
|
183
192
|
}
|
|
184
193
|
|
|
185
|
-
return py::convert(
|
|
194
|
+
return py::convert([&]()
|
|
195
|
+
{
|
|
196
|
+
auto _gil = release_gil();
|
|
197
|
+
return self->obj.Kind();
|
|
198
|
+
}());
|
|
186
199
|
}
|
|
187
200
|
catch (...)
|
|
188
201
|
{
|
|
@@ -208,7 +221,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
208
221
|
return nullptr;
|
|
209
222
|
}
|
|
210
223
|
|
|
211
|
-
return py::convert(
|
|
224
|
+
return py::convert([&]()
|
|
225
|
+
{
|
|
226
|
+
auto _gil = release_gil();
|
|
227
|
+
return self->obj.Tag();
|
|
228
|
+
}());
|
|
212
229
|
}
|
|
213
230
|
catch (...)
|
|
214
231
|
{
|
|
@@ -234,7 +251,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
234
251
|
return nullptr;
|
|
235
252
|
}
|
|
236
253
|
|
|
237
|
-
return py::convert(
|
|
254
|
+
return py::convert([&]()
|
|
255
|
+
{
|
|
256
|
+
auto _gil = release_gil();
|
|
257
|
+
return self->obj.Text();
|
|
258
|
+
}());
|
|
238
259
|
}
|
|
239
260
|
catch (...)
|
|
240
261
|
{
|
|
@@ -270,8 +291,7 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
270
291
|
static PyMethodDef _methods_SearchSuggestion[] = {
|
|
271
292
|
{ "_assign_array_", _assign_array_SearchSuggestion, METH_O | METH_STATIC, nullptr },
|
|
272
293
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SearchSuggestion), METH_O | METH_STATIC, nullptr },
|
|
273
|
-
{ }
|
|
274
|
-
};
|
|
294
|
+
{ }};
|
|
275
295
|
|
|
276
296
|
static PyGetSetDef _getset_SearchSuggestion[] = {
|
|
277
297
|
{ "detail_text", reinterpret_cast<getter>(SearchSuggestion_get_DetailText), nullptr, nullptr, nullptr },
|
|
@@ -280,16 +300,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
280
300
|
{ "kind", reinterpret_cast<getter>(SearchSuggestion_get_Kind), nullptr, nullptr, nullptr },
|
|
281
301
|
{ "tag", reinterpret_cast<getter>(SearchSuggestion_get_Tag), nullptr, nullptr, nullptr },
|
|
282
302
|
{ "text", reinterpret_cast<getter>(SearchSuggestion_get_Text), nullptr, nullptr, nullptr },
|
|
283
|
-
{ }
|
|
284
|
-
};
|
|
303
|
+
{ }};
|
|
285
304
|
|
|
286
305
|
static PyType_Slot _type_slots_SearchSuggestion[] = {
|
|
287
306
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SearchSuggestion) },
|
|
288
307
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SearchSuggestion) },
|
|
289
308
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SearchSuggestion) },
|
|
290
309
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SearchSuggestion) },
|
|
291
|
-
{ }
|
|
292
|
-
};
|
|
310
|
+
{ }};
|
|
293
311
|
|
|
294
312
|
static PyType_Spec type_spec_SearchSuggestion = {
|
|
295
313
|
"winrt._winrt_windows_applicationmodel_search_core.SearchSuggestion",
|
|
@@ -302,13 +320,13 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
302
320
|
|
|
303
321
|
static PyObject* _new_SearchSuggestionManager(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
304
322
|
{
|
|
305
|
-
if (kwds
|
|
323
|
+
if (kwds)
|
|
306
324
|
{
|
|
307
325
|
py::set_invalid_kwd_args_error();
|
|
308
326
|
return nullptr;
|
|
309
327
|
}
|
|
310
328
|
|
|
311
|
-
auto arg_count =
|
|
329
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
312
330
|
if (arg_count == 0)
|
|
313
331
|
{
|
|
314
332
|
try
|
|
@@ -339,7 +357,7 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
339
357
|
|
|
340
358
|
static PyObject* SearchSuggestionManager_AddToHistory(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* args) noexcept
|
|
341
359
|
{
|
|
342
|
-
auto arg_count =
|
|
360
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
343
361
|
|
|
344
362
|
if (arg_count == 1)
|
|
345
363
|
{
|
|
@@ -360,7 +378,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
360
378
|
|
|
361
379
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
362
380
|
|
|
363
|
-
|
|
381
|
+
{
|
|
382
|
+
auto _gil = release_gil();
|
|
383
|
+
self->obj.AddToHistory(param0);
|
|
384
|
+
}
|
|
385
|
+
|
|
364
386
|
Py_RETURN_NONE;
|
|
365
387
|
}
|
|
366
388
|
catch (...)
|
|
@@ -369,7 +391,18 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
369
391
|
return nullptr;
|
|
370
392
|
}
|
|
371
393
|
}
|
|
372
|
-
else
|
|
394
|
+
else
|
|
395
|
+
{
|
|
396
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
397
|
+
return nullptr;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
static PyObject* SearchSuggestionManager_AddToHistoryWithLanguage(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* args) noexcept
|
|
402
|
+
{
|
|
403
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
404
|
+
|
|
405
|
+
if (arg_count == 2)
|
|
373
406
|
{
|
|
374
407
|
try
|
|
375
408
|
{
|
|
@@ -389,7 +422,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
389
422
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
390
423
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
391
424
|
|
|
392
|
-
|
|
425
|
+
{
|
|
426
|
+
auto _gil = release_gil();
|
|
427
|
+
self->obj.AddToHistory(param0, param1);
|
|
428
|
+
}
|
|
429
|
+
|
|
393
430
|
Py_RETURN_NONE;
|
|
394
431
|
}
|
|
395
432
|
catch (...)
|
|
@@ -407,7 +444,7 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
407
444
|
|
|
408
445
|
static PyObject* SearchSuggestionManager_ClearHistory(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* args) noexcept
|
|
409
446
|
{
|
|
410
|
-
auto arg_count =
|
|
447
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
411
448
|
|
|
412
449
|
if (arg_count == 0)
|
|
413
450
|
{
|
|
@@ -426,7 +463,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
426
463
|
return nullptr;
|
|
427
464
|
}
|
|
428
465
|
|
|
429
|
-
|
|
466
|
+
{
|
|
467
|
+
auto _gil = release_gil();
|
|
468
|
+
self->obj.ClearHistory();
|
|
469
|
+
}
|
|
470
|
+
|
|
430
471
|
Py_RETURN_NONE;
|
|
431
472
|
}
|
|
432
473
|
catch (...)
|
|
@@ -444,7 +485,7 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
444
485
|
|
|
445
486
|
static PyObject* SearchSuggestionManager_SetLocalContentSuggestionSettings(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* args) noexcept
|
|
446
487
|
{
|
|
447
|
-
auto arg_count =
|
|
488
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
448
489
|
|
|
449
490
|
if (arg_count == 1)
|
|
450
491
|
{
|
|
@@ -465,7 +506,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
465
506
|
|
|
466
507
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Search::LocalContentSuggestionSettings>(args, 0);
|
|
467
508
|
|
|
468
|
-
|
|
509
|
+
{
|
|
510
|
+
auto _gil = release_gil();
|
|
511
|
+
self->obj.SetLocalContentSuggestionSettings(param0);
|
|
512
|
+
}
|
|
513
|
+
|
|
469
514
|
Py_RETURN_NONE;
|
|
470
515
|
}
|
|
471
516
|
catch (...)
|
|
@@ -483,7 +528,7 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
483
528
|
|
|
484
529
|
static PyObject* SearchSuggestionManager_SetQuery(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* args) noexcept
|
|
485
530
|
{
|
|
486
|
-
auto arg_count =
|
|
531
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
487
532
|
|
|
488
533
|
if (arg_count == 1)
|
|
489
534
|
{
|
|
@@ -504,7 +549,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
504
549
|
|
|
505
550
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
506
551
|
|
|
507
|
-
|
|
552
|
+
{
|
|
553
|
+
auto _gil = release_gil();
|
|
554
|
+
self->obj.SetQuery(param0);
|
|
555
|
+
}
|
|
556
|
+
|
|
508
557
|
Py_RETURN_NONE;
|
|
509
558
|
}
|
|
510
559
|
catch (...)
|
|
@@ -513,7 +562,18 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
513
562
|
return nullptr;
|
|
514
563
|
}
|
|
515
564
|
}
|
|
516
|
-
else
|
|
565
|
+
else
|
|
566
|
+
{
|
|
567
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
568
|
+
return nullptr;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
static PyObject* SearchSuggestionManager_SetQueryWithLanguage(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* args) noexcept
|
|
573
|
+
{
|
|
574
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
575
|
+
|
|
576
|
+
if (arg_count == 2)
|
|
517
577
|
{
|
|
518
578
|
try
|
|
519
579
|
{
|
|
@@ -533,7 +593,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
533
593
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
534
594
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
535
595
|
|
|
536
|
-
|
|
596
|
+
{
|
|
597
|
+
auto _gil = release_gil();
|
|
598
|
+
self->obj.SetQuery(param0, param1);
|
|
599
|
+
}
|
|
600
|
+
|
|
537
601
|
Py_RETURN_NONE;
|
|
538
602
|
}
|
|
539
603
|
catch (...)
|
|
@@ -542,7 +606,18 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
542
606
|
return nullptr;
|
|
543
607
|
}
|
|
544
608
|
}
|
|
545
|
-
else
|
|
609
|
+
else
|
|
610
|
+
{
|
|
611
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
612
|
+
return nullptr;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
static PyObject* SearchSuggestionManager_SetQueryWithSearchQueryLinguisticDetails(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* args) noexcept
|
|
617
|
+
{
|
|
618
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
619
|
+
|
|
620
|
+
if (arg_count == 3)
|
|
546
621
|
{
|
|
547
622
|
try
|
|
548
623
|
{
|
|
@@ -563,7 +638,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
563
638
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
564
639
|
auto param2 = py::convert_to<winrt::Windows::ApplicationModel::Search::SearchQueryLinguisticDetails>(args, 2);
|
|
565
640
|
|
|
566
|
-
|
|
641
|
+
{
|
|
642
|
+
auto _gil = release_gil();
|
|
643
|
+
self->obj.SetQuery(param0, param1, param2);
|
|
644
|
+
}
|
|
645
|
+
|
|
567
646
|
Py_RETURN_NONE;
|
|
568
647
|
}
|
|
569
648
|
catch (...)
|
|
@@ -596,7 +675,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
596
675
|
return nullptr;
|
|
597
676
|
}
|
|
598
677
|
|
|
599
|
-
return py::convert(
|
|
678
|
+
return py::convert([&]()
|
|
679
|
+
{
|
|
680
|
+
auto _gil = release_gil();
|
|
681
|
+
return self->obj.SearchHistoryEnabled();
|
|
682
|
+
}());
|
|
600
683
|
}
|
|
601
684
|
catch (...)
|
|
602
685
|
{
|
|
@@ -607,7 +690,7 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
607
690
|
|
|
608
691
|
static int SearchSuggestionManager_put_SearchHistoryEnabled(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* arg, void* /*unused*/) noexcept
|
|
609
692
|
{
|
|
610
|
-
if (arg
|
|
693
|
+
if (!arg)
|
|
611
694
|
{
|
|
612
695
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
613
696
|
return -1;
|
|
@@ -630,7 +713,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
630
713
|
|
|
631
714
|
auto param0 = py::convert_to<bool>(arg);
|
|
632
715
|
|
|
633
|
-
|
|
716
|
+
{
|
|
717
|
+
auto _gil = release_gil();
|
|
718
|
+
self->obj.SearchHistoryEnabled(param0);
|
|
719
|
+
}
|
|
720
|
+
|
|
634
721
|
return 0;
|
|
635
722
|
}
|
|
636
723
|
catch (...)
|
|
@@ -657,7 +744,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
657
744
|
return nullptr;
|
|
658
745
|
}
|
|
659
746
|
|
|
660
|
-
return py::convert(
|
|
747
|
+
return py::convert([&]()
|
|
748
|
+
{
|
|
749
|
+
auto _gil = release_gil();
|
|
750
|
+
return self->obj.SearchHistoryContext();
|
|
751
|
+
}());
|
|
661
752
|
}
|
|
662
753
|
catch (...)
|
|
663
754
|
{
|
|
@@ -668,7 +759,7 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
668
759
|
|
|
669
760
|
static int SearchSuggestionManager_put_SearchHistoryContext(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* arg, void* /*unused*/) noexcept
|
|
670
761
|
{
|
|
671
|
-
if (arg
|
|
762
|
+
if (!arg)
|
|
672
763
|
{
|
|
673
764
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
674
765
|
return -1;
|
|
@@ -691,7 +782,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
691
782
|
|
|
692
783
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
693
784
|
|
|
694
|
-
|
|
785
|
+
{
|
|
786
|
+
auto _gil = release_gil();
|
|
787
|
+
self->obj.SearchHistoryContext(param0);
|
|
788
|
+
}
|
|
789
|
+
|
|
695
790
|
return 0;
|
|
696
791
|
}
|
|
697
792
|
catch (...)
|
|
@@ -718,7 +813,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
718
813
|
return nullptr;
|
|
719
814
|
}
|
|
720
815
|
|
|
721
|
-
return py::convert(
|
|
816
|
+
return py::convert([&]()
|
|
817
|
+
{
|
|
818
|
+
auto _gil = release_gil();
|
|
819
|
+
return self->obj.Suggestions();
|
|
820
|
+
}());
|
|
722
821
|
}
|
|
723
822
|
catch (...)
|
|
724
823
|
{
|
|
@@ -746,7 +845,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
746
845
|
|
|
747
846
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Search::Core::SearchSuggestionManager, winrt::Windows::ApplicationModel::Search::Core::RequestingFocusOnKeyboardInputEventArgs>>(arg);
|
|
748
847
|
|
|
749
|
-
return py::convert(
|
|
848
|
+
return py::convert([&]()
|
|
849
|
+
{
|
|
850
|
+
auto _gil = release_gil();
|
|
851
|
+
return self->obj.RequestingFocusOnKeyboardInput(param0);
|
|
852
|
+
}());
|
|
750
853
|
}
|
|
751
854
|
catch (...)
|
|
752
855
|
{
|
|
@@ -774,7 +877,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
774
877
|
|
|
775
878
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
776
879
|
|
|
777
|
-
|
|
880
|
+
{
|
|
881
|
+
auto _gil = release_gil();
|
|
882
|
+
self->obj.RequestingFocusOnKeyboardInput(param0);
|
|
883
|
+
}
|
|
884
|
+
|
|
778
885
|
Py_RETURN_NONE;
|
|
779
886
|
}
|
|
780
887
|
catch (...)
|
|
@@ -803,7 +910,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
803
910
|
|
|
804
911
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Search::Core::SearchSuggestionManager, winrt::Windows::ApplicationModel::Search::Core::SearchSuggestionsRequestedEventArgs>>(arg);
|
|
805
912
|
|
|
806
|
-
return py::convert(
|
|
913
|
+
return py::convert([&]()
|
|
914
|
+
{
|
|
915
|
+
auto _gil = release_gil();
|
|
916
|
+
return self->obj.SuggestionsRequested(param0);
|
|
917
|
+
}());
|
|
807
918
|
}
|
|
808
919
|
catch (...)
|
|
809
920
|
{
|
|
@@ -831,7 +942,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
831
942
|
|
|
832
943
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
833
944
|
|
|
834
|
-
|
|
945
|
+
{
|
|
946
|
+
auto _gil = release_gil();
|
|
947
|
+
self->obj.SuggestionsRequested(param0);
|
|
948
|
+
}
|
|
949
|
+
|
|
835
950
|
Py_RETURN_NONE;
|
|
836
951
|
}
|
|
837
952
|
catch (...)
|
|
@@ -867,32 +982,32 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
867
982
|
|
|
868
983
|
static PyMethodDef _methods_SearchSuggestionManager[] = {
|
|
869
984
|
{ "add_to_history", reinterpret_cast<PyCFunction>(SearchSuggestionManager_AddToHistory), METH_VARARGS, nullptr },
|
|
985
|
+
{ "add_to_history_with_language", reinterpret_cast<PyCFunction>(SearchSuggestionManager_AddToHistoryWithLanguage), METH_VARARGS, nullptr },
|
|
870
986
|
{ "clear_history", reinterpret_cast<PyCFunction>(SearchSuggestionManager_ClearHistory), METH_VARARGS, nullptr },
|
|
871
987
|
{ "set_local_content_suggestion_settings", reinterpret_cast<PyCFunction>(SearchSuggestionManager_SetLocalContentSuggestionSettings), METH_VARARGS, nullptr },
|
|
872
988
|
{ "set_query", reinterpret_cast<PyCFunction>(SearchSuggestionManager_SetQuery), METH_VARARGS, nullptr },
|
|
989
|
+
{ "set_query_with_language", reinterpret_cast<PyCFunction>(SearchSuggestionManager_SetQueryWithLanguage), METH_VARARGS, nullptr },
|
|
990
|
+
{ "set_query_with_search_query_linguistic_details", reinterpret_cast<PyCFunction>(SearchSuggestionManager_SetQueryWithSearchQueryLinguisticDetails), METH_VARARGS, nullptr },
|
|
873
991
|
{ "add_requesting_focus_on_keyboard_input", reinterpret_cast<PyCFunction>(SearchSuggestionManager_add_RequestingFocusOnKeyboardInput), METH_O, nullptr },
|
|
874
992
|
{ "remove_requesting_focus_on_keyboard_input", reinterpret_cast<PyCFunction>(SearchSuggestionManager_remove_RequestingFocusOnKeyboardInput), METH_O, nullptr },
|
|
875
993
|
{ "add_suggestions_requested", reinterpret_cast<PyCFunction>(SearchSuggestionManager_add_SuggestionsRequested), METH_O, nullptr },
|
|
876
994
|
{ "remove_suggestions_requested", reinterpret_cast<PyCFunction>(SearchSuggestionManager_remove_SuggestionsRequested), METH_O, nullptr },
|
|
877
995
|
{ "_assign_array_", _assign_array_SearchSuggestionManager, METH_O | METH_STATIC, nullptr },
|
|
878
996
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SearchSuggestionManager), METH_O | METH_STATIC, nullptr },
|
|
879
|
-
{ }
|
|
880
|
-
};
|
|
997
|
+
{ }};
|
|
881
998
|
|
|
882
999
|
static PyGetSetDef _getset_SearchSuggestionManager[] = {
|
|
883
1000
|
{ "search_history_enabled", reinterpret_cast<getter>(SearchSuggestionManager_get_SearchHistoryEnabled), reinterpret_cast<setter>(SearchSuggestionManager_put_SearchHistoryEnabled), nullptr, nullptr },
|
|
884
1001
|
{ "search_history_context", reinterpret_cast<getter>(SearchSuggestionManager_get_SearchHistoryContext), reinterpret_cast<setter>(SearchSuggestionManager_put_SearchHistoryContext), nullptr, nullptr },
|
|
885
1002
|
{ "suggestions", reinterpret_cast<getter>(SearchSuggestionManager_get_Suggestions), nullptr, nullptr, nullptr },
|
|
886
|
-
{ }
|
|
887
|
-
};
|
|
1003
|
+
{ }};
|
|
888
1004
|
|
|
889
1005
|
static PyType_Slot _type_slots_SearchSuggestionManager[] = {
|
|
890
1006
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SearchSuggestionManager) },
|
|
891
1007
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SearchSuggestionManager) },
|
|
892
1008
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SearchSuggestionManager) },
|
|
893
1009
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SearchSuggestionManager) },
|
|
894
|
-
{ }
|
|
895
|
-
};
|
|
1010
|
+
{ }};
|
|
896
1011
|
|
|
897
1012
|
static PyType_Spec type_spec_SearchSuggestionManager = {
|
|
898
1013
|
"winrt._winrt_windows_applicationmodel_search_core.SearchSuggestionManager",
|
|
@@ -935,7 +1050,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
935
1050
|
return nullptr;
|
|
936
1051
|
}
|
|
937
1052
|
|
|
938
|
-
return py::convert(
|
|
1053
|
+
return py::convert([&]()
|
|
1054
|
+
{
|
|
1055
|
+
auto _gil = release_gil();
|
|
1056
|
+
return self->obj.Language();
|
|
1057
|
+
}());
|
|
939
1058
|
}
|
|
940
1059
|
catch (...)
|
|
941
1060
|
{
|
|
@@ -961,7 +1080,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
961
1080
|
return nullptr;
|
|
962
1081
|
}
|
|
963
1082
|
|
|
964
|
-
return py::convert(
|
|
1083
|
+
return py::convert([&]()
|
|
1084
|
+
{
|
|
1085
|
+
auto _gil = release_gil();
|
|
1086
|
+
return self->obj.LinguisticDetails();
|
|
1087
|
+
}());
|
|
965
1088
|
}
|
|
966
1089
|
catch (...)
|
|
967
1090
|
{
|
|
@@ -987,7 +1110,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
987
1110
|
return nullptr;
|
|
988
1111
|
}
|
|
989
1112
|
|
|
990
|
-
return py::convert(
|
|
1113
|
+
return py::convert([&]()
|
|
1114
|
+
{
|
|
1115
|
+
auto _gil = release_gil();
|
|
1116
|
+
return self->obj.QueryText();
|
|
1117
|
+
}());
|
|
991
1118
|
}
|
|
992
1119
|
catch (...)
|
|
993
1120
|
{
|
|
@@ -1013,7 +1140,11 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
1013
1140
|
return nullptr;
|
|
1014
1141
|
}
|
|
1015
1142
|
|
|
1016
|
-
return py::convert(
|
|
1143
|
+
return py::convert([&]()
|
|
1144
|
+
{
|
|
1145
|
+
auto _gil = release_gil();
|
|
1146
|
+
return self->obj.Request();
|
|
1147
|
+
}());
|
|
1017
1148
|
}
|
|
1018
1149
|
catch (...)
|
|
1019
1150
|
{
|
|
@@ -1049,24 +1180,21 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
1049
1180
|
static PyMethodDef _methods_SearchSuggestionsRequestedEventArgs[] = {
|
|
1050
1181
|
{ "_assign_array_", _assign_array_SearchSuggestionsRequestedEventArgs, METH_O | METH_STATIC, nullptr },
|
|
1051
1182
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SearchSuggestionsRequestedEventArgs), METH_O | METH_STATIC, nullptr },
|
|
1052
|
-
{ }
|
|
1053
|
-
};
|
|
1183
|
+
{ }};
|
|
1054
1184
|
|
|
1055
1185
|
static PyGetSetDef _getset_SearchSuggestionsRequestedEventArgs[] = {
|
|
1056
1186
|
{ "language", reinterpret_cast<getter>(SearchSuggestionsRequestedEventArgs_get_Language), nullptr, nullptr, nullptr },
|
|
1057
1187
|
{ "linguistic_details", reinterpret_cast<getter>(SearchSuggestionsRequestedEventArgs_get_LinguisticDetails), nullptr, nullptr, nullptr },
|
|
1058
1188
|
{ "query_text", reinterpret_cast<getter>(SearchSuggestionsRequestedEventArgs_get_QueryText), nullptr, nullptr, nullptr },
|
|
1059
1189
|
{ "request", reinterpret_cast<getter>(SearchSuggestionsRequestedEventArgs_get_Request), nullptr, nullptr, nullptr },
|
|
1060
|
-
{ }
|
|
1061
|
-
};
|
|
1190
|
+
{ }};
|
|
1062
1191
|
|
|
1063
1192
|
static PyType_Slot _type_slots_SearchSuggestionsRequestedEventArgs[] = {
|
|
1064
1193
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SearchSuggestionsRequestedEventArgs) },
|
|
1065
1194
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SearchSuggestionsRequestedEventArgs) },
|
|
1066
1195
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SearchSuggestionsRequestedEventArgs) },
|
|
1067
1196
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SearchSuggestionsRequestedEventArgs) },
|
|
1068
|
-
{ }
|
|
1069
|
-
};
|
|
1197
|
+
{ }};
|
|
1070
1198
|
|
|
1071
1199
|
static PyType_Spec type_spec_SearchSuggestionsRequestedEventArgs = {
|
|
1072
1200
|
"winrt._winrt_windows_applicationmodel_search_core.SearchSuggestionsRequestedEventArgs",
|
|
@@ -1107,6 +1235,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_search_core(void) noexcept
|
|
|
1107
1235
|
return nullptr;
|
|
1108
1236
|
}
|
|
1109
1237
|
|
|
1238
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
1239
|
+
if (!inspectable_meta_type)
|
|
1240
|
+
{
|
|
1241
|
+
return nullptr;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1110
1244
|
auto object_type = py::get_object_type();
|
|
1111
1245
|
if (!object_type)
|
|
1112
1246
|
{
|
|
@@ -1120,25 +1254,25 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_search_core(void) noexcept
|
|
|
1120
1254
|
return nullptr;
|
|
1121
1255
|
}
|
|
1122
1256
|
|
|
1123
|
-
py::pytype_handle RequestingFocusOnKeyboardInputEventArgs_type{py::register_python_type(module.get(), &type_spec_RequestingFocusOnKeyboardInputEventArgs, object_bases.get(),
|
|
1257
|
+
py::pytype_handle RequestingFocusOnKeyboardInputEventArgs_type{py::register_python_type(module.get(), &type_spec_RequestingFocusOnKeyboardInputEventArgs, object_bases.get(), inspectable_meta_type)};
|
|
1124
1258
|
if (!RequestingFocusOnKeyboardInputEventArgs_type)
|
|
1125
1259
|
{
|
|
1126
1260
|
return nullptr;
|
|
1127
1261
|
}
|
|
1128
1262
|
|
|
1129
|
-
py::pytype_handle SearchSuggestion_type{py::register_python_type(module.get(), &type_spec_SearchSuggestion, object_bases.get(),
|
|
1263
|
+
py::pytype_handle SearchSuggestion_type{py::register_python_type(module.get(), &type_spec_SearchSuggestion, object_bases.get(), inspectable_meta_type)};
|
|
1130
1264
|
if (!SearchSuggestion_type)
|
|
1131
1265
|
{
|
|
1132
1266
|
return nullptr;
|
|
1133
1267
|
}
|
|
1134
1268
|
|
|
1135
|
-
py::pytype_handle SearchSuggestionManager_type{py::register_python_type(module.get(), &type_spec_SearchSuggestionManager, object_bases.get(),
|
|
1269
|
+
py::pytype_handle SearchSuggestionManager_type{py::register_python_type(module.get(), &type_spec_SearchSuggestionManager, object_bases.get(), inspectable_meta_type)};
|
|
1136
1270
|
if (!SearchSuggestionManager_type)
|
|
1137
1271
|
{
|
|
1138
1272
|
return nullptr;
|
|
1139
1273
|
}
|
|
1140
1274
|
|
|
1141
|
-
py::pytype_handle SearchSuggestionsRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_SearchSuggestionsRequestedEventArgs, object_bases.get(),
|
|
1275
|
+
py::pytype_handle SearchSuggestionsRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_SearchSuggestionsRequestedEventArgs, object_bases.get(), inspectable_meta_type)};
|
|
1142
1276
|
if (!SearchSuggestionsRequestedEventArgs_type)
|
|
1143
1277
|
{
|
|
1144
1278
|
return nullptr;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "winrt-sdk"]
|
|
4
|
+
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "winrt-Windows.ApplicationModel.Search.Core"
|
|
9
9
|
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
10
|
readme = "README.md"
|
|
11
|
-
license =
|
|
11
|
+
license = "MIT"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Operating System :: Microsoft :: Windows",
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.1.0
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.applicationmodel.search as windows_applicationmodel_search
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
16
|
+
|
|
17
|
+
from winrt.windows.applicationmodel.search.core import SearchSuggestionKind
|
|
18
|
+
|
|
19
|
+
Self = typing.TypeVar('Self')
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class RequestingFocusOnKeyboardInputEventArgs(winrt.system.Object):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
@typing.final
|
|
26
|
+
class SearchSuggestion(winrt.system.Object):
|
|
27
|
+
# System.String Windows.ApplicationModel.Search.Core.SearchSuggestion::get_DetailText()
|
|
28
|
+
@_property
|
|
29
|
+
def detail_text(self) -> str: ...
|
|
30
|
+
# Windows.Storage.Streams.IRandomAccessStreamReference Windows.ApplicationModel.Search.Core.SearchSuggestion::get_Image()
|
|
31
|
+
@_property
|
|
32
|
+
def image(self) -> windows_storage_streams.IRandomAccessStreamReference: ...
|
|
33
|
+
# System.String Windows.ApplicationModel.Search.Core.SearchSuggestion::get_ImageAlternateText()
|
|
34
|
+
@_property
|
|
35
|
+
def image_alternate_text(self) -> str: ...
|
|
36
|
+
# Windows.ApplicationModel.Search.Core.SearchSuggestionKind Windows.ApplicationModel.Search.Core.SearchSuggestion::get_Kind()
|
|
37
|
+
@_property
|
|
38
|
+
def kind(self) -> SearchSuggestionKind: ...
|
|
39
|
+
# System.String Windows.ApplicationModel.Search.Core.SearchSuggestion::get_Tag()
|
|
40
|
+
@_property
|
|
41
|
+
def tag(self) -> str: ...
|
|
42
|
+
# System.String Windows.ApplicationModel.Search.Core.SearchSuggestion::get_Text()
|
|
43
|
+
@_property
|
|
44
|
+
def text(self) -> str: ...
|
|
45
|
+
|
|
46
|
+
@typing.final
|
|
47
|
+
class SearchSuggestionManager(winrt.system.Object):
|
|
48
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
49
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::AddToHistory(System.String)
|
|
50
|
+
def add_to_history(self, query_text: str, /) -> None: ...
|
|
51
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::AddToHistory(System.String,System.String)
|
|
52
|
+
def add_to_history_with_language(self, query_text: str, language: str, /) -> None: ...
|
|
53
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::ClearHistory()
|
|
54
|
+
def clear_history(self) -> None: ...
|
|
55
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::SetLocalContentSuggestionSettings(Windows.ApplicationModel.Search.LocalContentSuggestionSettings)
|
|
56
|
+
def set_local_content_suggestion_settings(self, settings: windows_applicationmodel_search.LocalContentSuggestionSettings, /) -> None: ...
|
|
57
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::SetQuery(System.String)
|
|
58
|
+
def set_query(self, query_text: str, /) -> None: ...
|
|
59
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::SetQuery(System.String,System.String)
|
|
60
|
+
def set_query_with_language(self, query_text: str, language: str, /) -> None: ...
|
|
61
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::SetQuery(System.String,System.String,Windows.ApplicationModel.Search.SearchQueryLinguisticDetails)
|
|
62
|
+
def set_query_with_search_query_linguistic_details(self, query_text: str, language: str, linguistic_details: windows_applicationmodel_search.SearchQueryLinguisticDetails, /) -> None: ...
|
|
63
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Search.Core.SearchSuggestionManager::add_RequestingFocusOnKeyboardInput(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Search.Core.SearchSuggestionManager,Windows.ApplicationModel.Search.Core.RequestingFocusOnKeyboardInputEventArgs>)
|
|
64
|
+
def add_requesting_focus_on_keyboard_input(self, handler: windows_foundation.TypedEventHandler[SearchSuggestionManager, RequestingFocusOnKeyboardInputEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
65
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::remove_RequestingFocusOnKeyboardInput(Windows.Foundation.EventRegistrationToken)
|
|
66
|
+
def remove_requesting_focus_on_keyboard_input(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
67
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Search.Core.SearchSuggestionManager::add_SuggestionsRequested(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Search.Core.SearchSuggestionManager,Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs>)
|
|
68
|
+
def add_suggestions_requested(self, handler: windows_foundation.TypedEventHandler[SearchSuggestionManager, SearchSuggestionsRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
69
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::remove_SuggestionsRequested(Windows.Foundation.EventRegistrationToken)
|
|
70
|
+
def remove_suggestions_requested(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
71
|
+
# System.Boolean Windows.ApplicationModel.Search.Core.SearchSuggestionManager::get_SearchHistoryEnabled()
|
|
72
|
+
@_property
|
|
73
|
+
def search_history_enabled(self) -> bool: ...
|
|
74
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::put_SearchHistoryEnabled(System.Boolean)
|
|
75
|
+
@search_history_enabled.setter
|
|
76
|
+
def search_history_enabled(self, value: bool) -> None: ...
|
|
77
|
+
# System.String Windows.ApplicationModel.Search.Core.SearchSuggestionManager::get_SearchHistoryContext()
|
|
78
|
+
@_property
|
|
79
|
+
def search_history_context(self) -> str: ...
|
|
80
|
+
# System.Void Windows.ApplicationModel.Search.Core.SearchSuggestionManager::put_SearchHistoryContext(System.String)
|
|
81
|
+
@search_history_context.setter
|
|
82
|
+
def search_history_context(self, value: str) -> None: ...
|
|
83
|
+
# Windows.Foundation.Collections.IObservableVector`1<Windows.ApplicationModel.Search.Core.SearchSuggestion> Windows.ApplicationModel.Search.Core.SearchSuggestionManager::get_Suggestions()
|
|
84
|
+
@_property
|
|
85
|
+
def suggestions(self) -> windows_foundation_collections.IObservableVector[SearchSuggestion]: ...
|
|
86
|
+
|
|
87
|
+
@typing.final
|
|
88
|
+
class SearchSuggestionsRequestedEventArgs(winrt.system.Object):
|
|
89
|
+
# System.String Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs::get_Language()
|
|
90
|
+
@_property
|
|
91
|
+
def language(self) -> str: ...
|
|
92
|
+
# Windows.ApplicationModel.Search.SearchQueryLinguisticDetails Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs::get_LinguisticDetails()
|
|
93
|
+
@_property
|
|
94
|
+
def linguistic_details(self) -> windows_applicationmodel_search.SearchQueryLinguisticDetails: ...
|
|
95
|
+
# System.String Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs::get_QueryText()
|
|
96
|
+
@_property
|
|
97
|
+
def query_text(self) -> str: ...
|
|
98
|
+
# Windows.ApplicationModel.Search.SearchSuggestionsRequest Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs::get_Request()
|
|
99
|
+
@_property
|
|
100
|
+
def request(self) -> windows_applicationmodel_search.SearchSuggestionsRequest: ...
|
|
101
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt._winrt_windows_applicationmodel_search_core import (
|
|
7
|
+
RequestingFocusOnKeyboardInputEventArgs,
|
|
8
|
+
SearchSuggestion,
|
|
9
|
+
SearchSuggestionManager,
|
|
10
|
+
SearchSuggestionsRequestedEventArgs,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
"SearchSuggestionKind",
|
|
15
|
+
"RequestingFocusOnKeyboardInputEventArgs",
|
|
16
|
+
"SearchSuggestion",
|
|
17
|
+
"SearchSuggestionManager",
|
|
18
|
+
"SearchSuggestionsRequestedEventArgs",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
class SearchSuggestionKind(enum.IntEnum):
|
|
22
|
+
QUERY = 0
|
|
23
|
+
RESULT = 1
|
|
24
|
+
SEPARATOR = 2
|
|
25
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Search.Core
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.Search[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Search[all]==3.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.3.0
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
import winrt.windows.applicationmodel.search as windows_applicationmodel_search
|
|
13
|
-
import winrt.windows.foundation as windows_foundation
|
|
14
|
-
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
|
-
import winrt.windows.storage.streams as windows_storage_streams
|
|
16
|
-
|
|
17
|
-
from winrt.windows.applicationmodel.search.core import SearchSuggestionKind
|
|
18
|
-
|
|
19
|
-
Self = typing.TypeVar('Self')
|
|
20
|
-
|
|
21
|
-
@typing.final
|
|
22
|
-
class RequestingFocusOnKeyboardInputEventArgs(winrt.system.Object):
|
|
23
|
-
@staticmethod
|
|
24
|
-
def _from(obj: winrt.system.Object, /) -> RequestingFocusOnKeyboardInputEventArgs: ...
|
|
25
|
-
|
|
26
|
-
@typing.final
|
|
27
|
-
class SearchSuggestion(winrt.system.Object):
|
|
28
|
-
@staticmethod
|
|
29
|
-
def _from(obj: winrt.system.Object, /) -> SearchSuggestion: ...
|
|
30
|
-
@_property
|
|
31
|
-
def detail_text(self) -> str: ...
|
|
32
|
-
@_property
|
|
33
|
-
def image(self) -> typing.Optional[windows_storage_streams.IRandomAccessStreamReference]: ...
|
|
34
|
-
@_property
|
|
35
|
-
def image_alternate_text(self) -> str: ...
|
|
36
|
-
@_property
|
|
37
|
-
def kind(self) -> SearchSuggestionKind: ...
|
|
38
|
-
@_property
|
|
39
|
-
def tag(self) -> str: ...
|
|
40
|
-
@_property
|
|
41
|
-
def text(self) -> str: ...
|
|
42
|
-
|
|
43
|
-
@typing.final
|
|
44
|
-
class SearchSuggestionManager(winrt.system.Object):
|
|
45
|
-
@staticmethod
|
|
46
|
-
def _from(obj: winrt.system.Object, /) -> SearchSuggestionManager: ...
|
|
47
|
-
def __new__(cls: typing.Type[SearchSuggestionManager]) -> SearchSuggestionManager: ...
|
|
48
|
-
@typing.overload
|
|
49
|
-
def add_to_history(self, query_text: str, /) -> None: ...
|
|
50
|
-
@typing.overload
|
|
51
|
-
def add_to_history(self, query_text: str, language: str, /) -> None: ...
|
|
52
|
-
def clear_history(self) -> None: ...
|
|
53
|
-
def set_local_content_suggestion_settings(self, settings: typing.Optional[windows_applicationmodel_search.LocalContentSuggestionSettings], /) -> None: ...
|
|
54
|
-
@typing.overload
|
|
55
|
-
def set_query(self, query_text: str, /) -> None: ...
|
|
56
|
-
@typing.overload
|
|
57
|
-
def set_query(self, query_text: str, language: str, /) -> None: ...
|
|
58
|
-
@typing.overload
|
|
59
|
-
def set_query(self, query_text: str, language: str, linguistic_details: typing.Optional[windows_applicationmodel_search.SearchQueryLinguisticDetails], /) -> None: ...
|
|
60
|
-
def add_requesting_focus_on_keyboard_input(self, handler: windows_foundation.TypedEventHandler[SearchSuggestionManager, RequestingFocusOnKeyboardInputEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
61
|
-
def remove_requesting_focus_on_keyboard_input(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
62
|
-
def add_suggestions_requested(self, handler: windows_foundation.TypedEventHandler[SearchSuggestionManager, SearchSuggestionsRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
63
|
-
def remove_suggestions_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
64
|
-
@_property
|
|
65
|
-
def search_history_enabled(self) -> bool: ...
|
|
66
|
-
@search_history_enabled.setter
|
|
67
|
-
def search_history_enabled(self, value: bool) -> None: ...
|
|
68
|
-
@_property
|
|
69
|
-
def search_history_context(self) -> str: ...
|
|
70
|
-
@search_history_context.setter
|
|
71
|
-
def search_history_context(self, value: str) -> None: ...
|
|
72
|
-
@_property
|
|
73
|
-
def suggestions(self) -> typing.Optional[windows_foundation_collections.IObservableVector[SearchSuggestion]]: ...
|
|
74
|
-
|
|
75
|
-
@typing.final
|
|
76
|
-
class SearchSuggestionsRequestedEventArgs(winrt.system.Object):
|
|
77
|
-
@staticmethod
|
|
78
|
-
def _from(obj: winrt.system.Object, /) -> SearchSuggestionsRequestedEventArgs: ...
|
|
79
|
-
@_property
|
|
80
|
-
def language(self) -> str: ...
|
|
81
|
-
@_property
|
|
82
|
-
def linguistic_details(self) -> typing.Optional[windows_applicationmodel_search.SearchQueryLinguisticDetails]: ...
|
|
83
|
-
@_property
|
|
84
|
-
def query_text(self) -> str: ...
|
|
85
|
-
@_property
|
|
86
|
-
def request(self) -> typing.Optional[windows_applicationmodel_search.SearchSuggestionsRequest]: ...
|
|
87
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import enum
|
|
4
|
-
|
|
5
|
-
import winrt.system
|
|
6
|
-
from winrt import _winrt_windows_applicationmodel_search_core
|
|
7
|
-
|
|
8
|
-
__all__ = [
|
|
9
|
-
"SearchSuggestionKind",
|
|
10
|
-
"RequestingFocusOnKeyboardInputEventArgs",
|
|
11
|
-
"SearchSuggestion",
|
|
12
|
-
"SearchSuggestionManager",
|
|
13
|
-
"SearchSuggestionsRequestedEventArgs",
|
|
14
|
-
]
|
|
15
|
-
|
|
16
|
-
class SearchSuggestionKind(enum.IntEnum):
|
|
17
|
-
QUERY = 0
|
|
18
|
-
RESULT = 1
|
|
19
|
-
SEPARATOR = 2
|
|
20
|
-
|
|
21
|
-
RequestingFocusOnKeyboardInputEventArgs = _winrt_windows_applicationmodel_search_core.RequestingFocusOnKeyboardInputEventArgs
|
|
22
|
-
SearchSuggestion = _winrt_windows_applicationmodel_search_core.SearchSuggestion
|
|
23
|
-
SearchSuggestionManager = _winrt_windows_applicationmodel_search_core.SearchSuggestionManager
|
|
24
|
-
SearchSuggestionsRequestedEventArgs = _winrt_windows_applicationmodel_search_core.SearchSuggestionsRequestedEventArgs
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|