winrt-Windows.UI.ViewManagement 3.1.0__tar.gz → 3.2.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.
Files changed (20) hide show
  1. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/PKG-INFO +9 -9
  2. winrt_windows_ui_viewmanagement-3.2.0/all-requirements.txt +9 -0
  3. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/py.Windows.UI.ViewManagement.cpp +111 -923
  4. winrt_windows_ui_viewmanagement-3.2.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/requirements.txt +2 -2
  6. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/setup.py +2 -0
  7. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/winrt/_winrt_windows_ui_viewmanagement.pyi +7 -64
  8. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/winrt/windows/ui/viewmanagement/__init__.py +1 -5
  9. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/winrt_Windows.UI.ViewManagement.egg-info/PKG-INFO +9 -9
  10. winrt_windows_ui_viewmanagement-3.2.0/winrt_Windows.UI.ViewManagement.egg-info/requires.txt +10 -0
  11. winrt_windows_ui_viewmanagement-3.1.0/all-requirements.txt +0 -9
  12. winrt_windows_ui_viewmanagement-3.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_ui_viewmanagement-3.1.0/winrt_Windows.UI.ViewManagement.egg-info/requires.txt +0 -10
  14. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/README.md +0 -0
  15. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/pyproject.toml +0 -0
  16. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/setup.cfg +0 -0
  17. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/winrt/windows/ui/viewmanagement/py.typed +0 -0
  18. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/winrt_Windows.UI.ViewManagement.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/winrt_Windows.UI.ViewManagement.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_ui_viewmanagement-3.1.0 → winrt_windows_ui_viewmanagement-3.2.0}/winrt_Windows.UI.ViewManagement.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: winrt-Windows.UI.ViewManagement
3
- Version: 3.1.0
3
+ Version: 3.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,15 +12,15 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==3.1.0
15
+ Requires-Dist: winrt-runtime==3.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Enumeration[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.UI[all]==3.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Core[all]==3.1.0; extra == "all"
22
- Requires-Dist: winrt-Windows.UI.Popups[all]==3.1.0; extra == "all"
23
- Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Enumeration[all]==3.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI[all]==3.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Core[all]==3.2.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.UI.Popups[all]==3.2.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.2.0; extra == "all"
24
24
 
25
25
  <!-- warning: Please don't edit this file. It was automatically generated. -->
26
26
 
@@ -0,0 +1,9 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
+
3
+ winrt-Windows.Devices.Enumeration[all]==3.2.0
4
+ winrt-Windows.Foundation[all]==3.2.0
5
+ winrt-Windows.Foundation.Collections[all]==3.2.0
6
+ winrt-Windows.UI[all]==3.2.0
7
+ winrt-Windows.UI.Core[all]==3.2.0
8
+ winrt-Windows.UI.Popups[all]==3.2.0
9
+ winrt-Windows.UI.WindowManagement[all]==3.2.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
2
 
3
3
  #include "py.Windows.UI.ViewManagement.h"
4
4
 
@@ -5372,904 +5372,6 @@ namespace py::cpp::Windows::UI::ViewManagement
5372
5372
  Py_TPFLAGS_DEFAULT,
5373
5373
  type_slots_ProjectionManager_Static};
5374
5374
 
5375
- // ----- StatusBar class --------------------
5376
-
5377
- static PyObject* _new_StatusBar(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
5378
- {
5379
- static_assert(py::py_type<winrt::Windows::UI::ViewManagement::StatusBar>::type_name);
5380
- py::set_invalid_activation_error(py::py_type<winrt::Windows::UI::ViewManagement::StatusBar>::type_name);
5381
- return nullptr;
5382
- }
5383
-
5384
- static void _dealloc_StatusBar(py::wrapper::Windows::UI::ViewManagement::StatusBar* self) noexcept
5385
- {
5386
- auto tp = Py_TYPE(self);
5387
- std::destroy_at(&self->obj);
5388
- tp->tp_free(self);
5389
- Py_DECREF(tp);
5390
- }
5391
-
5392
- static PyObject* StatusBar_GetForCurrentView(PyObject* /*unused*/, PyObject* args) noexcept
5393
- {
5394
- auto arg_count = PyTuple_GET_SIZE(args);
5395
-
5396
- if (arg_count == 0)
5397
- {
5398
- try
5399
- {
5400
- static std::optional<bool> is_overload_present{};
5401
-
5402
- if (!is_overload_present.has_value())
5403
- {
5404
- is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.StatusBar", L"GetForCurrentView", 0);
5405
- }
5406
-
5407
- if (!is_overload_present.value())
5408
- {
5409
- py::set_arg_count_version_error(0);
5410
- return nullptr;
5411
- }
5412
-
5413
- return py::convert([&]()
5414
- {
5415
- auto _gil = release_gil();
5416
- return winrt::Windows::UI::ViewManagement::StatusBar::GetForCurrentView();
5417
- }());
5418
- }
5419
- catch (...)
5420
- {
5421
- py::to_PyErr();
5422
- return nullptr;
5423
- }
5424
- }
5425
- else
5426
- {
5427
- py::set_invalid_arg_count_error(arg_count);
5428
- return nullptr;
5429
- }
5430
- }
5431
-
5432
- static PyObject* StatusBar_HideAsync(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, PyObject* args) noexcept
5433
- {
5434
- auto arg_count = PyTuple_GET_SIZE(args);
5435
-
5436
- if (arg_count == 0)
5437
- {
5438
- try
5439
- {
5440
- static std::optional<bool> is_overload_present{};
5441
-
5442
- if (!is_overload_present.has_value())
5443
- {
5444
- is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.StatusBar", L"HideAsync", 0);
5445
- }
5446
-
5447
- if (!is_overload_present.value())
5448
- {
5449
- py::set_arg_count_version_error(0);
5450
- return nullptr;
5451
- }
5452
-
5453
- return py::convert([&]()
5454
- {
5455
- auto _gil = release_gil();
5456
- return self->obj.HideAsync();
5457
- }());
5458
- }
5459
- catch (...)
5460
- {
5461
- py::to_PyErr();
5462
- return nullptr;
5463
- }
5464
- }
5465
- else
5466
- {
5467
- py::set_invalid_arg_count_error(arg_count);
5468
- return nullptr;
5469
- }
5470
- }
5471
-
5472
- static PyObject* StatusBar_ShowAsync(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, PyObject* args) noexcept
5473
- {
5474
- auto arg_count = PyTuple_GET_SIZE(args);
5475
-
5476
- if (arg_count == 0)
5477
- {
5478
- try
5479
- {
5480
- static std::optional<bool> is_overload_present{};
5481
-
5482
- if (!is_overload_present.has_value())
5483
- {
5484
- is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.StatusBar", L"ShowAsync", 0);
5485
- }
5486
-
5487
- if (!is_overload_present.value())
5488
- {
5489
- py::set_arg_count_version_error(0);
5490
- return nullptr;
5491
- }
5492
-
5493
- return py::convert([&]()
5494
- {
5495
- auto _gil = release_gil();
5496
- return self->obj.ShowAsync();
5497
- }());
5498
- }
5499
- catch (...)
5500
- {
5501
- py::to_PyErr();
5502
- return nullptr;
5503
- }
5504
- }
5505
- else
5506
- {
5507
- py::set_invalid_arg_count_error(arg_count);
5508
- return nullptr;
5509
- }
5510
- }
5511
-
5512
- static PyObject* StatusBar_get_ForegroundColor(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, void* /*unused*/) noexcept
5513
- {
5514
- try
5515
- {
5516
- static std::optional<bool> is_property_present{};
5517
-
5518
- if (!is_property_present.has_value())
5519
- {
5520
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBar", L"ForegroundColor");
5521
- }
5522
-
5523
- if (!is_property_present.value())
5524
- {
5525
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
5526
- return nullptr;
5527
- }
5528
-
5529
- return py::convert([&]()
5530
- {
5531
- auto _gil = release_gil();
5532
- return self->obj.ForegroundColor();
5533
- }());
5534
- }
5535
- catch (...)
5536
- {
5537
- py::to_PyErr();
5538
- return nullptr;
5539
- }
5540
- }
5541
-
5542
- static int StatusBar_put_ForegroundColor(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, PyObject* arg, void* /*unused*/) noexcept
5543
- {
5544
- if (!arg)
5545
- {
5546
- PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
5547
- return -1;
5548
- }
5549
-
5550
- try
5551
- {
5552
- static std::optional<bool> is_property_present{};
5553
-
5554
- if (!is_property_present.has_value())
5555
- {
5556
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBar", L"ForegroundColor");
5557
- }
5558
-
5559
- if (!is_property_present.value())
5560
- {
5561
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
5562
- return -1;
5563
- }
5564
-
5565
- auto param0 = py::convert_to<winrt::Windows::Foundation::IReference<winrt::Windows::UI::Color>>(arg);
5566
-
5567
- {
5568
- auto _gil = release_gil();
5569
- self->obj.ForegroundColor(param0);
5570
- }
5571
-
5572
- return 0;
5573
- }
5574
- catch (...)
5575
- {
5576
- py::to_PyErr();
5577
- return -1;
5578
- }
5579
- }
5580
-
5581
- static PyObject* StatusBar_get_BackgroundOpacity(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, void* /*unused*/) noexcept
5582
- {
5583
- try
5584
- {
5585
- static std::optional<bool> is_property_present{};
5586
-
5587
- if (!is_property_present.has_value())
5588
- {
5589
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBar", L"BackgroundOpacity");
5590
- }
5591
-
5592
- if (!is_property_present.value())
5593
- {
5594
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
5595
- return nullptr;
5596
- }
5597
-
5598
- return py::convert([&]()
5599
- {
5600
- auto _gil = release_gil();
5601
- return self->obj.BackgroundOpacity();
5602
- }());
5603
- }
5604
- catch (...)
5605
- {
5606
- py::to_PyErr();
5607
- return nullptr;
5608
- }
5609
- }
5610
-
5611
- static int StatusBar_put_BackgroundOpacity(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, PyObject* arg, void* /*unused*/) noexcept
5612
- {
5613
- if (!arg)
5614
- {
5615
- PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
5616
- return -1;
5617
- }
5618
-
5619
- try
5620
- {
5621
- static std::optional<bool> is_property_present{};
5622
-
5623
- if (!is_property_present.has_value())
5624
- {
5625
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBar", L"BackgroundOpacity");
5626
- }
5627
-
5628
- if (!is_property_present.value())
5629
- {
5630
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
5631
- return -1;
5632
- }
5633
-
5634
- auto param0 = py::convert_to<double>(arg);
5635
-
5636
- {
5637
- auto _gil = release_gil();
5638
- self->obj.BackgroundOpacity(param0);
5639
- }
5640
-
5641
- return 0;
5642
- }
5643
- catch (...)
5644
- {
5645
- py::to_PyErr();
5646
- return -1;
5647
- }
5648
- }
5649
-
5650
- static PyObject* StatusBar_get_BackgroundColor(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, void* /*unused*/) noexcept
5651
- {
5652
- try
5653
- {
5654
- static std::optional<bool> is_property_present{};
5655
-
5656
- if (!is_property_present.has_value())
5657
- {
5658
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBar", L"BackgroundColor");
5659
- }
5660
-
5661
- if (!is_property_present.value())
5662
- {
5663
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
5664
- return nullptr;
5665
- }
5666
-
5667
- return py::convert([&]()
5668
- {
5669
- auto _gil = release_gil();
5670
- return self->obj.BackgroundColor();
5671
- }());
5672
- }
5673
- catch (...)
5674
- {
5675
- py::to_PyErr();
5676
- return nullptr;
5677
- }
5678
- }
5679
-
5680
- static int StatusBar_put_BackgroundColor(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, PyObject* arg, void* /*unused*/) noexcept
5681
- {
5682
- if (!arg)
5683
- {
5684
- PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
5685
- return -1;
5686
- }
5687
-
5688
- try
5689
- {
5690
- static std::optional<bool> is_property_present{};
5691
-
5692
- if (!is_property_present.has_value())
5693
- {
5694
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBar", L"BackgroundColor");
5695
- }
5696
-
5697
- if (!is_property_present.value())
5698
- {
5699
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
5700
- return -1;
5701
- }
5702
-
5703
- auto param0 = py::convert_to<winrt::Windows::Foundation::IReference<winrt::Windows::UI::Color>>(arg);
5704
-
5705
- {
5706
- auto _gil = release_gil();
5707
- self->obj.BackgroundColor(param0);
5708
- }
5709
-
5710
- return 0;
5711
- }
5712
- catch (...)
5713
- {
5714
- py::to_PyErr();
5715
- return -1;
5716
- }
5717
- }
5718
-
5719
- static PyObject* StatusBar_get_OccludedRect(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, void* /*unused*/) noexcept
5720
- {
5721
- try
5722
- {
5723
- static std::optional<bool> is_property_present{};
5724
-
5725
- if (!is_property_present.has_value())
5726
- {
5727
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBar", L"OccludedRect");
5728
- }
5729
-
5730
- if (!is_property_present.value())
5731
- {
5732
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
5733
- return nullptr;
5734
- }
5735
-
5736
- return py::convert([&]()
5737
- {
5738
- auto _gil = release_gil();
5739
- return self->obj.OccludedRect();
5740
- }());
5741
- }
5742
- catch (...)
5743
- {
5744
- py::to_PyErr();
5745
- return nullptr;
5746
- }
5747
- }
5748
-
5749
- static PyObject* StatusBar_get_ProgressIndicator(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, void* /*unused*/) noexcept
5750
- {
5751
- try
5752
- {
5753
- static std::optional<bool> is_property_present{};
5754
-
5755
- if (!is_property_present.has_value())
5756
- {
5757
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBar", L"ProgressIndicator");
5758
- }
5759
-
5760
- if (!is_property_present.value())
5761
- {
5762
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
5763
- return nullptr;
5764
- }
5765
-
5766
- return py::convert([&]()
5767
- {
5768
- auto _gil = release_gil();
5769
- return self->obj.ProgressIndicator();
5770
- }());
5771
- }
5772
- catch (...)
5773
- {
5774
- py::to_PyErr();
5775
- return nullptr;
5776
- }
5777
- }
5778
-
5779
- static PyObject* StatusBar_add_Hiding(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, PyObject* arg) noexcept
5780
- {
5781
- try
5782
- {
5783
- static std::optional<bool> is_event_present{};
5784
-
5785
- if (!is_event_present.has_value())
5786
- {
5787
- is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.StatusBar", L"Hiding");
5788
- }
5789
-
5790
- if (!is_event_present.value())
5791
- {
5792
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
5793
- return nullptr;
5794
- }
5795
-
5796
- auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::UI::ViewManagement::StatusBar, winrt::Windows::Foundation::IInspectable>>(arg);
5797
-
5798
- return py::convert([&]()
5799
- {
5800
- auto _gil = release_gil();
5801
- return self->obj.Hiding(param0);
5802
- }());
5803
- }
5804
- catch (...)
5805
- {
5806
- py::to_PyErr();
5807
- return nullptr;
5808
- }
5809
- }
5810
-
5811
- static PyObject* StatusBar_remove_Hiding(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, PyObject* arg) noexcept
5812
- {
5813
- try
5814
- {
5815
- static std::optional<bool> is_event_present{};
5816
-
5817
- if (!is_event_present.has_value())
5818
- {
5819
- is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.StatusBar", L"Hiding");
5820
- }
5821
-
5822
- if (!is_event_present.value())
5823
- {
5824
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
5825
- return nullptr;
5826
- }
5827
-
5828
- auto param0 = py::convert_to<winrt::event_token>(arg);
5829
-
5830
- {
5831
- auto _gil = release_gil();
5832
- self->obj.Hiding(param0);
5833
- }
5834
-
5835
- Py_RETURN_NONE;
5836
- }
5837
- catch (...)
5838
- {
5839
- py::to_PyErr();
5840
- return nullptr;
5841
- }
5842
- }
5843
-
5844
- static PyObject* StatusBar_add_Showing(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, PyObject* arg) noexcept
5845
- {
5846
- try
5847
- {
5848
- static std::optional<bool> is_event_present{};
5849
-
5850
- if (!is_event_present.has_value())
5851
- {
5852
- is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.StatusBar", L"Showing");
5853
- }
5854
-
5855
- if (!is_event_present.value())
5856
- {
5857
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
5858
- return nullptr;
5859
- }
5860
-
5861
- auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::UI::ViewManagement::StatusBar, winrt::Windows::Foundation::IInspectable>>(arg);
5862
-
5863
- return py::convert([&]()
5864
- {
5865
- auto _gil = release_gil();
5866
- return self->obj.Showing(param0);
5867
- }());
5868
- }
5869
- catch (...)
5870
- {
5871
- py::to_PyErr();
5872
- return nullptr;
5873
- }
5874
- }
5875
-
5876
- static PyObject* StatusBar_remove_Showing(py::wrapper::Windows::UI::ViewManagement::StatusBar* self, PyObject* arg) noexcept
5877
- {
5878
- try
5879
- {
5880
- static std::optional<bool> is_event_present{};
5881
-
5882
- if (!is_event_present.has_value())
5883
- {
5884
- is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.StatusBar", L"Showing");
5885
- }
5886
-
5887
- if (!is_event_present.value())
5888
- {
5889
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
5890
- return nullptr;
5891
- }
5892
-
5893
- auto param0 = py::convert_to<winrt::event_token>(arg);
5894
-
5895
- {
5896
- auto _gil = release_gil();
5897
- self->obj.Showing(param0);
5898
- }
5899
-
5900
- Py_RETURN_NONE;
5901
- }
5902
- catch (...)
5903
- {
5904
- py::to_PyErr();
5905
- return nullptr;
5906
- }
5907
- }
5908
-
5909
- static PyObject* _assign_array_StatusBar(PyObject* /*unused*/, PyObject* arg) noexcept
5910
- {
5911
- auto array = std::make_unique<py::ComArray<winrt::Windows::UI::ViewManagement::StatusBar>>();
5912
- if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
5913
- {
5914
- return nullptr;
5915
- }
5916
- Py_RETURN_NONE;
5917
- }
5918
-
5919
- static PyObject* _from_StatusBar(PyObject* /*unused*/, PyObject* arg) noexcept
5920
- {
5921
- try
5922
- {
5923
- auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
5924
- return py::convert(return_value.as<winrt::Windows::UI::ViewManagement::StatusBar>());
5925
- }
5926
- catch (...)
5927
- {
5928
- py::to_PyErr();
5929
- return nullptr;
5930
- }
5931
- }
5932
-
5933
- static PyMethodDef _methods_StatusBar[] = {
5934
- { "hide_async", reinterpret_cast<PyCFunction>(StatusBar_HideAsync), METH_VARARGS, nullptr },
5935
- { "show_async", reinterpret_cast<PyCFunction>(StatusBar_ShowAsync), METH_VARARGS, nullptr },
5936
- { "add_hiding", reinterpret_cast<PyCFunction>(StatusBar_add_Hiding), METH_O, nullptr },
5937
- { "remove_hiding", reinterpret_cast<PyCFunction>(StatusBar_remove_Hiding), METH_O, nullptr },
5938
- { "add_showing", reinterpret_cast<PyCFunction>(StatusBar_add_Showing), METH_O, nullptr },
5939
- { "remove_showing", reinterpret_cast<PyCFunction>(StatusBar_remove_Showing), METH_O, nullptr },
5940
- { "_assign_array_", _assign_array_StatusBar, METH_O | METH_STATIC, nullptr },
5941
- { "_from", reinterpret_cast<PyCFunction>(_from_StatusBar), METH_O | METH_STATIC, nullptr },
5942
- { }};
5943
-
5944
- static PyGetSetDef _getset_StatusBar[] = {
5945
- { "foreground_color", reinterpret_cast<getter>(StatusBar_get_ForegroundColor), reinterpret_cast<setter>(StatusBar_put_ForegroundColor), nullptr, nullptr },
5946
- { "background_opacity", reinterpret_cast<getter>(StatusBar_get_BackgroundOpacity), reinterpret_cast<setter>(StatusBar_put_BackgroundOpacity), nullptr, nullptr },
5947
- { "background_color", reinterpret_cast<getter>(StatusBar_get_BackgroundColor), reinterpret_cast<setter>(StatusBar_put_BackgroundColor), nullptr, nullptr },
5948
- { "occluded_rect", reinterpret_cast<getter>(StatusBar_get_OccludedRect), nullptr, nullptr, nullptr },
5949
- { "progress_indicator", reinterpret_cast<getter>(StatusBar_get_ProgressIndicator), nullptr, nullptr, nullptr },
5950
- { }};
5951
-
5952
- static PyType_Slot _type_slots_StatusBar[] = {
5953
- { Py_tp_new, reinterpret_cast<void*>(_new_StatusBar) },
5954
- { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_StatusBar) },
5955
- { Py_tp_methods, reinterpret_cast<void*>(_methods_StatusBar) },
5956
- { Py_tp_getset, reinterpret_cast<void*>(_getset_StatusBar) },
5957
- { }};
5958
-
5959
- static PyType_Spec type_spec_StatusBar = {
5960
- "winrt._winrt_windows_ui_viewmanagement.StatusBar",
5961
- sizeof(py::wrapper::Windows::UI::ViewManagement::StatusBar),
5962
- 0,
5963
- Py_TPFLAGS_DEFAULT,
5964
- _type_slots_StatusBar};
5965
-
5966
- static PyGetSetDef getset_StatusBar_Static[] = {
5967
- { }};
5968
-
5969
- static PyMethodDef methods_StatusBar_Static[] = {
5970
- { "get_for_current_view", reinterpret_cast<PyCFunction>(StatusBar_GetForCurrentView), METH_VARARGS, nullptr },
5971
- { }};
5972
-
5973
- static PyType_Slot type_slots_StatusBar_Static[] =
5974
- {
5975
- { Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
5976
- { Py_tp_getset, reinterpret_cast<void*>(getset_StatusBar_Static) },
5977
- { Py_tp_methods, reinterpret_cast<void*>(methods_StatusBar_Static) },
5978
- { }
5979
- };
5980
-
5981
- static PyType_Spec type_spec_StatusBar_Static = {
5982
- "winrt._winrt_windows_ui_viewmanagement.StatusBar_Static",
5983
- static_cast<int>(PyType_Type.tp_basicsize),
5984
- static_cast<int>(PyType_Type.tp_itemsize),
5985
- Py_TPFLAGS_DEFAULT,
5986
- type_slots_StatusBar_Static};
5987
-
5988
- // ----- StatusBarProgressIndicator class --------------------
5989
-
5990
- static PyObject* _new_StatusBarProgressIndicator(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
5991
- {
5992
- static_assert(py::py_type<winrt::Windows::UI::ViewManagement::StatusBarProgressIndicator>::type_name);
5993
- py::set_invalid_activation_error(py::py_type<winrt::Windows::UI::ViewManagement::StatusBarProgressIndicator>::type_name);
5994
- return nullptr;
5995
- }
5996
-
5997
- static void _dealloc_StatusBarProgressIndicator(py::wrapper::Windows::UI::ViewManagement::StatusBarProgressIndicator* self) noexcept
5998
- {
5999
- auto tp = Py_TYPE(self);
6000
- std::destroy_at(&self->obj);
6001
- tp->tp_free(self);
6002
- Py_DECREF(tp);
6003
- }
6004
-
6005
- static PyObject* StatusBarProgressIndicator_HideAsync(py::wrapper::Windows::UI::ViewManagement::StatusBarProgressIndicator* self, PyObject* args) noexcept
6006
- {
6007
- auto arg_count = PyTuple_GET_SIZE(args);
6008
-
6009
- if (arg_count == 0)
6010
- {
6011
- try
6012
- {
6013
- static std::optional<bool> is_overload_present{};
6014
-
6015
- if (!is_overload_present.has_value())
6016
- {
6017
- is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.StatusBarProgressIndicator", L"HideAsync", 0);
6018
- }
6019
-
6020
- if (!is_overload_present.value())
6021
- {
6022
- py::set_arg_count_version_error(0);
6023
- return nullptr;
6024
- }
6025
-
6026
- return py::convert([&]()
6027
- {
6028
- auto _gil = release_gil();
6029
- return self->obj.HideAsync();
6030
- }());
6031
- }
6032
- catch (...)
6033
- {
6034
- py::to_PyErr();
6035
- return nullptr;
6036
- }
6037
- }
6038
- else
6039
- {
6040
- py::set_invalid_arg_count_error(arg_count);
6041
- return nullptr;
6042
- }
6043
- }
6044
-
6045
- static PyObject* StatusBarProgressIndicator_ShowAsync(py::wrapper::Windows::UI::ViewManagement::StatusBarProgressIndicator* self, PyObject* args) noexcept
6046
- {
6047
- auto arg_count = PyTuple_GET_SIZE(args);
6048
-
6049
- if (arg_count == 0)
6050
- {
6051
- try
6052
- {
6053
- static std::optional<bool> is_overload_present{};
6054
-
6055
- if (!is_overload_present.has_value())
6056
- {
6057
- is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.StatusBarProgressIndicator", L"ShowAsync", 0);
6058
- }
6059
-
6060
- if (!is_overload_present.value())
6061
- {
6062
- py::set_arg_count_version_error(0);
6063
- return nullptr;
6064
- }
6065
-
6066
- return py::convert([&]()
6067
- {
6068
- auto _gil = release_gil();
6069
- return self->obj.ShowAsync();
6070
- }());
6071
- }
6072
- catch (...)
6073
- {
6074
- py::to_PyErr();
6075
- return nullptr;
6076
- }
6077
- }
6078
- else
6079
- {
6080
- py::set_invalid_arg_count_error(arg_count);
6081
- return nullptr;
6082
- }
6083
- }
6084
-
6085
- static PyObject* StatusBarProgressIndicator_get_Text(py::wrapper::Windows::UI::ViewManagement::StatusBarProgressIndicator* self, void* /*unused*/) noexcept
6086
- {
6087
- try
6088
- {
6089
- static std::optional<bool> is_property_present{};
6090
-
6091
- if (!is_property_present.has_value())
6092
- {
6093
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBarProgressIndicator", L"Text");
6094
- }
6095
-
6096
- if (!is_property_present.value())
6097
- {
6098
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
6099
- return nullptr;
6100
- }
6101
-
6102
- return py::convert([&]()
6103
- {
6104
- auto _gil = release_gil();
6105
- return self->obj.Text();
6106
- }());
6107
- }
6108
- catch (...)
6109
- {
6110
- py::to_PyErr();
6111
- return nullptr;
6112
- }
6113
- }
6114
-
6115
- static int StatusBarProgressIndicator_put_Text(py::wrapper::Windows::UI::ViewManagement::StatusBarProgressIndicator* self, PyObject* arg, void* /*unused*/) noexcept
6116
- {
6117
- if (!arg)
6118
- {
6119
- PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
6120
- return -1;
6121
- }
6122
-
6123
- try
6124
- {
6125
- static std::optional<bool> is_property_present{};
6126
-
6127
- if (!is_property_present.has_value())
6128
- {
6129
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBarProgressIndicator", L"Text");
6130
- }
6131
-
6132
- if (!is_property_present.value())
6133
- {
6134
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
6135
- return -1;
6136
- }
6137
-
6138
- auto param0 = py::convert_to<winrt::hstring>(arg);
6139
-
6140
- {
6141
- auto _gil = release_gil();
6142
- self->obj.Text(param0);
6143
- }
6144
-
6145
- return 0;
6146
- }
6147
- catch (...)
6148
- {
6149
- py::to_PyErr();
6150
- return -1;
6151
- }
6152
- }
6153
-
6154
- static PyObject* StatusBarProgressIndicator_get_ProgressValue(py::wrapper::Windows::UI::ViewManagement::StatusBarProgressIndicator* self, void* /*unused*/) noexcept
6155
- {
6156
- try
6157
- {
6158
- static std::optional<bool> is_property_present{};
6159
-
6160
- if (!is_property_present.has_value())
6161
- {
6162
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBarProgressIndicator", L"ProgressValue");
6163
- }
6164
-
6165
- if (!is_property_present.value())
6166
- {
6167
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
6168
- return nullptr;
6169
- }
6170
-
6171
- return py::convert([&]()
6172
- {
6173
- auto _gil = release_gil();
6174
- return self->obj.ProgressValue();
6175
- }());
6176
- }
6177
- catch (...)
6178
- {
6179
- py::to_PyErr();
6180
- return nullptr;
6181
- }
6182
- }
6183
-
6184
- static int StatusBarProgressIndicator_put_ProgressValue(py::wrapper::Windows::UI::ViewManagement::StatusBarProgressIndicator* self, PyObject* arg, void* /*unused*/) noexcept
6185
- {
6186
- if (!arg)
6187
- {
6188
- PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
6189
- return -1;
6190
- }
6191
-
6192
- try
6193
- {
6194
- static std::optional<bool> is_property_present{};
6195
-
6196
- if (!is_property_present.has_value())
6197
- {
6198
- is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.StatusBarProgressIndicator", L"ProgressValue");
6199
- }
6200
-
6201
- if (!is_property_present.value())
6202
- {
6203
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
6204
- return -1;
6205
- }
6206
-
6207
- auto param0 = py::convert_to<winrt::Windows::Foundation::IReference<double>>(arg);
6208
-
6209
- {
6210
- auto _gil = release_gil();
6211
- self->obj.ProgressValue(param0);
6212
- }
6213
-
6214
- return 0;
6215
- }
6216
- catch (...)
6217
- {
6218
- py::to_PyErr();
6219
- return -1;
6220
- }
6221
- }
6222
-
6223
- static PyObject* _assign_array_StatusBarProgressIndicator(PyObject* /*unused*/, PyObject* arg) noexcept
6224
- {
6225
- auto array = std::make_unique<py::ComArray<winrt::Windows::UI::ViewManagement::StatusBarProgressIndicator>>();
6226
- if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
6227
- {
6228
- return nullptr;
6229
- }
6230
- Py_RETURN_NONE;
6231
- }
6232
-
6233
- static PyObject* _from_StatusBarProgressIndicator(PyObject* /*unused*/, PyObject* arg) noexcept
6234
- {
6235
- try
6236
- {
6237
- auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
6238
- return py::convert(return_value.as<winrt::Windows::UI::ViewManagement::StatusBarProgressIndicator>());
6239
- }
6240
- catch (...)
6241
- {
6242
- py::to_PyErr();
6243
- return nullptr;
6244
- }
6245
- }
6246
-
6247
- static PyMethodDef _methods_StatusBarProgressIndicator[] = {
6248
- { "hide_async", reinterpret_cast<PyCFunction>(StatusBarProgressIndicator_HideAsync), METH_VARARGS, nullptr },
6249
- { "show_async", reinterpret_cast<PyCFunction>(StatusBarProgressIndicator_ShowAsync), METH_VARARGS, nullptr },
6250
- { "_assign_array_", _assign_array_StatusBarProgressIndicator, METH_O | METH_STATIC, nullptr },
6251
- { "_from", reinterpret_cast<PyCFunction>(_from_StatusBarProgressIndicator), METH_O | METH_STATIC, nullptr },
6252
- { }};
6253
-
6254
- static PyGetSetDef _getset_StatusBarProgressIndicator[] = {
6255
- { "text", reinterpret_cast<getter>(StatusBarProgressIndicator_get_Text), reinterpret_cast<setter>(StatusBarProgressIndicator_put_Text), nullptr, nullptr },
6256
- { "progress_value", reinterpret_cast<getter>(StatusBarProgressIndicator_get_ProgressValue), reinterpret_cast<setter>(StatusBarProgressIndicator_put_ProgressValue), nullptr, nullptr },
6257
- { }};
6258
-
6259
- static PyType_Slot _type_slots_StatusBarProgressIndicator[] = {
6260
- { Py_tp_new, reinterpret_cast<void*>(_new_StatusBarProgressIndicator) },
6261
- { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_StatusBarProgressIndicator) },
6262
- { Py_tp_methods, reinterpret_cast<void*>(_methods_StatusBarProgressIndicator) },
6263
- { Py_tp_getset, reinterpret_cast<void*>(_getset_StatusBarProgressIndicator) },
6264
- { }};
6265
-
6266
- static PyType_Spec type_spec_StatusBarProgressIndicator = {
6267
- "winrt._winrt_windows_ui_viewmanagement.StatusBarProgressIndicator",
6268
- sizeof(py::wrapper::Windows::UI::ViewManagement::StatusBarProgressIndicator),
6269
- 0,
6270
- Py_TPFLAGS_DEFAULT,
6271
- _type_slots_StatusBarProgressIndicator};
6272
-
6273
5375
  // ----- UISettings class --------------------
6274
5376
 
6275
5377
  static PyObject* _new_UISettings(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
@@ -7554,6 +6656,48 @@ namespace py::cpp::Windows::UI::ViewManagement
7554
6656
  }
7555
6657
  }
7556
6658
 
6659
+ static PyObject* UIViewSettings_GetPreferredInteractionMode(py::wrapper::Windows::UI::ViewManagement::UIViewSettings* self, PyObject* args) noexcept
6660
+ {
6661
+ auto arg_count = PyTuple_GET_SIZE(args);
6662
+
6663
+ if (arg_count == 1)
6664
+ {
6665
+ try
6666
+ {
6667
+ static std::optional<bool> is_overload_present{};
6668
+
6669
+ if (!is_overload_present.has_value())
6670
+ {
6671
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.UIViewSettings", L"GetPreferredInteractionMode", 1);
6672
+ }
6673
+
6674
+ if (!is_overload_present.value())
6675
+ {
6676
+ py::set_arg_count_version_error(1);
6677
+ return nullptr;
6678
+ }
6679
+
6680
+ auto param0 = py::convert_to<py::pybuf_view<winrt::Windows::UI::ViewManagement::UserInteractionMode, false>>(args, 0);
6681
+
6682
+ return py::convert([&]()
6683
+ {
6684
+ auto _gil = release_gil();
6685
+ return self->obj.GetPreferredInteractionMode(param0);
6686
+ }());
6687
+ }
6688
+ catch (...)
6689
+ {
6690
+ py::to_PyErr();
6691
+ return nullptr;
6692
+ }
6693
+ }
6694
+ else
6695
+ {
6696
+ py::set_invalid_arg_count_error(arg_count);
6697
+ return nullptr;
6698
+ }
6699
+ }
6700
+
7557
6701
  static PyObject* UIViewSettings_get_UserInteractionMode(py::wrapper::Windows::UI::ViewManagement::UIViewSettings* self, void* /*unused*/) noexcept
7558
6702
  {
7559
6703
  try
@@ -7584,6 +6728,71 @@ namespace py::cpp::Windows::UI::ViewManagement
7584
6728
  }
7585
6729
  }
7586
6730
 
6731
+ static PyObject* UIViewSettings_add_PreferredInteractionModeChanged(py::wrapper::Windows::UI::ViewManagement::UIViewSettings* self, PyObject* arg) noexcept
6732
+ {
6733
+ try
6734
+ {
6735
+ static std::optional<bool> is_event_present{};
6736
+
6737
+ if (!is_event_present.has_value())
6738
+ {
6739
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.UIViewSettings", L"PreferredInteractionModeChanged");
6740
+ }
6741
+
6742
+ if (!is_event_present.value())
6743
+ {
6744
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
6745
+ return nullptr;
6746
+ }
6747
+
6748
+ auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::UI::ViewManagement::UIViewSettings, winrt::Windows::Foundation::IInspectable>>(arg);
6749
+
6750
+ return py::convert([&]()
6751
+ {
6752
+ auto _gil = release_gil();
6753
+ return self->obj.PreferredInteractionModeChanged(param0);
6754
+ }());
6755
+ }
6756
+ catch (...)
6757
+ {
6758
+ py::to_PyErr();
6759
+ return nullptr;
6760
+ }
6761
+ }
6762
+
6763
+ static PyObject* UIViewSettings_remove_PreferredInteractionModeChanged(py::wrapper::Windows::UI::ViewManagement::UIViewSettings* self, PyObject* arg) noexcept
6764
+ {
6765
+ try
6766
+ {
6767
+ static std::optional<bool> is_event_present{};
6768
+
6769
+ if (!is_event_present.has_value())
6770
+ {
6771
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.UIViewSettings", L"PreferredInteractionModeChanged");
6772
+ }
6773
+
6774
+ if (!is_event_present.value())
6775
+ {
6776
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
6777
+ return nullptr;
6778
+ }
6779
+
6780
+ auto param0 = py::convert_to<winrt::event_token>(arg);
6781
+
6782
+ {
6783
+ auto _gil = release_gil();
6784
+ self->obj.PreferredInteractionModeChanged(param0);
6785
+ }
6786
+
6787
+ Py_RETURN_NONE;
6788
+ }
6789
+ catch (...)
6790
+ {
6791
+ py::to_PyErr();
6792
+ return nullptr;
6793
+ }
6794
+ }
6795
+
7587
6796
  static PyObject* _assign_array_UIViewSettings(PyObject* /*unused*/, PyObject* arg) noexcept
7588
6797
  {
7589
6798
  auto array = std::make_unique<py::ComArray<winrt::Windows::UI::ViewManagement::UIViewSettings>>();
@@ -7609,6 +6818,9 @@ namespace py::cpp::Windows::UI::ViewManagement
7609
6818
  }
7610
6819
 
7611
6820
  static PyMethodDef _methods_UIViewSettings[] = {
6821
+ { "get_preferred_interaction_mode", reinterpret_cast<PyCFunction>(UIViewSettings_GetPreferredInteractionMode), METH_VARARGS, nullptr },
6822
+ { "add_preferred_interaction_mode_changed", reinterpret_cast<PyCFunction>(UIViewSettings_add_PreferredInteractionModeChanged), METH_O, nullptr },
6823
+ { "remove_preferred_interaction_mode_changed", reinterpret_cast<PyCFunction>(UIViewSettings_remove_PreferredInteractionModeChanged), METH_O, nullptr },
7612
6824
  { "_assign_array_", _assign_array_UIViewSettings, METH_O | METH_STATIC, nullptr },
7613
6825
  { "_from", reinterpret_cast<PyCFunction>(_from_UIViewSettings), METH_O | METH_STATIC, nullptr },
7614
6826
  { }};
@@ -8109,30 +7321,6 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_viewmanagement(void) noexcept
8109
7321
  return nullptr;
8110
7322
  }
8111
7323
 
8112
- py::pyobj_handle StatusBar_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
8113
- if (!StatusBar_Static_bases)
8114
- {
8115
- return nullptr;
8116
- }
8117
-
8118
- py::pyobj_handle type_StatusBar_Static{PyType_FromSpecWithBases(&type_spec_StatusBar_Static, StatusBar_Static_bases.get())};
8119
- if (!type_StatusBar_Static)
8120
- {
8121
- return nullptr;
8122
- }
8123
-
8124
- py::pytype_handle StatusBar_type{py::register_python_type(module.get(), &type_spec_StatusBar, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_StatusBar_Static.get()))};
8125
- if (!StatusBar_type)
8126
- {
8127
- return nullptr;
8128
- }
8129
-
8130
- py::pytype_handle StatusBarProgressIndicator_type{py::register_python_type(module.get(), &type_spec_StatusBarProgressIndicator, object_bases.get(), inspectable_meta_type)};
8131
- if (!StatusBarProgressIndicator_type)
8132
- {
8133
- return nullptr;
8134
- }
8135
-
8136
7324
  py::pytype_handle UISettings_type{py::register_python_type(module.get(), &type_spec_UISettings, object_bases.get(), inspectable_meta_type)};
8137
7325
  if (!UISettings_type)
8138
7326
  {
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
2
 
3
- winrt-runtime==3.1.0
3
+ winrt-runtime==3.2.0
@@ -11,6 +11,8 @@ class build_ext_ex(build_ext):
11
11
  ext.extra_compile_args = ["/std:c++20", "/permissive-"]
12
12
  elif self.compiler.compiler_type == "mingw32":
13
13
  ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
14
+ # GCC 15 complains about some things that it didn't in the past
15
+ ext.extra_compile_args += ["-Wno-strict-aliasing", "-Wno-template-body"]
14
16
  ext.extra_link_args = ["-loleaut32"]
15
17
  else:
16
18
  raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -396,69 +396,6 @@ class ProjectionManager_Static(winrt._winrt.IInspectable_Static):
396
396
  class ProjectionManager(winrt.system.Object, metaclass=ProjectionManager_Static):
397
397
  pass
398
398
 
399
- @typing.final
400
- class StatusBar_Static(winrt._winrt.IInspectable_Static):
401
- # Windows.UI.ViewManagement.StatusBar Windows.UI.ViewManagement.StatusBar::GetForCurrentView()
402
- def get_for_current_view(cls) -> StatusBar: ...
403
-
404
- @typing.final
405
- class StatusBar(winrt.system.Object, metaclass=StatusBar_Static):
406
- # Windows.Foundation.IAsyncAction Windows.UI.ViewManagement.StatusBar::HideAsync()
407
- def hide_async(self) -> windows_foundation.IAsyncAction: ...
408
- # Windows.Foundation.IAsyncAction Windows.UI.ViewManagement.StatusBar::ShowAsync()
409
- def show_async(self) -> windows_foundation.IAsyncAction: ...
410
- # Windows.Foundation.EventRegistrationToken Windows.UI.ViewManagement.StatusBar::add_Hiding(Windows.Foundation.TypedEventHandler`2<Windows.UI.ViewManagement.StatusBar,System.Object>)
411
- def add_hiding(self, event_handler: windows_foundation.TypedEventHandler[StatusBar, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
412
- # System.Void Windows.UI.ViewManagement.StatusBar::remove_Hiding(Windows.Foundation.EventRegistrationToken)
413
- def remove_hiding(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
414
- # Windows.Foundation.EventRegistrationToken Windows.UI.ViewManagement.StatusBar::add_Showing(Windows.Foundation.TypedEventHandler`2<Windows.UI.ViewManagement.StatusBar,System.Object>)
415
- def add_showing(self, event_handler: windows_foundation.TypedEventHandler[StatusBar, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
416
- # System.Void Windows.UI.ViewManagement.StatusBar::remove_Showing(Windows.Foundation.EventRegistrationToken)
417
- def remove_showing(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
418
- # Windows.Foundation.IReference`1<Windows.UI.Color> Windows.UI.ViewManagement.StatusBar::get_ForegroundColor()
419
- @_property
420
- def foreground_color(self) -> typing.Optional[windows_ui.Color]: ...
421
- # System.Void Windows.UI.ViewManagement.StatusBar::put_ForegroundColor(Windows.Foundation.IReference`1<Windows.UI.Color>)
422
- @foreground_color.setter
423
- def foreground_color(self, value: typing.Optional[windows_ui.Color]) -> None: ...
424
- # System.Double Windows.UI.ViewManagement.StatusBar::get_BackgroundOpacity()
425
- @_property
426
- def background_opacity(self) -> winrt.system.Double: ...
427
- # System.Void Windows.UI.ViewManagement.StatusBar::put_BackgroundOpacity(System.Double)
428
- @background_opacity.setter
429
- def background_opacity(self, value: winrt.system.Double) -> None: ...
430
- # Windows.Foundation.IReference`1<Windows.UI.Color> Windows.UI.ViewManagement.StatusBar::get_BackgroundColor()
431
- @_property
432
- def background_color(self) -> typing.Optional[windows_ui.Color]: ...
433
- # System.Void Windows.UI.ViewManagement.StatusBar::put_BackgroundColor(Windows.Foundation.IReference`1<Windows.UI.Color>)
434
- @background_color.setter
435
- def background_color(self, value: typing.Optional[windows_ui.Color]) -> None: ...
436
- # Windows.Foundation.Rect Windows.UI.ViewManagement.StatusBar::get_OccludedRect()
437
- @_property
438
- def occluded_rect(self) -> windows_foundation.Rect: ...
439
- # Windows.UI.ViewManagement.StatusBarProgressIndicator Windows.UI.ViewManagement.StatusBar::get_ProgressIndicator()
440
- @_property
441
- def progress_indicator(self) -> StatusBarProgressIndicator: ...
442
-
443
- @typing.final
444
- class StatusBarProgressIndicator(winrt.system.Object):
445
- # Windows.Foundation.IAsyncAction Windows.UI.ViewManagement.StatusBarProgressIndicator::HideAsync()
446
- def hide_async(self) -> windows_foundation.IAsyncAction: ...
447
- # Windows.Foundation.IAsyncAction Windows.UI.ViewManagement.StatusBarProgressIndicator::ShowAsync()
448
- def show_async(self) -> windows_foundation.IAsyncAction: ...
449
- # System.String Windows.UI.ViewManagement.StatusBarProgressIndicator::get_Text()
450
- @_property
451
- def text(self) -> str: ...
452
- # System.Void Windows.UI.ViewManagement.StatusBarProgressIndicator::put_Text(System.String)
453
- @text.setter
454
- def text(self, value: str) -> None: ...
455
- # Windows.Foundation.IReference`1<System.Double> Windows.UI.ViewManagement.StatusBarProgressIndicator::get_ProgressValue()
456
- @_property
457
- def progress_value(self) -> typing.Optional[winrt.system.Double]: ...
458
- # System.Void Windows.UI.ViewManagement.StatusBarProgressIndicator::put_ProgressValue(Windows.Foundation.IReference`1<System.Double>)
459
- @progress_value.setter
460
- def progress_value(self, value: typing.Optional[winrt.system.Double]) -> None: ...
461
-
462
399
  @typing.final
463
400
  class UISettings(winrt.system.Object):
464
401
  def __new__(cls: typing.Type[Self]) -> Self: ...
@@ -555,6 +492,12 @@ class UIViewSettings_Static(winrt._winrt.IInspectable_Static):
555
492
 
556
493
  @typing.final
557
494
  class UIViewSettings(winrt.system.Object, metaclass=UIViewSettings_Static):
495
+ # Windows.UI.ViewManagement.UserInteractionMode Windows.UI.ViewManagement.UIViewSettings::GetPreferredInteractionMode(Windows.UI.ViewManagement.UserInteractionMode[])
496
+ def get_preferred_interaction_mode(self, supported_modes: typing.Union[winrt.system.Array[UserInteractionMode], winrt.system.ReadableBuffer], /) -> UserInteractionMode: ...
497
+ # Windows.Foundation.EventRegistrationToken Windows.UI.ViewManagement.UIViewSettings::add_PreferredInteractionModeChanged(Windows.Foundation.TypedEventHandler`2<Windows.UI.ViewManagement.UIViewSettings,System.Object>)
498
+ def add_preferred_interaction_mode_changed(self, handler: windows_foundation.TypedEventHandler[UIViewSettings, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
499
+ # System.Void Windows.UI.ViewManagement.UIViewSettings::remove_PreferredInteractionModeChanged(Windows.Foundation.EventRegistrationToken)
500
+ def remove_preferred_interaction_mode_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
558
501
  # Windows.UI.ViewManagement.UserInteractionMode Windows.UI.ViewManagement.UIViewSettings::get_UserInteractionMode()
559
502
  @_property
560
503
  def user_interaction_mode(self) -> UserInteractionMode: ...
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -15,8 +15,6 @@ from winrt._winrt_windows_ui_viewmanagement import (
15
15
  InputPane,
16
16
  InputPaneVisibilityEventArgs,
17
17
  ProjectionManager,
18
- StatusBar,
19
- StatusBarProgressIndicator,
20
18
  UISettings,
21
19
  UISettingsAnimationsEnabledChangedEventArgs,
22
20
  UISettingsAutoHideScrollBarsChangedEventArgs,
@@ -50,8 +48,6 @@ __all__ = [
50
48
  "InputPane",
51
49
  "InputPaneVisibilityEventArgs",
52
50
  "ProjectionManager",
53
- "StatusBar",
54
- "StatusBarProgressIndicator",
55
51
  "UISettings",
56
52
  "UISettingsAnimationsEnabledChangedEventArgs",
57
53
  "UISettingsAutoHideScrollBarsChangedEventArgs",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: winrt-Windows.UI.ViewManagement
3
- Version: 3.1.0
3
+ Version: 3.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,15 +12,15 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==3.1.0
15
+ Requires-Dist: winrt-runtime==3.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Enumeration[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.UI[all]==3.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Core[all]==3.1.0; extra == "all"
22
- Requires-Dist: winrt-Windows.UI.Popups[all]==3.1.0; extra == "all"
23
- Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Enumeration[all]==3.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI[all]==3.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Core[all]==3.2.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.UI.Popups[all]==3.2.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.2.0; extra == "all"
24
24
 
25
25
  <!-- warning: Please don't edit this file. It was automatically generated. -->
26
26
 
@@ -0,0 +1,10 @@
1
+ winrt-runtime==3.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Devices.Enumeration[all]==3.2.0
5
+ winrt-Windows.Foundation[all]==3.2.0
6
+ winrt-Windows.Foundation.Collections[all]==3.2.0
7
+ winrt-Windows.UI[all]==3.2.0
8
+ winrt-Windows.UI.Core[all]==3.2.0
9
+ winrt-Windows.UI.Popups[all]==3.2.0
10
+ winrt-Windows.UI.WindowManagement[all]==3.2.0
@@ -1,9 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
-
3
- winrt-Windows.Devices.Enumeration[all]==3.1.0
4
- winrt-Windows.Foundation[all]==3.1.0
5
- winrt-Windows.Foundation.Collections[all]==3.1.0
6
- winrt-Windows.UI[all]==3.1.0
7
- winrt-Windows.UI.Core[all]==3.1.0
8
- winrt-Windows.UI.Popups[all]==3.1.0
9
- winrt-Windows.UI.WindowManagement[all]==3.1.0
@@ -1,10 +0,0 @@
1
- winrt-runtime==3.1.0
2
-
3
- [all]
4
- winrt-Windows.Devices.Enumeration[all]==3.1.0
5
- winrt-Windows.Foundation[all]==3.1.0
6
- winrt-Windows.Foundation.Collections[all]==3.1.0
7
- winrt-Windows.UI[all]==3.1.0
8
- winrt-Windows.UI.Core[all]==3.1.0
9
- winrt-Windows.UI.Popups[all]==3.1.0
10
- winrt-Windows.UI.WindowManagement[all]==3.1.0